]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rnbd-srv: Zero the rsp buffer before using it
authorMd Haris Iqbal <haris.iqbal@ionos.com>
Fri, 5 Dec 2025 12:47:33 +0000 (13:47 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Jan 2026 12:28:10 +0000 (05:28 -0700)
commit69d26698e4fd44935510553809007151b2fe4db5
treefe05484be7e64830d392d2ddef6f475d95a0bc12
parent4ac9690d4b9456ca1d5276d86547fa2e7cd47684
rnbd-srv: Zero the rsp buffer before using it

Before using the data buffer to send back the response message, zero it
completely. This prevents any stray bytes to be picked up by the client
side when there the message is exchanged between different protocol
versions.

Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Grzegorz Prajsner <grzegorz.prajsner@ionos.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rnbd/rnbd-srv.c