linux/drivers/block
Yongpeng Yang 54891a96b7 loop: use READ_ONCE() to read lo->lo_state without locking
When lo->lo_mutex is not held, direct access may read stale data. This
patch uses READ_ONCE() to read lo->lo_state and data_race() to silence
code checkers, and changes all assignments to use WRITE_ONCE().

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Yongpeng Yang <yangyongpeng@xiaomi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2025-12-15 09:32:42 -07:00
..
aoe Summary of significant series in this pull request: 2025-10-02 18:18:33 -07:00
drbd for-6.19/block-20251201 2025-12-03 19:26:18 -08:00
mtip32xx
null_blk null_blk: fix zone read length beyond write pointer 2025-11-12 10:02:56 -07:00
rnbd block/rnbd: correct all kernel-doc complaints 2025-12-01 07:19:50 -07:00
rnull for-6.19/block-20251201 2025-12-03 19:26:18 -08:00
xen-blkback
zram Summary of significant series in this pull request: 2025-10-02 18:18:33 -07:00
amiflop.c
ataflop.c
brd.c
floppy.c floppy: fix for PAGE_SIZE != 4KB 2025-11-17 08:22:00 -07:00
Kconfig
loop.c loop: use READ_ONCE() to read lo->lo_state without locking 2025-12-15 09:32:42 -07:00
Makefile
n64cart.c
nbd.c for-6.19/block-20251201 2025-12-03 19:26:18 -08:00
ps3disk.c ps3disk: use memcpy_{from,to}_bvec index 2025-11-14 09:10:16 -07:00
ps3vram.c
rbd_types.h
rbd.c drivers/block: WQ_PERCPU added to alloc_workqueue users 2025-09-09 09:11:31 -06:00
sunvdc.c drivers/block: WQ_PERCPU added to alloc_workqueue users 2025-09-09 09:11:31 -06:00
swim_asm.S
swim.c
swim3.c
ublk_drv.c ublk: don't mutate struct bio_vec in iteration 2025-12-09 10:20:18 -07:00
virtio_blk.c virtio_blk: NULL out vqs to avoid double free on failed resume 2025-11-06 16:32:58 -07:00
xen-blkfront.c
z2ram.c
zloop.c blk-mq: add blk_rq_nr_bvec() helper 2025-12-04 07:19:26 -07:00