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: 646d, last: 11h11m
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 714d 761d 0/24 auto-closed as invalid on 2020/11/26 12:05
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (2) 17 899d 1039d 0/24 auto-closed as invalid on 2020/06/18 13:33
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize 1 1061d 1061d 0/24 closed as invalid on 2019/11/19 14:44
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (3) 2 798d 821d 0/24 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 0xffff8881023e2b1e of 1 bytes by task 7020 on cpu 0:
 set_blocksize+0x20a/0x270 block/bdev.c:151
 sb_set_blocksize block/bdev.c:161 [inline]
 sb_min_blocksize+0x92/0x110 block/bdev.c:177
 isofs_fill_super+0x702/0x17b0 fs/isofs/inode.c:658
 mount_bdev+0x1e2/0x280 fs/super.c:1400
 isofs_mount+0x2d/0x40 fs/isofs/inode.c:1567
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610
 vfs_get_tree+0x49/0x190 fs/super.c:1530
 do_new_mount+0x200/0x650 fs/namespace.c:3040
 path_mount+0x4ad/0xbb0 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+0x63/0xcd

read to 0xffff8881023e2b1e of 1 bytes by task 6448 on cpu 1:
 do_mpage_readpage+0x6c/0xcf0 fs/mpage.c:137
 mpage_readahead+0x27f/0x3a0 fs/mpage.c:361
 blkdev_readahead+0x18/0x20 block/fops.c:386
 read_pages+0xa5/0x790 mm/readahead.c:158
 page_cache_ra_unbounded+0x2a8/0x2e0 mm/readahead.c:263
 do_page_cache_ra mm/readahead.c:293 [inline]
 force_page_cache_ra+0x1c6/0x200 mm/readahead.c:324
 page_cache_sync_ra+0xc8/0xf0 mm/readahead.c:695
 page_cache_sync_readahead include/linux/pagemap.h:1215 [inline]
 filemap_get_pages mm/filemap.c:2566 [inline]
 filemap_read+0x3ef/0x1430 mm/filemap.c:2660
 blkdev_read_iter+0x2c6/0x370 block/fops.c:598
 call_read_iter include/linux/fs.h:2181 [inline]
 new_sync_read fs/read_write.c:389 [inline]
 vfs_read+0x3a5/0x560 fs/read_write.c:470
 ksys_read+0xe8/0x1a0 fs/read_write.c:613
 __do_sys_read fs/read_write.c:623 [inline]
 __se_sys_read fs/read_write.c:621 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:621
 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+0x63/0xcd

value changed: 0x0c -> 0x0a

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 6448 Comm: udevd Not tainted 6.0.0-syzkaller-03015-g2bca25eaeba6-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================
I/O error, dev loop3, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
I/O error, dev loop3, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
I/O error, dev loop3, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
I/O error, dev loop3, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
I/O error, dev loop3, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2

Crashes (620):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/10/06 12:50 upstream 2bca25eaeba6 2c6543ad .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/28 05:40 upstream 46452d3786a8 75c78242 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/27 11:07 upstream 3800a713b607 10323ddf .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/26 18:43 upstream f76349cf4145 d59ba983 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/25 12:40 upstream 1a61b828566f 0042f2b4 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/22 03:28 upstream 06f7db949993 60af5050 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/21 15:54 upstream 60891ec99e14 380f82fb .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/20 01:38 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/19 00:14 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/17 14:19 upstream a335366bad13 dd9a85ff .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/17 01:37 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/15 11:17 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/14 18:41 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/13 06:10 upstream e839a756012b f371ed7e .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/12 04:42 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/11 09:43 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/10 14:04 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/06 07:33 upstream 53e99dcff61e 9dcd38fc .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/05 18:14 upstream 7e18e42e4b28 922294ab .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/05 05:46 upstream 7e18e42e4b28 28811d0a .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/04 12:16 upstream 7726d4c3e60b 28811d0a .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/04 04:15 upstream 42cf58c272ee 28811d0a .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/03 13:48 upstream d895ec7938c4 49e94a20 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/09/02 07:30 upstream 42e66b1cc3a0 a805568e .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/29 04:28 upstream 8379c0b31fbc 07177916 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/28 20:13 upstream 10d4879f9ef0 07177916 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/22 21:11 upstream 1c23f9e627a7 26a13b38 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/21 16:48 upstream 15b3f48a4339 26a13b38 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/21 02:02 upstream f31c32efd57c 26a13b38 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/20 09:47 upstream 50cd95ac4654 26a13b38 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/19 04:09 upstream 573ae4f13f63 26a13b38 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/16 13:42 upstream 7ebfc85e2cd7 7a7cb304 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/13 15:04 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/12 17:59 upstream 7ebfc85e2cd7 402cd70d .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/10 15:37 upstream d4252071b97d aaa9eaa0 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/09 10:24 upstream eb555cb5b794 da700653 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/07 20:00 upstream 3bc1bc0b59d0 88e3a122 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/06 05:10 upstream 9e2f40233670 e853abd9 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/03 03:53 upstream 7d0d3fa7339e 1c9013ac .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/02 01:42 upstream 9de1f9c8ca51 fef302b1 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/08/01 01:16 upstream 334c0ef6429f fef302b1 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/07/31 15:36 upstream 6a010258447d fef302b1 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/07/30 15:05 upstream e65c6a46df94 fef302b1 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/07/29 23:12 upstream 6e2c0490769e fef302b1 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/07/28 06:14 upstream 6e7765cb477a fb95c74d .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/07/27 15:58 upstream 39c3c396f813 da9d0366 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/07/21 11:35 upstream 353f7988dd84 6e67af9d .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/07/18 02:17 upstream ff6992735ade 95cb00d1 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/07/17 12:55 upstream 972a278fe60c 95cb00d1 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/07/17 01:14 upstream c658cabbfd32 95cb00d1 .config log report info KCSAN: data-race in do_mpage_readpage / set_blocksize
ci2-upstream-kcsan-gce 2022/07/14 21:26 upstream 9bd572ec7a66 5d921b08 .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
* Struck through repros no longer work on HEAD.