syzbot


KCSAN: data-race in do_mpage_readpage / set_blocksize (4)

Status: auto-closed as invalid on 2020/11/26 12:05
Subsystems: exfat
[Documentation on labels]
First crash: 1327d, last: 1280d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (2) ext4 17 1465d 1605d 0/26 auto-closed as invalid on 2020/06/18 13:33
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize exfat 1 1627d 1627d 0/26 closed as invalid on 2019/11/19 14:44
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (5) block 628 524d 1069d 0/26 auto-obsoleted due to no activity on 2022/12/21 21:09
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (7) block 81 6d11h 137d 0/26 moderation: reported on 2023/12/09 00:03
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (3) exfat 2 1363d 1387d 0/26 auto-closed as invalid on 2020/09/03 22:48
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (6) block 1 481d 481d 0/26 auto-obsoleted due to no activity on 2023/02/10 09:54

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

write to 0xffff888102202b86 of 1 bytes by task 3098 on cpu 0:
 set_blocksize+0x21f/0x2b0 fs/block_dev.c:153
 sb_set_blocksize fs/block_dev.c:163 [inline]
 sb_min_blocksize+0xa3/0x120 fs/block_dev.c:179
 fat_fill_super+0xd5d/0x2a00 fs/fat/inode.c:1649
 vfat_fill_super+0x2c/0x40 fs/fat/namei_vfat.c:1050
 mount_bdev+0x1e2/0x280 fs/super.c:1419
 vfat_mount+0x2d/0x40 fs/fat/namei_vfat.c:1057
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:592
 vfs_get_tree+0x4a/0x190 fs/super.c:1549
 do_new_mount fs/namespace.c:2875 [inline]
 path_mount+0x1269/0x1c00 fs/namespace.c:3203
 do_mount fs/namespace.c:3216 [inline]
 __do_sys_mount fs/namespace.c:3424 [inline]
 __se_sys_mount+0x23d/0x2e0 fs/namespace.c:3401
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3401
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888102202b86 of 1 bytes by task 3099 on cpu 1:
 do_mpage_readpage+0x6c/0x1030 fs/mpage.c:160
 mpage_readahead+0x157/0x340 fs/mpage.c:391
 blkdev_readahead+0x18/0x20 fs/block_dev.c:637
 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+0x38d/0x2110 mm/filemap.c:2227
 generic_file_read_iter+0x80/0x3d0 mm/filemap.c:2535
 blkdev_read_iter+0xb3/0xc0 fs/block_dev.c:1925
 call_read_iter include/linux/fs.h:1881 [inline]
 new_sync_read fs/read_write.c:415 [inline]
 vfs_read+0x56d/0x5e0 fs/read_write.c:481
 ksys_read+0xce/0x180 fs/read_write.c:615
 __do_sys_read fs/read_write.c:625 [inline]
 __se_sys_read fs/read_write.c:623 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:623
 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: 1 PID: 3099 Comm: systemd-udevd Not tainted 5.9.0-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
2020/10/22 12:02 upstream f804b3159482 be6b1582 .config console log report info ci2-upstream-kcsan-gce
2020/09/24 23:36 upstream 171d4ff79f96 54289b08 .config console log report info ci2-upstream-kcsan-gce
2020/09/12 03:17 upstream e8878ab82545 79fb24e2 .config console log report ci2-upstream-kcsan-gce
2020/09/05 04:15 upstream c70672d8d316 abf9ba4f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.