)]}'
{
  "commit": "b3f1631d362539cfe14571ccfd7db919ffbc08c7",
  "tree": "b87f0604a754775d35931713a6634c3e065f6c81",
  "parents": [
    "ae14fe6f367a9779e108449b4af41791bd6aaa47"
  ],
  "author": {
    "name": "Jianqiang Zou",
    "email": "jq.zou@outlook.com",
    "time": "Sun Nov 01 10:41:42 2026 +0000"
  },
  "committer": {
    "name": "Helge Deller",
    "email": "deller@gmx.de",
    "time": "Thu Nov 19 17:57:11 2026 +0100"
  },
  "message": "fbdev: radeonfb: reject a zero pixclock in radeonfb_check_var()\n\nradeonfb_set_par() derives the dot clock from the user supplied\nstruct fb_var_screeninfo:\n\n\tdotClock \u003d 1000000000 / pixClock;\n\nwhere pixClock is copied from mode-\u003epixclock.  A zero pixclock\nbypasses the existing validation and makes the kernel divide by zero\nin radeonfb_set_par().\n\nThe driver does have a check for this: fb_validate_mode() returns\n-EINVAL when pixclock is 0, but radeon_match_mode() only calls it when\nthe output has no scaler and an EDID-derived mode database is\navailable:\n\n\tif (has_rmx \u003d\u003d 0 \u0026\u0026 rinfo-\u003emon1_modedb)\n\t\tif (fb_validate_mode(...))\n\t\t\treturn -EINVAL;\n\nmon1_modedb is only filled in when an EDID is read, so when no\nEDID-derived mode database is available the validation is skipped and\nthe invalid mode reaches radeonfb_set_par().\n\nReject a zero pixclock in radeonfb_check_var() before matching the\nmode.  fb_set_var() calls it on the FBIOPUT_VSCREENINFO path before\n-\u003efb_set_par(), so the invalid value is rejected before the mode is\napplied.  This is the same check other fbdev drivers use (i740fb,\narkfb, s3fb).\n\nReproduced on Linux 7.3.0 using a custom QEMU PCI stub device with\nvendor/device ID 1002:5955; no physical Radeon hardware was used.  A\nsingle FBIOPUT_VSCREENINFO with pixclock \u003d 0 is enough to trigger the\ndivide error.\n\nSigned-off-by: Jianqiang Zou \u003cjq.zou@outlook.com\u003e\nCc: stable@vger.kernel.org\nSigned-off-by: Helge Deller \u003cdeller@gmx.de\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "387bc5f96765170cb85e9bea239cbc0a7e0ffe87",
      "old_mode": 33188,
      "old_path": "drivers/video/fbdev/aty/radeon_base.c",
      "new_id": "45dd42134e813a2372a35c12633b7a1a5abe1230",
      "new_mode": 33188,
      "new_path": "drivers/video/fbdev/aty/radeon_base.c"
    }
  ]
}
