]> asedeno.scripts.mit.edu Git - linux.git/commit
nvmet: check fileio lba range access boundaries
authorSagi Grimberg <sagi@grimberg.me>
Wed, 11 Jul 2018 13:13:04 +0000 (16:13 +0300)
committerChristoph Hellwig <hch@lst.de>
Tue, 24 Jul 2018 13:55:51 +0000 (15:55 +0200)
commit9c891c139894ce2ec0ca585a00e0bec5e6b4ccab
tree21169eb86749df520103c101737a63b4bddebd62
parent1b72b71faccee986e2128a271125177dfe91f7b7
nvmet: check fileio lba range access boundaries

Fail out-of-bounds with a proper status code.

Fixes: d5eff33ee6f8 ("nvmet: add simple file backed ns support")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/io-cmd-file.c