)]}'
{
  "commit": "50c0c67ba0865e5732effecd3fbacc3912cd2b80",
  "tree": "cf6d76140bc0edf4188c5d1d94999290b205464b",
  "parents": [
    "e73688e545a4344ed11b4ce09c11ad7fdbc446c1"
  ],
  "author": {
    "name": "Daniel Borkmann",
    "email": "daniel@iogearbox.net",
    "time": "Mon Oct 21 17:28:05 2024 +0200"
  },
  "committer": {
    "name": "Kevin Berry",
    "email": "kpberry@google.com",
    "time": "Sat Jan 25 16:25:13 2025 -0800"
  },
  "message": "bpf: Add MEM_WRITE attribute\n\ncommit 6fad274f06f038c29660aa53fbad14241c9fd976 upstream.\n\nAdd a MEM_WRITE attribute for BPF helper functions which can be used in\nbpf_func_proto to annotate an argument type in order to let the verifier\nknow that the helper writes into the memory passed as an argument. In\nthe past MEM_UNINIT has been (ab)used for this function, but the latter\nmerely tells the verifier that the passed memory can be uninitialized.\n\nThere have been bugs with overloading the latter but aside from that\nthere are also cases where the passed memory is read + written which\ncurrently cannot be expressed, see also 4b3786a6c539 (\"bpf: Zero former\nARG_PTR_TO_{LONG,INT} args in case of error\").\n\nBUG\u003db/376432884,b/380569401\nTEST\u003dpresubmit\nRELEASE_NOTE\u003dNone\n\ncos-patch: security-high\nSigned-off-by: Daniel Borkmann \u003cdaniel@iogearbox.net\u003e\nAcked-by: Kumar Kartikeya Dwivedi \u003cmemxor@gmail.com\u003e\nLink: https://lore.kernel.org/r/20241021152809.33343-1-daniel@iogearbox.net\nSigned-off-by: Alexei Starovoitov \u003cast@kernel.org\u003e\nSigned-off-by: BRUNO VERNAY \u003cbruno.vernay@se.com\u003e\nSigned-off-by: Hugo SIMELIERE \u003chsimeliere.opensource@witekio.com\u003e\nStable-dep-of: 8ea607330a39 (\"bpf: Fix overloading of MEM_UNINIT\u0027s meaning\")\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@linuxfoundation.org\u003e\nChange-Id: I8e33856585834745fbaf6d44b65465132f012b64\nReviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/91351\nReviewed-by: Arnav Kansal \u003crnv@google.com\u003e\nTested-by: Cusky Presubmit Bot \u003cpresubmit@cos-infra-prod.iam.gserviceaccount.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7f4ce183dcb02c6fa6c693421a716a4571a05531",
      "old_mode": 33188,
      "old_path": "include/linux/bpf.h",
      "new_id": "2189c0d18fa7800d8d452b832e856672b451a118",
      "new_mode": 33188,
      "new_path": "include/linux/bpf.h"
    },
    {
      "type": "modify",
      "old_id": "14ad6856257c25078718342e3f4aa4cc77a9f07c",
      "old_mode": 33188,
      "old_path": "kernel/bpf/helpers.c",
      "new_id": "4fef0a015525526f69b2ec64af742eda9c579d62",
      "new_mode": 33188,
      "new_path": "kernel/bpf/helpers.c"
    },
    {
      "type": "modify",
      "old_id": "af75c54eb84fb0769200a838563caef5926351a5",
      "old_mode": 33188,
      "old_path": "kernel/bpf/ringbuf.c",
      "new_id": "095416e40df3c30c1f969d65457b4d9346dcc001",
      "new_mode": 33188,
      "new_path": "kernel/bpf/ringbuf.c"
    },
    {
      "type": "modify",
      "old_id": "6455f80099cd3e1c86aa4f24b68879bfa5c37117",
      "old_mode": 33188,
      "old_path": "kernel/bpf/syscall.c",
      "new_id": "cfb361f4b00ea9dcfb51d9125586178e68b037bd",
      "new_mode": 33188,
      "new_path": "kernel/bpf/syscall.c"
    },
    {
      "type": "modify",
      "old_id": "e7b7be074e5a329588929d069f5eb7d9479adbcc",
      "old_mode": 33188,
      "old_path": "kernel/trace/bpf_trace.c",
      "new_id": "f46903c1142b57b8bcefa60cd9054ef70d88a07b",
      "new_mode": 33188,
      "new_path": "kernel/trace/bpf_trace.c"
    },
    {
      "type": "modify",
      "old_id": "d21eae8ba1051fc6dc81974758e7f0aadc2f8b16",
      "old_mode": 33188,
      "old_path": "net/core/filter.c",
      "new_id": "d9bb3884df80a859e92ce4c203903eab4b46b996",
      "new_mode": 33188,
      "new_path": "net/core/filter.c"
    }
  ]
}
