Re: [PATCH v6] i3c: Add NULL pointer check in i3c_master_queue_ibi()
From: Alexandre Belloni
Date: Mon Mar 31 2025 - 05:44:43 EST
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