)]}'
{
  "commit": "ee469e7372b729a8eecfafa72947c79dedd1390a",
  "tree": "5d103fb681a4dc887bc4ad8e8cf3786df9ae6d6e",
  "parents": [
    "6abc2ffa5763674354f59057a51df3f48950cba3"
  ],
  "author": {
    "name": "Guikun Yang",
    "email": "yangguikun19@qq.com",
    "time": "Tue Nov 17 10:00:00 2026 +0800"
  },
  "committer": {
    "name": "Paul E. McKenney",
    "email": "paulmck@kernel.org",
    "time": "Tue Nov 17 21:05:28 2026 -0800"
  },
  "message": "srcu: Validate ___srcu_struct_ptrs entries against the module range\n\nThe entries of the ___srcu_struct_ptrs section are absolute pointers\nemitted by DEFINE_SRCU() in module .data. load_info() hands the raw\nsection to RCU (kernel/module/main.c), and srcu_module_coming()\ndereferences each entry and writes through it:\n\n\tssp \u003d *(sspp++);\n\tssp-\u003esda \u003d alloc_percpu(struct srcu_data);\n\tssp-\u003esrcu_ctrp \u003d \u0026ssp-\u003esda-\u003esrcu_ctrs[0];\n\nA malicious or corrupted module image can point an entry anywhere in\nthe kernel address space; nothing on the load path validates it, so\nthis is an arbitrary-address write primitive (an 8-byte percpu\npointer at offset 8 of the target).\n\nThe static-key loader already handles the same shape of section with\na range check (kernel/jump_label.c):\n\n\tif (within_module((unsigned long)key, mod))\n\nApply the same check to both module-notification paths. coming()\nrejects the module load outright; going() skips the entry, because\ngoing() runs even for modules that never passed coming(), and those\nentries never got per-CPU data allocated.\n\nSigned-off-by: Guikun Yang \u003cyangguikun19@qq.com\u003e\nReviewed-by: Bradley Morgan \u003cbradley.morgan@linux.dev\u003e\nSigned-off-by: Paul E. McKenney \u003cpaulmck@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8fa366861dcc5c321ff845b2fb90bc22373824bb",
      "old_mode": 33188,
      "old_path": "kernel/rcu/srcutree.c",
      "new_id": "1bd2cbbd9b5a3e484705ba703f0ffefd17a42d56",
      "new_mode": 33188,
      "new_path": "kernel/rcu/srcutree.c"
    }
  ]
}
