summaryrefslogtreecommitdiff
path: root/net/netfilter/xt_TCPOPTSTRIP.c
diff options
context:
space:
mode:
authorDamien Le Moal <dlemoal@kernel.org>2024-01-10 18:29:42 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-23 09:12:49 +0100
commite7d2e87abc6fddec0e661f9fd8c1657db42d674b (patch)
treead5600cfca2f3077fe4f7ebebe945ae77ffa3810 /net/netfilter/xt_TCPOPTSTRIP.c
parentbb44477d4506e52785693a39f03cdc6a2c5e8598 (diff)
block: fix partial zone append completion handling in req_bio_endio()
[ Upstream commit 748dc0b65ec2b4b7b3dbd7befcc4a54fdcac7988 ] Partial completions of zone append request is not allowed but if a zone append completion indicates a number of completed bytes different from the original BIO size, only the BIO status is set to error. This leads to bio_advance() not setting the BIO size to 0 and thus to not call bio_endio() at the end of req_bio_endio(). Make sure a partially completed zone append is failed and completed immediately by forcing the completed number of bytes (nbytes) to be equal to the BIO size, thus ensuring that bio_endio() is called. Fixes: 297db731847e ("block: fix req_bio_endio append error handling") Cc: stable@kernel.vger.org Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Link: https://lore.kernel.org/r/20240110092942.442334-1-dlemoal@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/netfilter/xt_TCPOPTSTRIP.c')
0 files changed, 0 insertions, 0 deletions