From: sashiko-bot@kernel.org
To: "Prasanth R" <ragaprasanth@gmail.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH] usb: chipidea: ci_hdrc_imx: link to usbmisc to fix NULL deref on unbind
Date: Wed, 02 Dec 2026 08:33:59 +0000 [thread overview]
Message-ID: <sashiko-outbox-245212@kernel.org> (raw)
In-Reply-To: <20261202082820.3764321-1-ragaprasanth@gmail.com>
> ci_hdrc_imx uses the usbmisc driver data in suspend and resume, but
> nothing keeps usbmisc bound. After usbmisc is unbound, its driver data
> is NULL and the next resume crashes. On the i.MX6Q SABRE-SD, with the
> USB host port runtime suspended:
>
> echo 2184800.usbmisc > /sys/bus/platform/drivers/usbmisc_imx/unbind
> echo 2184200.usb > /sys/bus/platform/drivers/imx_usb/unbind
>
> BUG: KASAN: null-ptr-deref in imx_usbmisc_resume+0x34/0x2b4
> Read of size 4 at addr 0000000c
>
> Add a device link from the controller to usbmisc, so unbinding usbmisc
> unbinds the controller first.
>
> Fixes: e14db48dfcf3 ("usb: chipidea: imx: add runtime power management support")
>
> Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202082820.3764321-1-ragaprasanth@gmail.com?part=1
prev parent reply other threads:[~2026-12-02 8:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 8:28 [PATCH] usb: chipidea: ci_hdrc_imx: link to usbmisc to fix NULL deref on unbind Prasanth R
2026-12-02 8:33 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-245212@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=ragaprasanth@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.