syzbot


KCSAN: data-race in do_mpage_readpage / set_blocksize (5)
Status: moderation: reported on 2021/05/21 10:18
Reported-by: syzbot+b835723c20b8d5f40485@syzkaller.appspotmail.com
First crash: 515d, last: 4d06h
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (4) 4 582d 630d 0/22 auto-closed as invalid on 2020/11/26 12:05
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (2) 17 768d 907d 0/22 auto-closed as invalid on 2020/06/18 13:33
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize 1 930d 930d 0/22 closed as invalid on 2019/11/19 14:44
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (3) 2 666d 689d 0/22 auto-closed as invalid on 2020/09/03 22:48

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_mpage_readpage / set_blocksize

write to 0xffff888101ba5496 of 1 bytes by task 20746 on cpu 1:
 set_blocksize+0x20a/0x270 block/bdev.c:152
 sb_set_blocksize block/bdev.c:162 [inline]
 sb_min_blocksize+0x92/0x110 block/bdev.c:178
 __ext4_fill_super fs/ext4/super.c:4420 [inline]
 ext4_fill_super+0x1fc/0x3a80 fs/ext4/super.c:5599
 get_tree_bdev+0x2b4/0x3b0 fs/super.c:1292
 vfs_get_tree+0x49/0x190 fs/super.c:1497
 do_new_mount+0x200/0x650 fs/namespace.c:3040
 path_mount+0x4b1/0xb60 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x281/0x2d0 fs/namespace.c:3568
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888101ba5496 of 1 bytes by task 25615 on cpu 0:
 do_mpage_readpage+0x6c/0xf20 fs/mpage.c:135
 mpage_readahead+0x18b/0x3f0 fs/mpage.c:356
 blkdev_readahead+0x18/0x20 block/fops.c:382
 read_pages+0xa0/0x7c0 mm/readahead.c:158
 page_cache_ra_unbounded+0x2a8/0x2e0 mm/readahead.c:262
 do_page_cache_ra mm/readahead.c:292 [inline]
 force_page_cache_ra+0x1c6/0x200 mm/readahead.c:323
 page_cache_sync_ra+0xc8/0xf0 mm/readahead.c:692
 page_cache_sync_readahead include/linux/pagemap.h:1185 [inline]
 filemap_get_pages mm/filemap.c:2592 [inline]
 filemap_read+0x3e5/0x1400 mm/filemap.c:2679
 blkdev_read_iter+0x2c6/0x370 block/fops.c:596
 call_read_iter include/linux/fs.h:2046 [inline]
 new_sync_read fs/read_write.c:401 [inline]
 vfs_read+0x5a5/0x6a0 fs/read_write.c:482
 ksys_read+0xe8/0x1a0 fs/read_write.c:620
 __do_sys_read fs/read_write.c:630 [inline]
 __se_sys_read fs/read_write.c:628 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:628
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0c -> 0x0a

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 25615 Comm: udevd Not tainted 5.18.0-syzkaller-00511-g140e40e39a29-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (550):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/24 04:13 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/23 15:50 upstream 4b0986a3613c 4c7657cb .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/21 07:34 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/20 10:40 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/19 03:00 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/18 11:21 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/16 14:18 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/15 13:07 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/13 10:38 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/11 22:07 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/11 05:32 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/09 19:55 upstream 9be9ed2612b5 8b277b8e .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/08 11:27 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/08 05:23 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/07 06:45 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/06 18:49 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/06 10:04 upstream fe27d189e3f4 efeff0a5 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/05 08:07 upstream a7391ad35724 dc9e5259 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/04 05:58 upstream ef8e4d3c2ab1 dc9e5259 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/03 06:40 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/03 00:24 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/02 09:25 upstream 672c0c517342 2df221f6 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/05/01 05:34 upstream 57ae8a492116 2df221f6 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/30 14:17 upstream 8013d1d3d2e3 2df221f6 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/29 09:19 upstream 38d741cb70b3 e9076525 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/27 05:59 upstream cf424ef014ac 1fa34c1b .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/26 10:52 upstream d615b5416f8a 1fa34c1b .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/25 00:14 upstream 42740a2ff5d3 131df97d .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/24 13:11 upstream 22da5264abf4 131df97d .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/24 05:29 upstream 13bc32bad705 131df97d .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/23 10:00 upstream c00c5e1d157b 131df97d .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/22 16:40 upstream d569e86915b7 131df97d .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/21 12:57 upstream b253435746d9 d4befee1 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/21 00:50 upstream 559089e0a93d d4befee1 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/20 09:05 upstream 559089e0a93d 7d7bc738 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/19 13:53 upstream b2d229d4ddb1 c334415e .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/18 06:08 upstream a2c29ccd9477 8bcc32a6 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/15 09:39 upstream b9b4c79e5830 b17b2923 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/14 14:40 upstream a19944809fe9 b17b2923 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/13 03:38 upstream a19944809fe9 dacb3f1c .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/12 18:52 upstream ce522ba9ef7e dacb3f1c .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/11 08:37 upstream ce522ba9ef7e e22c3da3 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/10 10:46 upstream e1f700ebd6be e22c3da3 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/09 13:08 upstream f1b45d8ccb98 e22c3da3 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/07 19:00 upstream 3e732ebf7316 53c67432 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/03 09:19 upstream be2d3ecedd99 79a2a8fc .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/04/02 00:54 upstream d0d642a5d365 79a2a8fc .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/03/31 07:24 upstream 74164d284b29 9d49f3a7 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/03/30 01:28 upstream 1930a6e739c4 6bdac766 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/03/28 00:55 upstream f82da161ea75 89bc8608 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/03/27 03:49 upstream bddac7c1e02b 89bc8608 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2021/05/21 03:39 upstream ba816d3c265c 3c7fef33 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2021/05/17 08:35 upstream d07f6ca923ea f54a5c09 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2020/12/29 03:52 upstream dea8dcf2a9fa 8259d56c .config log report info