)]}'
{
  "commit": "d6ed2c3c5bb60dc173b2edf38044695b6aefedd2",
  "tree": "20c69561f0d4d207e005589e0f49b796af48eb9b",
  "parents": [
    "e0fcbaf546c8da9f6df101d531d422f8e8e8dbbc"
  ],
  "author": {
    "name": "Yuming Hu",
    "email": "huyuming@kylinos.cn",
    "time": "Fri Dec 04 16:28:01 2026 +0800"
  },
  "committer": {
    "name": "Greg Kroah-Hartman",
    "email": "gregkh@linuxfoundation.org",
    "time": "Fri Dec 04 18:10:01 2026 +0900"
  },
  "message": "USB: dwc2: shut down the wakeup timer before removing the HCD\n\nThe wakeup timer is armed from hardirq context (WKUPINT, 71 ms) and its\ncallback dwc2_wakeup_detected() ends up calling\nusb_hcd_resume_root_hub(hsotg-\u003epriv) when the port is suspended.\n\ndwc2_hcd_remove() invokes usb_remove_hcd() and clears hsotg-\u003epriv before\nit reaches dwc2_hcd_release(), where fd772af9512c (\"USB: dwc2: shut down\nwakeup timer before freeing HCD state\") performs the\ntimer_shutdown_sync().  If the timer expires inside that window, or its\ncallback is in flight while hsotg-\u003epriv is being cleared,\ndwc2_hcd_rem_wakeup() passes the NULL hcd to\nusb_hcd_resume_root_hub(), which dereferences it without a NULL check\nand oopses in softirq context.\n\nShut the timer down before usb_remove_hcd(), so that an in-flight\ncallback always observes a valid hsotg-\u003epriv and any later rearm attempt\nis ignored by the timer core.  The timer_shutdown_sync() call in\ndwc2_hcd_release() is idempotent and keeps covering the probe error\npath.\n\nFixes: 7359d482eb4d (\"staging: HCD files for the DWC2 driver\")\nCc: stable@kernel.org\nSigned-off-by: Yuming Hu \u003chuyuming@kylinos.cn\u003e\nLink: https://patch.msgid.link/20261204082801.1382976-1-huyuming@kylinos.cn\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@linuxfoundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b2ad1313dbc7d303346bffdb43be1b83804435db",
      "old_mode": 33188,
      "old_path": "drivers/usb/dwc2/hcd.c",
      "new_id": "2d1ae507f0cea2fa33df92c9b730e40a2a19f8c2",
      "new_mode": 33188,
      "new_path": "drivers/usb/dwc2/hcd.c"
    }
  ]
}
