aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorKeith Busch <[email protected]>2023-11-28 17:36:04 +0000
committerKeith Busch <[email protected]>2023-12-01 15:49:50 +0000
commit74fbc88e161424b3b96a22b23a8e3e1edab9d05c (patch)
treeedecdcc0d0f7ba754c1a679b327f0046ffcc01db /security/selinux/hooks.c
parentnvme: check for valid nvme_identify_ns() before using it (diff)
downloadkernel-74fbc88e161424b3b96a22b23a8e3e1edab9d05c.tar.gz
kernel-74fbc88e161424b3b96a22b23a8e3e1edab9d05c.zip
nvme-core: check for too small lba shift
The block layer doesn't support logical block sizes smaller than 512 bytes. The nvme spec doesn't support that small either, but the driver isn't checking to make sure the device responded with usable data. Failing to catch this will result in a kernel bug, either from a division by zero when stacking, or a zero length bio. Reviewed-by: Jens Axboe <[email protected]> Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions