Re: [PATCH] drbd: fix null-pointer dereference on local read error

From: Jens Axboe

Date: Fri Feb 20 2026 - 09:10:35 EST



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