)]}'
{
  "commit": "039bef30e320827bac8990c9f29d2a68cd8adb5f",
  "tree": "42773c407bd3bb30e6f4df8a60e5e4f5f5001cc3",
  "parents": [
    "bf2c7bf5c48303b76f20537238292571e6aa29f3"
  ],
  "author": {
    "name": "Prithvi Tambewagh",
    "email": "activprithvi@gmail.com",
    "time": "Mon Dec 01 18:37:11 2025 +0530"
  },
  "committer": {
    "name": "Andrew Morton",
    "email": "akpm@linux-foundation.org",
    "time": "Wed Dec 10 16:07:42 2025 -0800"
  },
  "message": "ocfs2: fix kernel BUG in ocfs2_find_victim_chain\n\nsyzbot reported a kernel BUG in ocfs2_find_victim_chain() because the\n`cl_next_free_rec` field of the allocation chain list (next free slot in\nthe chain list) is 0, triggring the BUG_ON(!cl-\u003ecl_next_free_rec)\ncondition in ocfs2_find_victim_chain() and panicking the kernel.\n\nTo fix this, an if condition is introduced in ocfs2_claim_suballoc_bits(),\njust before calling ocfs2_find_victim_chain(), the code block in it being\nexecuted when either of the following conditions is true:\n\n1. `cl_next_free_rec` is equal to 0, indicating that there are no free\nchains in the allocation chain list\n2. `cl_next_free_rec` is greater than `cl_count` (the total number of\nchains in the allocation chain list)\n\nEither of them being true is indicative of the fact that there are no\nchains left for usage.\n\nThis is addressed using ocfs2_error(), which prints\nthe error log for debugging purposes, rather than panicking the kernel.\n\nLink: https://lkml.kernel.org/r/20251201130711.143900-1-activprithvi@gmail.com\nSigned-off-by: Prithvi Tambewagh \u003cactivprithvi@gmail.com\u003e\nReported-by: syzbot+96d38c6e1655c1420a72@syzkaller.appspotmail.com\nCloses: https://syzkaller.appspot.com/bug?extid\u003d96d38c6e1655c1420a72\nTested-by: syzbot+96d38c6e1655c1420a72@syzkaller.appspotmail.com\nReviewed-by: Joseph Qi \u003cjoseph.qi@linux.alibaba.com\u003e\nCc: Mark Fasheh \u003cmark@fasheh.com\u003e\nCc: Joel Becker \u003cjlbec@evilplan.org\u003e\nCc: Junxiao Bi \u003cjunxiao.bi@oracle.com\u003e\nCc: Changwei Ge \u003cgechangwei@live.cn\u003e\nCc: Jun Piao \u003cpiaojun@huawei.com\u003e\nCc: Heming Zhao \u003cheming.zhao@suse.com\u003e\nCc: \u003cstable@vger.kernel.org\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4b9d0ecd0981f400b636dfc0b5c6dce17d6d6c2a",
      "old_mode": 33188,
      "old_path": "fs/ocfs2/suballoc.c",
      "new_id": "8e6e5235b30c46261c01024ad8a5d7d093e70e54",
      "new_mode": 33188,
      "new_path": "fs/ocfs2/suballoc.c"
    }
  ]
}
