]> git.baikalelectronics.ru Git - kernel.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)
commitc0d977e03e49f144be7413ab10705c53c347d66c
tree21169eb86749df520103c101737a63b4bddebd62
parent9af3cac49acace0ee9ffb39941ba385805aba5d5
nvmet: check fileio lba range access boundaries

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

Fixes: 813be7c7aa16 ("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