linux-stable/block
Christoph Hellwig 6c77d4e0f6 block: reject invalid operation in submit_bio_noacct
[ Upstream commit 1c042f8d4b ]

submit_bio_noacct allows completely invalid operations, or operations
that are not supported in the bio path.  Extent the existing switch
statement to rejcect all invalid types.

Move the code point for REQ_OP_ZONE_APPEND so that it's not right in the
middle of the zone management operations and the switch statement can
follow the numerical order of the operations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231221070538.1112446-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Stable-dep-of: 3f66ccbaae ("block: Make REQ_OP_ZONE_FINISH a write operation")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-28 16:28:40 +02:00
..
partitions block: fix conversion of GPT partition name to 7-bit 2025-03-13 12:58:27 +01:00
badblocks.c
bdev.c
bfq-cgroup.c
bfq-iosched.c block, bfq: fix waker_bfqq UAF after bfq_split_bfqq() 2025-01-17 13:36:25 +01:00
bfq-iosched.h
bfq-wf2q.c
bio-integrity.c
bio.c scsi: sd_zbc: block: Respect bio vector limits for REPORT ZONES buffer 2025-05-22 14:12:22 +02:00
blk-cgroup-fc-appid.c
blk-cgroup-rwstat.c
blk-cgroup-rwstat.h
blk-cgroup.c blk-cgroup: Fix class @block_class's subsystem refcount leakage 2025-02-17 09:40:20 +01:00
blk-cgroup.h
blk-core.c block: reject invalid operation in submit_bio_noacct 2025-08-28 16:28:40 +02:00
blk-crypto-fallback.c
blk-crypto-internal.h
blk-crypto-profile.c
blk-crypto-sysfs.c
blk-crypto.c
blk-flush.c
blk-ia-ranges.c
blk-integrity.c block: remove the blk_flush_integrity call in blk_integrity_unregister 2024-09-08 07:54:47 +02:00
blk-ioc.c
blk-iocost.c blk-iocost: Avoid using clamp() on inuse in __propagate_weights() 2024-12-19 18:11:34 +01:00
blk-iolatency.c
blk-ioprio.c
blk-ioprio.h
blk-lib.c
blk-map.c block: fix sanity checks in blk_rq_map_user_bvec 2024-11-08 16:28:24 +01:00
blk-merge.c block: fix bio_split_rw_at to take zone_write_granularity into account 2024-12-09 10:31:45 +01:00
blk-mq-cpumap.c
blk-mq-debugfs-zoned.c
blk-mq-debugfs.c
blk-mq-debugfs.h
blk-mq-pci.c
blk-mq-sched.c
blk-mq-sched.h
blk-mq-sysfs.c
blk-mq-tag.c block: Fix lockdep warning in blk_mq_mark_tag_wait 2024-08-29 17:33:30 +02:00
blk-mq-virtio.c
blk-mq.c block: avoid to reuse hctx not removed from cpuhp callback list 2025-01-02 10:32:11 +01:00
blk-mq.h block: fix ordering between checking BLK_MQ_S_STOPPED request adding 2024-12-09 10:32:50 +01:00
blk-pm.c
blk-pm.h
blk-rq-qos.c blk-rq-qos: fix crash on rq_qos_wait vs. rq_qos_wake_function race 2024-10-22 15:46:27 +02:00
blk-rq-qos.h
blk-settings.c block: avoid possible overflow for chunk_sectors check in blk_stack_limits() 2025-08-28 16:28:30 +02:00
blk-stat.c
blk-stat.h
blk-sysfs.c block: fix kobject leak in blk_unregister_queue 2025-07-24 08:53:17 +02:00
blk-throttle.c
blk-throttle.h
blk-timeout.c
blk-wbt.c
blk-wbt.h
blk-zoned.c
blk.h
bounce.c
bsg-lib.c
bsg.c
disk-events.c
early-lookup.c
elevator.c block: Fix elevator_get_default() checking for NULL q->tag_set 2024-11-17 15:08:56 +01:00
elevator.h
fops.c block: don't revert iter for -EIOCBQUEUED 2025-02-17 09:40:25 +01:00
genhd.c block: retry call probe after request_module in blk_request_module 2025-02-08 09:51:42 +01:00
holder.c
ioctl.c block: fix integer overflow in BLKSECDISCARD 2025-02-01 18:37:54 +01:00
ioprio.c
Kconfig
Kconfig.iosched
kyber-iosched.c
Makefile
mq-deadline.c block/mq-deadline: Fix the tag reservation code 2024-08-03 08:53:22 +02:00
opal_proto.h
sed-opal.c
t10-pi.c