)]}'
{
  "commit": "77d2e05abd45886dcad2b632c738cf46b9f7c19e",
  "tree": "dab2d5beef6275329e8ed3dbaff7f720d6f05f6c",
  "parents": [
    "b9193c1b61ddb97da4713155b0d580e41fb544ac"
  ],
  "author": {
    "name": "Martin KaFai Lau",
    "email": "kafai@fb.com",
    "time": "Sat Mar 24 11:44:23 2018 -0700"
  },
  "committer": {
    "name": "Daniel Borkmann",
    "email": "daniel@iogearbox.net",
    "time": "Mon Mar 26 09:58:17 2018 +0200"
  },
  "message": "bpf: Add bpf_verifier_vlog() and bpf_verifier_log_needed()\n\nThe BTF (BPF Type Format) verifier needs to reuse the current\nBPF verifier log.  Hence, it requires the following changes:\n\n(1) Expose log_write() in verifier.c for other users.\n    Its name is renamed to bpf_verifier_vlog().\n\n(2) The BTF verifier also needs to check\n\u0027log-\u003elevel \u0026\u0026 log-\u003eubuf \u0026\u0026 !bpf_verifier_log_full(log);\u0027\nindependently outside of the current log_write().  It is\nbecause the BTF verifier will do one-check before\nmaking multiple calls to btf_verifier_vlog to log\nthe details of a type.\n\nHence, this check is also re-factored to a new function\nbpf_verifier_log_needed().  Since it is re-factored,\nwe can check it before va_start() in the current\nbpf_verifier_log_write() and verbose().\n\nSigned-off-by: Martin KaFai Lau \u003ckafai@fb.com\u003e\nAcked-by: Alexei Starovoitov \u003cast@fb.com\u003e\nSigned-off-by: Daniel Borkmann \u003cdaniel@iogearbox.net\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c30668414b22d05b4ad8e6fef002faa4e6cda798",
      "old_mode": 33188,
      "old_path": "include/linux/bpf_verifier.h",
      "new_id": "7e61c395fddffea20ed6dfc8a92ad3e2f848a20e",
      "new_mode": 33188,
      "new_path": "include/linux/bpf_verifier.h"
    },
    {
      "type": "modify",
      "old_id": "1e84e02ff73340df13585f38e8139f7055d076b5",
      "old_mode": 33188,
      "old_path": "kernel/bpf/verifier.c",
      "new_id": "8acd2207e4122a059dd95670c7941ad14cd4390f",
      "new_mode": 33188,
      "new_path": "kernel/bpf/verifier.c"
    }
  ]
}
