)]}'
{
  "commit": "cfe54f4591e675cedf2c0d25287ff4c0a2e0cb9d",
  "tree": "5db98f0768ffa7e81296e52be68bb409b9331570",
  "parents": [
    "61ed08c2fd1db0eb43c8b62ade249a3061e39444"
  ],
  "author": {
    "name": "Breno Leitao",
    "email": "leitao@debian.org",
    "time": "Tue Dec 23 02:55:44 2025 -0800"
  },
  "committer": {
    "name": "Ard Biesheuvel",
    "email": "ardb@kernel.org",
    "time": "Wed Dec 24 21:32:58 2025 +0100"
  },
  "message": "kthread: Warn if mm_struct lacks user_ns in kthread_use_mm()\n\nAdd a WARN_ON_ONCE() check to detect mm_struct instances that are\nmissing user_ns initialization when passed to kthread_use_mm().\n\nWhen a kthread adopts an mm via kthread_use_mm(), LSM hooks and\ncapability checks may access current-\u003emm-\u003euser_ns for credential\nvalidation. If user_ns is NULL, this leads to a NULL pointer\ndereference crash.\n\nThis was observed with efi_mm on arm64, where commit a5baf582f4c0\n(\"arm64/efi: Call EFI runtime services without disabling preemption\")\nintroduced kthread_use_mm(\u0026efi_mm), but efi_mm lacked user_ns\ninitialization, causing crashes during /proc access.\n\nAdding this warning helps catch similar bugs early during development\nrather than waiting for hard-to-debug NULL pointer crashes in\nproduction.\n\nSigned-off-by: Breno Leitao \u003cleitao@debian.org\u003e\nAcked-by: Rik van Riel \u003criel@surriel.com\u003e\nSigned-off-by: Ard Biesheuvel \u003cardb@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "99a3808d086f081eabb45daf3450184182dfc8a2",
      "old_mode": 33188,
      "old_path": "kernel/kthread.c",
      "new_id": "39511dd2abc97f54c3086288b1913d5dd9311559",
      "new_mode": 33188,
      "new_path": "kernel/kthread.c"
    }
  ]
}
