linux_dsm_epyc7002/block
Eric Biggers faf41c1f02 blk-crypto: fix check for too-large dun_bytes
[ Upstream commit cc40b7225151f611ef837f6403cfaeadc7af214a ]

dun_bytes needs to be less than or equal to the IV size of the
encryption mode, not just less than or equal to BLK_CRYPTO_MAX_IV_SIZE.

Currently this doesn't matter since blk_crypto_init_key() is never
actually passed invalid values, but we might as well fix this.

Fixes: a892c8d52c ("block: Inline encryption support for blk-mq")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20210825055918.51975-1-ebiggers@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-05 19:10:30 +02:00
..
partitions init: add dsm gpl source 2024-07-05 18:00:04 +02:00
badblocks.c
bfq-cgroup.c
bfq-iosched.c block: return ELEVATOR_DISCARD_MERGE if possible 2024-07-05 19:10:07 +02:00
bfq-iosched.h
bfq-wf2q.c
bio-integrity.c
bio.c init: add dsm gpl source 2024-07-05 18:00:04 +02:00
blk-cgroup-rwstat.c
blk-cgroup-rwstat.h
blk-cgroup.c
blk-core.c init: add dsm gpl source 2024-07-05 18:00:04 +02:00
blk-crypto-fallback.c
blk-crypto-internal.h
blk-crypto.c blk-crypto: fix check for too-large dun_bytes 2024-07-05 19:10:30 +02:00
blk-exec.c
blk-flush.c init: add dsm gpl source 2024-07-05 18:00:04 +02:00
blk-integrity.c
blk-ioc.c
blk-iocost.c blk-iocost: fix lockdep warning on blkcg->lock 2024-07-05 18:56:55 +02:00
blk-iolatency.c blk-iolatency: error out if blk_get_queue() failed in iolatency_set_limit() 2024-07-05 18:52:09 +02:00
blk-lib.c init: add dsm gpl source 2024-07-05 18:00:04 +02:00
blk-map.c init: add dsm gpl source 2024-07-05 18:00:04 +02:00
blk-merge.c block: return ELEVATOR_DISCARD_MERGE if possible 2024-07-05 19:10:07 +02:00
blk-mq-cpumap.c
blk-mq-debugfs-zoned.c
blk-mq-debugfs.c
blk-mq-debugfs.h
blk-mq-pci.c
blk-mq-rdma.c
blk-mq-sched.c
blk-mq-sched.h
blk-mq-sysfs.c blk-mq: move cancel of hctx->run_work to the front of blk_exit_queue 2020-10-09 12:46:28 -06:00
blk-mq-tag.c blk-mq: clear stale request in tags->rq[] before freeing one request pool 2021-07-14 16:55:58 +02:00
blk-mq-tag.h blk-mq: clear stale request in tags->rq[] before freeing one request pool 2021-07-14 16:55:58 +02:00
blk-mq-virtio.c
blk-mq.c blk-mq: clearing flush request reference in tags->rqs[] 2024-07-05 19:07:18 +02:00
blk-mq.h blk-mq: grab rq->refcount before calling ->fn in blk_mq_tagset_busy_iter 2021-07-14 16:55:58 +02:00
blk-pm.c
blk-pm.h
blk-rq-qos.c rq-qos: fix missed wake-ups in rq_qos_throttle try two 2021-07-19 09:45:00 +02:00
blk-rq-qos.h block: fix race between adding/removing rq qos and normal IO 2021-07-14 16:56:00 +02:00
blk-settings.c
blk-stat.c
blk-stat.h
blk-sysfs.c init: add dsm gpl source 2024-07-05 18:00:04 +02:00
blk-throttle.c blk-throtl: optimize IOPS throttle for large IO scenarios 2024-07-05 19:09:35 +02:00
blk-timeout.c
blk-wbt.c blk-wbt: make sure throttle is enabled properly 2021-07-14 16:56:12 +02:00
blk-wbt.h blk-wbt: introduce a new disable state to prevent false positive by rwb_enabled() 2021-07-14 16:56:12 +02:00
blk-zoned.c
blk.h blk-throtl: optimize IOPS throttle for large IO scenarios 2024-07-05 19:09:35 +02:00
bounce.c init: add dsm gpl source 2024-07-05 18:00:04 +02:00
bsg-lib.c block: drop double zeroing 2020-09-23 09:18:13 -06:00
bsg.c
cmdline-parser.c
elevator.c block: return ELEVATOR_DISCARD_MERGE if possible 2024-07-05 19:10:07 +02:00
genhd.c init: add dsm gpl source 2024-07-05 18:00:04 +02:00
ioctl.c init: add dsm gpl source 2024-07-05 18:00:04 +02:00
ioprio.c
Kconfig
Kconfig.iosched
keyslot-manager.c
kyber-iosched.c kyber: fix out of bounds access when preempted 2021-05-19 10:13:13 +02:00
Makefile
mq-deadline.c block: return ELEVATOR_DISCARD_MERGE if possible 2024-07-05 19:10:07 +02:00
opal_proto.h
scsi_ioctl.c init: add dsm gpl source 2024-07-05 18:00:04 +02:00
sed-opal.c
t10-pi.c