[PATCH v6] i3c: Add NULL pointer check in i3c_master_queue_ibi()

Alexandre Belloni alexandre.belloni at bootlin.com
Mon Mar 31 02:44:24 PDT 2025


On Wed, 26 Mar 2025 18:00:46 +0530, Manjunatha Venkatesh wrote:
> The I3C master driver may receive an IBI from a target device that has not
> been probed yet. In such cases, the master calls `i3c_master_queue_ibi()`
> to queue an IBI work task, leading to "Unable to handle kernel read from
> unreadable memory" and resulting in a kernel panic.
> 
> Typical IBI handling flow:
> 1. The I3C master scans target devices and probes their respective drivers.
> 2. The target device driver calls `i3c_device_request_ibi()` to enable IBI
>    and assigns `dev->ibi = ibi`.
> 3. The I3C master receives an IBI from the target device and calls
>    `i3c_master_queue_ibi()` to queue the target device driver’s IBI
>    handler task.
> 
> [...]

Applied, thanks!

[1/1] i3c: Add NULL pointer check in i3c_master_queue_ibi()
      https://git.kernel.org/abelloni/c/bd496a44f041

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the linux-i3c mailing list