[PATCH] drbd: fix null-pointer dereference on local read error
Jens Axboe
axboe at kernel.dk
Fri Feb 20 15:09:21 CET 2026
On Fri, 20 Feb 2026 12:39:37 +0100, Christoph Böhmwalder wrote:
> In drbd_request_endio(), READ_COMPLETED_WITH_ERROR is passed to
> __req_mod() with a NULL peer_device:
>
> __req_mod(req, what, NULL, &m);
>
> The READ_COMPLETED_WITH_ERROR handler then unconditionally passes this
> NULL peer_device to drbd_set_out_of_sync(), which dereferences it,
> causing a null-pointer dereference.
>
> [...]
Applied, thanks!
[1/1] drbd: fix null-pointer dereference on local read error
commit: 0d195d3b205ca90db30d70d09d7bb6909aac178f
Best regards,
--
Jens Axboe
More information about the drbd-dev
mailing list