syzbot


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

Status: moderation: reported on 2024/06/25 03:23
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+2968e9a3ea1930bdb425@syzkaller.appspotmail.com
First crash: 111d, last: 6d02h
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (4) exfat 4 1452d 1500d 0/28 auto-closed as invalid on 2020/11/26 12:05
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (2) ext4 17 1637d 1777d 0/28 auto-closed as invalid on 2020/06/18 13:33
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize exfat 1 1799d 1799d 0/28 closed as invalid on 2019/11/19 14:44
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (5) block 628 697d 1241d 0/28 auto-obsoleted due to no activity on 2022/12/21 21:09
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (7) block 82 165d 310d 0/28 auto-obsoleted due to no activity on 2024/06/06 01:05
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (3) exfat 2 1536d 1559d 0/28 auto-closed as invalid on 2020/09/03 22:48
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (6) block 1 653d 653d 0/28 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 0xffff8881004c236e of 1 bytes by task 5072 on cpu 0:
 set_blocksize+0x215/0x270 block/bdev.c:172
 sb_set_blocksize block/bdev.c:182 [inline]
 sb_min_blocksize+0x63/0xe0 block/bdev.c:198
 fat_fill_super+0x33a/0x1bf0 fs/fat/inode.c:1597
 vfat_fill_super+0x24/0x30 fs/fat/namei_vfat.c:1200
 get_tree_bdev+0x256/0x2e0 fs/super.c:1635
 vfat_get_tree+0x1c/0x30 fs/fat/namei_vfat.c:1205
 vfs_get_tree+0x56/0x1e0 fs/super.c:1800
 do_new_mount+0x227/0x690 fs/namespace.c:3507
 path_mount+0x49b/0xb30 fs/namespace.c:3834
 do_mount fs/namespace.c:3847 [inline]
 __do_sys_mount fs/namespace.c:4055 [inline]
 __se_sys_mount+0x27c/0x2d0 fs/namespace.c:4032
 __x64_sys_mount+0x67/0x80 fs/namespace.c:4032
 x64_sys_call+0x203e/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:166
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881004c236e of 1 bytes by task 3713 on cpu 1:
 do_mpage_readpage+0x55/0xcb0 fs/mpage.c:155
 mpage_readahead+0x1ad/0x2d0 fs/mpage.c:374
 blkdev_readahead+0x1c/0x30 block/fops.c:451
 read_pages+0xa0/0x540 mm/readahead.c:160
 page_cache_ra_unbounded+0x2d6/0x310 mm/readahead.c:290
 do_page_cache_ra mm/readahead.c:320 [inline]
 force_page_cache_ra mm/readahead.c:349 [inline]
 page_cache_sync_ra+0x252/0x670 mm/readahead.c:562
 page_cache_sync_readahead include/linux/pagemap.h:1394 [inline]
 filemap_get_pages+0x2c1/0x10e0 mm/filemap.c:2547
 filemap_read+0x216/0x680 mm/filemap.c:2645
 blkdev_read_iter+0x20e/0x2c0 block/fops.c:765
 new_sync_read fs/read_write.c:488 [inline]
 vfs_read+0x5f6/0x720 fs/read_write.c:569
 ksys_read+0xeb/0x1b0 fs/read_write.c:712
 __do_sys_read fs/read_write.c:722 [inline]
 __se_sys_read fs/read_write.c:720 [inline]
 __x64_sys_read+0x42/0x50 fs/read_write.c:720
 x64_sys_call+0x27d3/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:1
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0c -> 0x09

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3713 Comm: udevd Tainted: G        W          6.12.0-rc2-syzkaller-00006-g87d6aab2389e #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/08 04:33 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/10/07 20:16 upstream 87d6aab2389e d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/10/07 02:18 upstream 8cf0b93919e1 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/10/04 14:49 upstream 0c559323bbaa d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/10/02 10:24 upstream e32cde8d2bd7 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/09/29 19:17 upstream e7ed34365879 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/09/29 11:13 upstream 3efc57369a0c ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/09/17 22:29 upstream 2f27fce67173 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/09/17 16:18 upstream a430d95c5efa c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/09/15 13:44 upstream d42f7708e27c 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/09/10 10:18 upstream bc83b4d1f086 784df80e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/09/07 03:01 upstream b831f83e40a2 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/08/31 05:18 upstream 20371ba12063 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/08/27 13:27 upstream 3e9bff3bbe13 9aee4e0b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/08/25 05:18 upstream 780bdc1ba776 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/08/21 07:14 upstream b311c1b497e5 9f0ab3fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/08/20 01:16 upstream 6e4436539ae1 9f0ab3fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/08/17 09:09 upstream 85652baa895b dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/08/15 21:07 upstream 1fb918967b56 e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/08/14 21:53 upstream d07b43284ab3 e6b88e20 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/08/05 15:19 upstream de9c2c66ad8e e35c337f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/08/03 06:49 upstream 1c4246294c98 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/08/01 09:05 upstream 21b136cc63d2 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/07/22 08:07 upstream 7846b618e0a4 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/07/20 22:13 upstream 3c3ff7be9729 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/07/19 06:03 upstream 720261cfc732 ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/07/05 05:16 upstream 661e504db04c 3f2748a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/06/25 03:23 upstream 626737a5791b 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
* Struck through repros no longer work on HEAD.