Whamcloud - gitweb
EX-7601 osc: add check to decompress_request
authorPatrick Farrell <pfarrell@whamcloud.com>
Tue, 19 Dec 2023 04:19:44 +0000 (23:19 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 6 Jan 2024 08:20:29 +0000 (08:20 +0000)
commit6cb3f9a36d47a0e1ecf9617072c8196d302ee622
treec07d4a6cd5e39ee44dd319d62876f2f910439dad
parentc53f5fc6a1c6a1832217ebb76450120d18e42267
EX-7601 osc: add check to decompress_request

decompress_request should check to see if there's room in
the RPC for the decompressed data, since this can occur if
there's a bug or data corruption, and otherwise we will
go past the end of the RPC during decompression.

Test-Parameters: trivial
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Ib1bf19bf39701b72f0f5a61b2aaff2f2fdad1897
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53502
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Artem Blagodarenko <ablagodarenko@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osc/osc_compress.c