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: 149d, last: 1d05h
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 1490d 1538d 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 1675d 1815d 0/28 auto-closed as invalid on 2020/06/18 13:33
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize exfat 1 1837d 1837d 0/28 closed as invalid on 2019/11/19 14:44
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (5) block 628 735d 1279d 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 203d 348d 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 1574d 1597d 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 691d 691d 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 0xffff8881004c16ee of 1 bytes by task 6106 on cpu 1:
 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
 ext4_load_super fs/ext4/super.c:5038 [inline]
 __ext4_fill_super fs/ext4/super.c:5259 [inline]
 ext4_fill_super+0x38b/0x3a10 fs/ext4/super.c:5733
 get_tree_bdev_flags+0x29f/0x310 fs/super.c:1636
 get_tree_bdev+0x1f/0x30 fs/super.c:1659
 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5765
 vfs_get_tree+0x56/0x1e0 fs/super.c:1814
 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:4057 [inline]
 __se_sys_mount+0x27c/0x2d0 fs/namespace.c:4034
 __x64_sys_mount+0x67/0x80 fs/namespace.c:4034
 x64_sys_call+0x2c84/0x2dc0 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 0xffff8881004c16ee of 1 bytes by task 4986 on cpu 0:
 do_mpage_readpage+0x55/0xcb0 fs/mpage.c:155
 mpage_readahead+0x1ad/0x2d0 fs/mpage.c:374
 blkdev_readahead+0x1c/0x30 block/fops.c:447
 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+0x221/0x6a0 mm/filemap.c:2647
 blkdev_read_iter+0x20e/0x2c0 block/fops.c:767
 new_sync_read fs/read_write.c:484 [inline]
 vfs_read+0x5dc/0x700 fs/read_write.c:565
 ksys_read+0xe8/0x1b0 fs/read_write.c:708
 __do_sys_read fs/read_write.c:717 [inline]
 __se_sys_read fs/read_write.c:715 [inline]
 __x64_sys_read+0x42/0x50 fs/read_write.c:715
 x64_sys_call+0x2874/0x2dc0 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 -> 0x0a

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4986 Comm: udevd Not tainted 6.12.0-syzkaller-00971-g158f238aa69d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
==================================================================

Crashes (38):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/20 00:55 upstream 158f238aa69d 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/11/14 12:17 upstream 0a9b9d17f3a7 a8c99394 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/11/09 00:34 upstream f1dce1f09380 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/11/08 00:34 upstream ff7afaeca1a1 867e44df .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/31 12:42 upstream 4236f913808c 96eb609f .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/30 11:28 upstream c1e939a21eb1 66aeb999 .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/23 19:47 upstream c2ee9f594da8 15fa2979 .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/19 02:04 upstream b04ae0f45168 cd6fc0a3 .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/18 05:47 upstream 6efbea77b390 666f77ed .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/16 23:14 upstream c964ced77262 666f77ed .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/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.