syzbot


KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue (3)

Status: auto-closed as invalid on 2022/04/17 09:14
Subsystems: block
[Documentation on labels]
First crash: 775d, last: 775d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue (5) block 1 563d 563d 0/26 auto-obsoleted due to no activity on 2022/11/15 22:27
upstream KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue (9) block 10 59d 141d 0/26 auto-obsoleted due to no activity on 2024/04/02 12:09
upstream KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue block 1 895d 895d 0/26 auto-closed as invalid on 2021/12/18 22:19
upstream KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue (6) block 2 509d 527d 0/26 auto-obsoleted due to no activity on 2023/01/16 12:50
upstream KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue (7) block 1 361d 361d 0/26 auto-obsoleted due to no activity on 2023/06/05 14:18
upstream KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue (8) block 7 225d 289d 0/26 auto-obsoleted due to no activity on 2023/10/19 10:00
upstream KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue (4) block 11 613d 734d 0/26 auto-closed as invalid on 2022/09/26 17:17
upstream KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue (2) block 4 825d 835d 0/26 auto-closed as invalid on 2022/02/26 09:45

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue

write to 0xffff8881186674f4 of 4 bytes by task 16346 on cpu 1:
 __blk_mq_unfreeze_queue block/blk-mq.c:223 [inline]
 blk_mq_unfreeze_queue+0x3c/0xc0 block/blk-mq.c:234
 loop_set_status+0x487/0x5d0 drivers/block/loop.c:1295
 lo_ioctl+0x835/0x1260
 blkdev_ioctl+0x20e/0x440 block/ioctl.c:588
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:860
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881186674f4 of 4 bytes by task 2392 on cpu 0:
 __bio_queue_enter+0x1ea/0x500 block/blk-core.c:397
 bio_queue_enter block/blk.h:81 [inline]
 blk_mq_get_new_requests block/blk-mq.c:2731 [inline]
 blk_mq_submit_bio+0x492/0xff0 block/blk-mq.c:2821
 __submit_bio+0x151/0x350 block/blk-core.c:800
 __submit_bio_noacct_mq block/blk-core.c:875 [inline]
 submit_bio_noacct+0x418/0x4e0 block/blk-core.c:901
 submit_bio+0x10c/0x180
 mpage_bio_submit fs/mpage.c:65 [inline]
 mpage_readahead+0x27d/0x2c0 fs/mpage.c:386
 blkdev_readahead+0x18/0x20 block/fops.c:403
 read_pages+0xba/0x5f0 mm/readahead.c:129
 page_cache_ra_unbounded+0x16a/0x400 mm/readahead.c:210
 do_page_cache_ra mm/readahead.c:268 [inline]
 force_page_cache_ra+0x1e6/0x220 mm/readahead.c:300
 page_cache_sync_ra+0xcc/0xe0 mm/readahead.c:574
 page_cache_sync_readahead include/linux/pagemap.h:1056 [inline]
 filemap_get_pages mm/filemap.c:2589 [inline]
 filemap_read+0x3ed/0x1430 mm/filemap.c:2676
 blkdev_read_iter+0x2cc/0x380 block/fops.c:616
 call_read_iter include/linux/fs.h:2068 [inline]
 new_sync_read fs/read_write.c:400 [inline]
 vfs_read+0x66c/0x750 fs/read_write.c:481
 ksys_read+0xd9/0x190 fs/read_write.c:619
 __do_sys_read fs/read_write.c:629 [inline]
 __se_sys_read fs/read_write.c:627 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:627
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2392 Comm: udevd Not tainted 5.17.0-rc7-syzkaller-00235-gaad611a868d1-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/13 09:10 upstream aad611a868d1 9e8eaa75 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue
* Struck through repros no longer work on HEAD.