syzbot


KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init

Status: auto-closed as invalid on 2021/12/04 19:41
Reported-by: syzbot+49a9bcf457723ecaf1cf@syzkaller.appspotmail.com
First crash: 781d, last: 281d

Sample crash report:
loop4: detected capacity change from 0 to 224
==================================================================
BUG: KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init

write to 0xffff888101cf9950 of 8 bytes by task 3747 on cpu 1:
 blk_mq_rq_ctx_init+0x3dc/0x4e0 block/blk-mq.c:351
 __blk_mq_alloc_request+0x270/0x290 block/blk-mq.c:406
 blk_mq_submit_bio+0x27f/0xec0 block/blk-mq.c:2211
 __submit_bio+0x41a/0x480 block/blk-core.c:929
 __submit_bio_noacct_mq block/blk-core.c:1009 [inline]
 submit_bio_noacct+0x46d/0x530 block/blk-core.c:1039
 submit_bio+0x10c/0x190
 mpage_bio_submit fs/mpage.c:66 [inline]
 mpage_readahead+0x23e/0x280 fs/mpage.c:393
 blkdev_readahead+0x18/0x20 block/fops.c:347
 read_pages+0xb6/0x540 mm/readahead.c:130
 page_cache_ra_unbounded+0x3d2/0x430 mm/readahead.c:239
 do_page_cache_ra mm/readahead.c:269 [inline]
 force_page_cache_ra+0x256/0x290 mm/readahead.c:301
 page_cache_sync_ra+0xcc/0xe0 mm/readahead.c:575
 page_cache_sync_readahead include/linux/pagemap.h:883 [inline]
 filemap_get_pages mm/filemap.c:2545 [inline]
 filemap_read+0x3ad/0x1220 mm/filemap.c:2628
 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2779
 blkdev_read_iter+0xb9/0xf0 block/fops.c:545
 call_read_iter include/linux/fs.h:2157 [inline]
 new_sync_read fs/read_write.c:404 [inline]
 vfs_read+0x66c/0x750 fs/read_write.c:485
 ksys_read+0xd9/0x190 fs/read_write.c:623
 __do_sys_read fs/read_write.c:633 [inline]
 __se_sys_read fs/read_write.c:631 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:631
 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 0xffff888101cf9950 of 8 bytes by task 3798 on cpu 0:
 blk_mq_rq_ctx_init+0x3ca/0x4e0 block/blk-mq.c:351
 __blk_mq_alloc_request+0x270/0x290 block/blk-mq.c:406
 blk_mq_submit_bio+0x27f/0xec0 block/blk-mq.c:2211
 __submit_bio+0x41a/0x480 block/blk-core.c:929
 __submit_bio_noacct_mq block/blk-core.c:1009 [inline]
 submit_bio_noacct+0x46d/0x530 block/blk-core.c:1039
 submit_bio+0x10c/0x190
 submit_bh_wbc+0x2f3/0x330 fs/buffer.c:3054
 submit_bh fs/buffer.c:3060 [inline]
 __bread_slow fs/buffer.c:1180 [inline]
 __bread_gfp+0x110/0x220 fs/buffer.c:1382
 sb_bread include/linux/buffer_head.h:303 [inline]
 isofs_read_inode fs/isofs/inode.c:1317 [inline]
 __isofs_iget+0x1ae/0xff0 fs/isofs/inode.c:1550
 isofs_iget fs/isofs/isofs.h:133 [inline]
 isofs_fill_super+0x133e/0x1950 fs/isofs/inode.c:910
 mount_bdev+0x1e8/0x290 fs/super.c:1368
 isofs_mount+0x2d/0x40 fs/isofs/inode.c:1565
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610
 vfs_get_tree+0x4a/0x1a0 fs/super.c:1498
 do_new_mount fs/namespace.c:2988 [inline]
 path_mount+0x11ec/0x1d20 fs/namespace.c:3318
 do_mount fs/namespace.c:3331 [inline]
 __do_sys_mount fs/namespace.c:3539 [inline]
 __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3516
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3516
 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: 0x0000000000000055 -> 0x0000000000000056

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3798 Comm: syz-executor.4 Not tainted 5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
syz-executor.4 (3798) used greatest stack depth: 11248 bytes left

Crashes (1483):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/11/01 01:14 upstream 8bb7eca972ad 098b5d53 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/31 11:27 upstream 180eca540ae0 098b5d53 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/30 22:12 upstream 119c85055d86 098b5d53 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/30 00:05 upstream a379fbbcb88b 2353a3ec .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/29 07:43 upstream f25a5481af12 2353a3ec .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/28 18:13 upstream 411a44c24a56 be531bb4 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/27 22:36 upstream 1fc596a56b33 be531bb4 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/27 12:32 upstream d25f27432f80 373bf66b .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/27 03:47 upstream d25f27432f80 d50eb50a .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/26 12:16 upstream 3906fe9bb7f1 d50eb50a .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/25 18:58 upstream 87066fdd2e30 c1132b49 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/25 17:23 upstream 87066fdd2e30 4f0000ee .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/24 23:11 upstream 6c62666d8879 4f0000ee .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/23 06:05 upstream 9c0c4d24ac00 282f03fb .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/22 15:42 upstream 64222515138e 282f03fb .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/22 14:05 upstream 64222515138e 55f90bc6 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/21 19:34 upstream 2f111a6fd5b5 55f90bc6 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/21 13:30 upstream 2f111a6fd5b5 c5cb7da8 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/20 22:51 upstream 2f111a6fd5b5 f111d03b .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/20 10:34 upstream d9abdee5fd5a 418a00eb .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/19 17:04 upstream d9abdee5fd5a 24dc29db .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/18 18:09 upstream 519d81956ee2 24dc29db .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/18 03:50 upstream cf52ad5ff16c 0c5d9412 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/17 06:09 upstream d999ade1cc86 0c5d9412 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/16 17:07 upstream 304040fb4909 0c5d9412 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/15 15:35 upstream 8fe31e0995f0 0c5d9412 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/15 07:56 upstream ec681c53f8d2 aab7690b .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/14 21:51 upstream 26d657410983 7aa5fe41 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/14 14:41 upstream 26d657410983 5462d470 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/13 19:44 upstream 348949d9a444 5462d470 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/13 08:13 upstream f4d0cc426f77 9d56e7dd .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/12 22:08 upstream f4d0cc426f77 08362356 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/12 13:55 upstream fa5878760579 08362356 .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/12 01:08 upstream fa5878760579 838e7e2c .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/11 07:06 upstream 64570fbc14f8 838e7e2c .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/10 18:00 upstream efb52a7d9511 838e7e2c .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/10 01:50 upstream 7fd2bf83d59a 838e7e2c .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/09 12:32 upstream 5d6ab0bb408f 838e7e2c .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/09 09:48 upstream 5d6ab0bb408f efe0f24d .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/08 20:26 upstream 741668ef7832 efe0f24d .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/08 06:46 upstream 1da38549dd64 efe0f24d .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/07 18:21 upstream 4a16df549d23 efe0f24d .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/10/07 15:52 upstream 5af4055fa813 efe0f24d .config log report info KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init
ci2-upstream-kcsan-gce 2021/01/17 10:18 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2020/07/01 14:11 upstream 7c30b859a947 39acb39d .config log report
ci2-upstream-kcsan-gce 2020/06/27 15:47 upstream 1590a2e1c681 2defc703 .config log report
ci2-upstream-kcsan-gce 2020/06/18 14:32 upstream 1b5044021070 3ea11d3f .config log report