syzbot


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

Status: moderation: reported on 2023/12/09 00:03
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+48231e90c63d7cc9b88d@syzkaller.appspotmail.com
First crash: 336d, last: 3d04h
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 (4) exfat 4 1225d 1272d 0/26 auto-closed as invalid on 2020/11/26 12:05
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (2) ext4 17 1410d 1550d 0/26 auto-closed as invalid on 2020/06/18 13:33
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize exfat 1 1572d 1572d 0/26 closed as invalid on 2019/11/19 14:44
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (5) block 628 470d 1014d 0/26 auto-obsoleted due to no activity on 2022/12/21 21:09
upstream KCSAN: data-race in do_mpage_readpage / set_blocksize (3) exfat 2 1309d 1332d 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 426d 426d 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 0xffff8881004c16ee of 1 bytes by task 16408 on cpu 0:
 set_blocksize+0x227/0x290 block/bdev.c:154
 sb_set_blocksize block/bdev.c:164 [inline]
 sb_min_blocksize+0x83/0x110 block/bdev.c:180
 ext4_load_super fs/ext4/super.c:5030 [inline]
 __ext4_fill_super fs/ext4/super.c:5227 [inline]
 ext4_fill_super+0x39f/0x39b0 fs/ext4/super.c:5703
 get_tree_bdev+0x250/0x2e0 fs/super.c:1614
 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5735
 vfs_get_tree+0x53/0x1d0 fs/super.c:1779
 do_new_mount+0x227/0x690 fs/namespace.c:3352
 path_mount+0x496/0xb30 fs/namespace.c:3679
 do_mount fs/namespace.c:3692 [inline]
 __do_sys_mount fs/namespace.c:3898 [inline]
 __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3875
 __x64_sys_mount+0x67/0x80 fs/namespace.c:3875
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff8881004c16ee of 1 bytes by task 17029 on cpu 1:
 do_mpage_readpage+0x55/0xca0 fs/mpage.c:162
 mpage_readahead+0x1ad/0x2d0 fs/mpage.c:381
 blkdev_readahead+0x1c/0x20 block/fops.c:440
 read_pages+0x9f/0x540 mm/readahead.c:160
 page_cache_ra_unbounded+0x2aa/0x2e0 mm/readahead.c:269
 do_page_cache_ra mm/readahead.c:299 [inline]
 force_page_cache_ra mm/readahead.c:330 [inline]
 page_cache_sync_ra+0x24b/0x2a0 mm/readahead.c:689
 page_cache_sync_readahead include/linux/pagemap.h:1300 [inline]
 filemap_get_pages+0x251/0xf90 mm/filemap.c:2498
 filemap_read+0x214/0x680 mm/filemap.c:2594
 blkdev_read_iter+0x217/0x2c0 block/fops.c:757
 call_read_iter include/linux/fs.h:2081 [inline]
 new_sync_read fs/read_write.c:395 [inline]
 vfs_read+0x5ab/0x6a0 fs/read_write.c:476
 ksys_read+0xeb/0x1a0 fs/read_write.c:619
 __do_sys_read fs/read_write.c:629 [inline]
 __se_sys_read fs/read_write.c:627 [inline]
 __x64_sys_read+0x42/0x50 fs/read_write.c:627
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0c -> 0x0a

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 17029 Comm: udevd Not tainted 6.8.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
==================================================================

Crashes (69):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/26 22:23 upstream d206a76d7d27 da36a36b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/02/23 09:50 upstream ffd2cb6b718e 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/02/22 00:17 upstream 39133352cbed 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/02/19 17:49 upstream b401b621758e 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/02/16 18:09 upstream 0f1dd5e91e2b 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/02/15 05:52 upstream 8d3dea210042 d9b1cdd5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/02/13 04:29 upstream 716f4aaa7b48 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/02/12 04:06 upstream 841c35169323 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/02/11 14:57 upstream 7521f258ea30 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/02/10 22:58 upstream a5b6244cf87c 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/02/08 07:27 upstream 547ab8fc4cb0 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/02/07 13:10 upstream 6d280f4d760e 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/02/06 16:40 upstream 99bd3cb0d12e 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/01/31 14:21 upstream 1bbb19b6eb1b 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/01/28 06:12 upstream cd2286fc5775 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/01/27 12:48 upstream 3a5879d495b2 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/01/26 09:08 upstream ecb1b8288dc7 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/01/22 07:12 upstream 4fbbed787267 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/01/18 06:06 upstream 1b1934dbbdcf 915053c7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/01/16 06:06 upstream 052d534373b7 2a7bcc7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2024/01/11 08:19 upstream de927f6c0b07 00f3cc59 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/12/29 11:45 upstream 8735c7c84d1b fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/12/29 03:49 upstream 505e701c0b2c fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/12/23 19:23 upstream 5254c0cbc92d fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/12/19 02:45 upstream 2cf4f94d8e86 924661f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/12/15 20:13 upstream 3f7168591ebf 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/12/13 21:43 upstream 5bd7ef53ffe5 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/12/12 03:16 upstream 26aff849438c 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/12/08 02:11 upstream 9ace34a8e446 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/11/25 21:24 upstream b46ae77f6787 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/11/22 08:59 upstream c2d5304e6c64 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/11/18 07:29 upstream 791c8ab095f7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/11/14 02:22 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/11/11 18:08 upstream 3ca112b71f35 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/10/28 02:05 upstream 750b95887e56 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/10/25 11:52 upstream 4f82870119a4 17e6d526 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/10/23 23:05 upstream 05d3ef8bba77 989a3687 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/10/14 17:49 upstream 70f8c6f8f880 f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/10/10 14:28 upstream 94f6f0550c62 c9be5398 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/10/09 02:43 upstream 94f6f0550c62 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/10/03 05:47 upstream ce36c8b14987 65faba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/09/25 19:46 upstream 6465e260f487 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/09/07 11:52 upstream 7ba2090ca64e 72324844 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/09/07 01:56 upstream 744a759492b5 72324844 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/08/30 03:27 upstream f97e18a3f2fb ce731e62 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/08/27 05:29 upstream 3b35375f19fe 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/08/23 19:32 upstream 89bf6209cad6 b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/08/23 04:59 upstream 53663f4103ff b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/08/19 17:29 upstream aa9ea98cca3a d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/08/07 22:16 upstream a027b2eca0b7 b1b6ae3d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/08/02 05:42 upstream 5d0c230f1de8 df07ffe8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/07/30 20:13 upstream d31e3792919e 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/07/28 08:42 upstream 57012c57536f 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/07/25 09:36 upstream 0b5547c51827 3b91ad04 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/07/20 11:08 upstream bfa3037d8280 4547cdf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/07/08 08:11 upstream 8689f4f2ea56 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/07/07 06:55 upstream a452483508d7 22ae5830 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/07/01 14:49 upstream d85a143b69ab bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/06/21 09:36 upstream 99ec1ed7c2ed 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/06/17 13:06 upstream 1639fae5132b f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/05/18 04:18 upstream 1b66c114d161 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/05/15 22:38 upstream f1fcbaa18b28 c4d362e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/04/28 08:46 upstream 35fab9271b7e 70a605de .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/04/24 03:22 upstream 457391b03803 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/04/23 00:18 upstream 2caeeb9d4a1b 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/04/17 04:51 upstream 6a8f57ae2eb0 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/04/15 17:32 upstream 7a934f4bd7d6 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/04/07 03:16 upstream f2afccfefe7b 00ce4c67 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mpage_readpage / set_blocksize
2023/03/30 11:26 upstream ffe78bbd5121 f325deb0 .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.