syzbot


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

Status: auto-closed as invalid on 2021/11/10 04:07
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 568d, last: 423d
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 (3) 4 681d 724d 0/24 auto-closed as invalid on 2021/02/25 08:37
upstream KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter (2) 2 783d 785d 0/24 auto-closed as invalid on 2020/11/14 19:51
upstream KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter 1 1035d 1035d 0/24 auto-closed as invalid on 2020/04/11 15:30

Sample crash report:
loop_reread_partitions: partition scan of loop0 (PuxvOD180"aUM-=eYJCiԲ%8q) failed (rc=-5)
==================================================================
BUG: KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter

write to 0xffff888131996d54 of 4 bytes by task 3851 on cpu 1:
 blk_mq_unfreeze_queue+0x3c/0xc0 block/blk-mq.c:194
 loop_set_status+0x43e/0x5a0 drivers/block/loop.c:1564
 lo_ioctl+0x82c/0x13e0
 blkdev_ioctl+0x1d0/0x3f0 block/ioctl.c:589
 block_ioctl+0x6e/0x80 block/fops.c:478
 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/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888131996d54 of 4 bytes by task 3825 on cpu 0:
 blk_queue_enter+0x2c8/0x570 block/blk-core.c:462
 bio_queue_enter block/blk-core.c:477 [inline]
 __submit_bio_noacct_mq block/blk-core.c:989 [inline]
 submit_bio_noacct+0x6c4/0x7d0 block/blk-core.c:1031
 submit_bio+0x10c/0x190
 submit_bh_wbc+0x2f3/0x330 fs/buffer.c:3054
 submit_bh fs/buffer.c:3060 [inline]
 block_read_full_page+0x79c/0x880 fs/buffer.c:2339
 blkdev_readpage+0x18/0x20 block/fops.c:342
 do_read_cache_page+0x509/0x7d0 mm/filemap.c:3458
 read_cache_page+0x36/0x40 mm/filemap.c:3559
 read_mapping_page include/linux/pagemap.h:515 [inline]
 read_part_sector+0x7c/0x1b0 block/partitions/core.c:725
 read_lba+0x17e/0x290 block/partitions/efi.c:248
 find_valid_gpt block/partitions/efi.c:603 [inline]
 efi_partition+0x241/0x1240 block/partitions/efi.c:720
 check_partition block/partitions/core.c:147 [inline]
 blk_add_partitions block/partitions/core.c:610 [inline]
 bdev_disk_changed+0x511/0xe60 block/partitions/core.c:696
 loop_reread_partitions drivers/block/loop.c:693 [inline]
 loop_change_fd drivers/block/loop.c:804 [inline]
 lo_ioctl+0x1329/0x13e0 drivers/block/loop.c:1848
 blkdev_ioctl+0x1d0/0x3f0 block/ioctl.c:589
 block_ioctl+0x6e/0x80 block/fops.c:478
 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/0xa0 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: 3825 Comm: syz-executor.1 Not tainted 5.15.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
 loop0: unable to read partition table
loop_reread_partitions: partition scan of loop0 (PuxvOD180"aUM-=eYJCiԲ%8q) failed (rc=-5)

Crashes (13):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/10/06 04:00 upstream 60a9483534ed 0a63fd36 .config log report info KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter
ci2-upstream-kcsan-gce 2021/09/18 22:41 upstream 93ff9f13be91 70b76c1d .config log report info KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter
ci2-upstream-kcsan-gce 2021/09/15 14:01 upstream 3ca706c189db 07e953c1 .config log report info KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter
ci2-upstream-kcsan-gce 2021/09/07 02:43 upstream 4b93c544e90e 6ca60148 .config log report info KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter
ci2-upstream-kcsan-gce 2021/09/04 05:00 upstream a9c9a6f741cd d236a457 .config log report info KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter
ci2-upstream-kcsan-gce 2021/08/16 13:00 upstream 7c60610d4767 6652437d .config log report info KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter
ci2-upstream-kcsan-gce 2021/08/15 11:29 upstream 0aa78d17099b 2489ab88 .config log report info KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter
ci2-upstream-kcsan-gce 2021/08/02 21:05 upstream c500bee1c5b2 6c236867 .config log report info KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter
ci2-upstream-kcsan-gce 2021/07/07 05:27 upstream 3dbdb38e2869 cca78469 .config log report info KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter
ci2-upstream-kcsan-gce 2021/06/16 13:25 upstream 94f0b2d4a1d0 c06f97ad .config log report info KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter
ci2-upstream-kcsan-gce 2021/06/12 06:58 upstream f21b807c3cf8 1ba81399 .config log report info KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter
ci2-upstream-kcsan-gce 2021/06/10 23:00 upstream f09eacca59d2 1ba81399 .config log report info KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter
ci2-upstream-kcsan-gce 2021/05/14 11:40 upstream 315d99318179 8bdd5343 .config log report info KCSAN: data-race in blk_mq_unfreeze_queue / blk_queue_enter
* Struck through repros no longer work on HEAD.