syzbot


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

Status: auto-closed as invalid on 2021/02/25 08:37
Subsystems: block
[Documentation on labels]
First crash: 1581d, last: 1537d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter (4) block 13 1279d 1424d 0/28 auto-closed as invalid on 2021/11/10 04:07
upstream KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter (2) block 2 1640d 1641d 0/28 auto-closed as invalid on 2020/11/14 19:51
upstream KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter block 1 1892d 1892d 0/28 auto-closed as invalid on 2020/04/11 15:30

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

read-write to 0xffff888102713d94 of 4 bytes by task 2389 on cpu 1:
 blk_mq_unfreeze_queue+0x34/0xb0 block/blk-mq.c:194
 loop_set_status+0x69b/0x7c0 drivers/block/loop.c:1405
 lo_ioctl+0x743/0x11d0 drivers/block/loop.c:1484
 blkdev_ioctl+0x1d0/0x3c0 block/ioctl.c:576
 block_ioctl+0x6d/0x80 fs/block_dev.c:1650
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:739
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:739
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888102713d94 of 4 bytes by task 30845 on cpu 0:
 blk_queue_enter+0x208/0x540 block/blk-core.c:468
 bio_queue_enter block/blk-core.c:483 [inline]
 __submit_bio_noacct_mq block/blk-core.c:1019 [inline]
 submit_bio_noacct+0x6f8/0x910 block/blk-core.c:1061
 submit_bio+0x1f3/0x350 block/blk-core.c:1131
 mpage_bio_submit fs/mpage.c:66 [inline]
 mpage_readahead+0x2ff/0x340 fs/mpage.c:395
 blkdev_readahead+0x18/0x20 fs/block_dev.c:628
 read_pages+0xa0/0x6e0 mm/readahead.c:130
 page_cache_ra_unbounded+0x464/0x4c0 mm/readahead.c:238
 do_page_cache_ra mm/readahead.c:267 [inline]
 force_page_cache_ra+0x226/0x260 mm/readahead.c:298
 page_cache_sync_ra+0x194/0x1c0 mm/readahead.c:572
 page_cache_sync_readahead include/linux/pagemap.h:839 [inline]
 generic_file_buffered_read_get_pages+0x234/0xaf0 mm/filemap.c:2361
 generic_file_buffered_read+0x27f/0x9a0 mm/filemap.c:2481
 generic_file_read_iter+0x80/0x3d0 mm/filemap.c:2633
 blkdev_read_iter+0xb3/0xc0 fs/block_dev.c:1706
 call_read_iter include/linux/fs.h:1895 [inline]
 new_sync_read fs/read_write.c:415 [inline]
 vfs_read+0x552/0x5c0 fs/read_write.c:496
 ksys_read+0xce/0x180 fs/read_write.c:634
 __do_sys_read fs/read_write.c:644 [inline]
 __se_sys_read fs/read_write.c:642 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:642
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 30845 Comm: systemd-udevd Not tainted 5.11.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/21 08:31 upstream 75439bc439e0 d4f4eca5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter
2020/12/20 20:32 upstream 6a447b0e3151 04201c06 .config console log report info ci2-upstream-kcsan-gce
2020/12/10 07:50 upstream ca4bbdaf1716 c090b4da .config console log report info ci2-upstream-kcsan-gce
2020/12/08 17:42 upstream cd796ed33450 9af51e31 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.