)]}'
{
  "commit": "dc366607c41c45fd0ae6f3db090f31dd611b644a",
  "tree": "d5e6bb97b8533f124fab699170844134dc34f832",
  "parents": [
    "396db75a1f7fb7b34b0b6101e3802bc418c4e868"
  ],
  "author": {
    "name": "Edward Adam Davis",
    "email": "eadavis@qq.com",
    "time": "Wed May 13 12:30:50 2026 +0800"
  },
  "committer": {
    "name": "Dave Airlie",
    "email": "airlied@redhat.com",
    "time": "Sat May 16 09:32:43 2026 +1000"
  },
  "message": "drm: Replace old pointer to new idr\n\nCommit 5e28b7b94408 introduced a logical error by failing to replace the\nnewly generated IDR pointer to old id\u0027s pointer at the correct location\nwithin the \"change handle\" logic; this resulted in the issue reported by\nsyzbot [1].\n\nSpecifically, the new IDR object pointer is intended to replace the original\nid\u0027s pointer during the normal execution flow.\n\nAdditionally, an unnecessary conditional check for the ret exit path has\nbeen removed.\n\n[1]\n!RB_EMPTY_ROOT(\u0026prime_fpriv-\u003edmabufs)\nWARNING: drivers/gpu/drm/drm_prime.c:224 at drm_prime_destroy_file_private+0x48/0x60 drivers/gpu/drm/drm_prime.c:224, CPU#0: syz.0.17/5833\nCall Trace:\n drm_file_free.part.0+0x7e6/0xcc0 drivers/gpu/drm/drm_file.c:269\n drm_file_free drivers/gpu/drm/drm_file.c:237 [inline]\n drm_close_helper.isra.0+0x186/0x200 drivers/gpu/drm/drm_file.c:290\n drm_release+0x1ab/0x360 drivers/gpu/drm/drm_file.c:438\n\nFixes: 5e28b7b94408 (\"drm: Set old handle to NULL before prime swap in change_handle\")\nReported-by: syzbot+d7c9eed171647e421013@syzkaller.appspotmail.com\nCloses: https://syzkaller.appspot.com/bug?extid\u003dd7c9eed171647e421013\nCc: stable@vger.kernel.org\nTested-by: syzbot+d7c9eed171647e421013@syzkaller.appspotmail.com\nSigned-off-by: Edward Adam Davis \u003ceadavis@qq.com\u003e\nSigned-off-by: Dave Airlie \u003cairlied@redhat.com\u003e\nLink: https://patch.msgid.link/tencent_C267296443AAA4567771176886DFF364A305@qq.com\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "51a887cc7fd744c0f6269d7f3d4dbe1fa713271d",
      "old_mode": 33188,
      "old_path": "drivers/gpu/drm/drm_gem.c",
      "new_id": "8afab57fc0554ee1a2ebff0854c5118b3e882580",
      "new_mode": 33188,
      "new_path": "drivers/gpu/drm/drm_gem.c"
    }
  ]
}
