diff options
| author | 2026-10-07 19:27:46 +0000 | |
|---|---|---|
| committer | 2026-10-13 08:34:27 -0700 | |
| commit | 9d820d55b3cb4859c7cf42a74dc78f6154f97398 (patch) | |
| tree | b2f32aab527b1bbea772ef8d4d10afad93749670 /scripts/Makefile.thinlto | |
| parent | nvme-auth: fail when the controller does not authenticate itself (diff) | |
nvmet: free the bvec on file namespace range errors
nvmet_file_execute_rw() allocates the bvec before
nvmet_file_execute_io() checks whether the request fits in the backing
file. If the request extends beyond the file, nvmet_file_execute_io()
calls nvmet_req_complete() to return an error. This skips
nvmet_file_io_done(), so the allocated memory is never freed. Repeated
requests can exhaust memory.
Use nvmet_file_io_done() to free the bvec before returning the range
error to the client.
Fixes: 50a909db36f2 ("nvmet: use IOCB_NOWAIT for file-ns buffered I/O")
Cc: stable@vger.kernel.org
Assisted-by: LLM
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
