)]}'
{
  "commit": "07ad45e06b4039adf96882aefcb1d3299fb7c305",
  "tree": "b5745a57ebc502d54cf608fd421939f720f2b090",
  "parents": [
    "b45873c3f09153d1ad9b3a7bf9e5c0b0387fd2ea"
  ],
  "author": {
    "name": "Miaoqian Lin",
    "email": "linmq006@gmail.com",
    "time": "Mon Oct 27 23:08:38 2025 +0800"
  },
  "committer": {
    "name": "Heiko Carstens",
    "email": "hca@linux.ibm.com",
    "time": "Wed Oct 29 14:17:50 2025 +0100"
  },
  "message": "s390/mm: Fix memory leak in add_marker() when kvrealloc() fails\n\nThe function has a memory leak when kvrealloc() fails.\nThe function directly assigns NULL to the markers pointer, losing the\nreference to the previously allocated memory. This causes kvfree() in\npt_dump_init() to free NULL instead of the leaked memory.\n\nFix by:\n1. Using kvrealloc() uniformly for all allocations\n2. Using a temporary variable to preserve the original pointer until\n   allocation succeeds\n3. Removing the error path that sets markers_cnt\u003d0 to keep\n   consistency between markers and markers_cnt\n\nFound via static analysis and this is similar to commit 42378a9ca553\n(\"bpf, verifier: Fix memory leak in array reallocation for stack state\")\n\nFixes: d0e7915d2ad3 (\"s390/mm/ptdump: Generate address marker array dynamically\")\nCc: stable@vger.kernel.org\nSigned-off-by: Miaoqian Lin \u003clinmq006@gmail.com\u003e\nSigned-off-by: Heiko Carstens \u003chca@linux.ibm.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9af2aae0a5152a9d92e116df8b8bd910cf5ee528",
      "old_mode": 33188,
      "old_path": "arch/s390/mm/dump_pagetables.c",
      "new_id": "528d7c70979f7d6ff6a0d356684edd1d351124be",
      "new_mode": 33188,
      "new_path": "arch/s390/mm/dump_pagetables.c"
    }
  ]
}
