syzbot


KMSAN: uninit-value in ondemand_readahead

Status: fixed on 2023/06/08 14:41
Subsystems: fs mm
[Documentation on labels]
Reported-by: syzbot+8ce7f8308d91e6b8bbe2@syzkaller.appspotmail.com
Fix commit: 3e35102666f8 fs/cramfs/inode.c: initialize file_ra_state
First crash: 804d, last: 629d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] KMSAN: uninit-value in ondemand_readahead 1 (3) 2023/02/26 20:38

Sample crash report:
loop0: detected capacity change from 0 to 16
=====================================================
BUG: KMSAN: uninit-value in ondemand_readahead+0xddf/0x1720 mm/readahead.c:596
 ondemand_readahead+0xddf/0x1720 mm/readahead.c:596
 page_cache_sync_ra+0x72b/0x760 mm/readahead.c:709
 page_cache_sync_readahead include/linux/pagemap.h:1210 [inline]
 cramfs_blkdev_read fs/cramfs/inode.c:217 [inline]
 cramfs_read+0x611/0x1280 fs/cramfs/inode.c:278
 cramfs_lookup+0x1b8/0x870 fs/cramfs/inode.c:767
 __lookup_slow+0x528/0x730 fs/namei.c:1685
 lookup_slow+0x6a/0xc0 fs/namei.c:1702
 walk_component fs/namei.c:1993 [inline]
 link_path_walk+0xe9a/0x1620 fs/namei.c:2320
 path_openat+0x333/0x5750 fs/namei.c:3710
 do_filp_open+0x24d/0x660 fs/namei.c:3741
 do_sys_openat2+0x1f0/0x910 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_compat_sys_openat fs/open.c:1386 [inline]
 __se_compat_sys_openat fs/open.c:1384 [inline]
 __ia32_compat_sys_openat+0x2ab/0x330 fs/open.c:1384
 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
 __do_fast_syscall_32+0xa2/0x100 arch/x86/entry/common.c:178
 do_fast_syscall_32+0x37/0x80 arch/x86/entry/common.c:203
 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:246
 entry_SYSENTER_compat_after_hwframe+0x70/0x82

Local variable ra.i created at:
 cramfs_blkdev_read fs/cramfs/inode.c:186 [inline]
 cramfs_read+0xc0/0x1280 fs/cramfs/inode.c:278
 cramfs_lookup+0x1b8/0x870 fs/cramfs/inode.c:767

CPU: 1 PID: 5017 Comm: syz-executor948 Not tainted 6.2.0-syzkaller-81152-g97e36f4aa06f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
=====================================================

Crashes (221):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/24 08:31 https://github.com/google/kmsan.git master 97e36f4aa06f 9e2ebb3c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/03/02 22:43 https://github.com/google/kmsan.git master 944070199c5e f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/03/02 05:12 https://github.com/google/kmsan.git master 944070199c5e f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/28 19:12 https://github.com/google/kmsan.git master 97e36f4aa06f 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/28 15:06 https://github.com/google/kmsan.git master 97e36f4aa06f 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/28 00:13 https://github.com/google/kmsan.git master 97e36f4aa06f e792ae78 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/24 21:22 https://github.com/google/kmsan.git master 97e36f4aa06f ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/23 17:14 https://github.com/google/kmsan.git master 97e36f4aa06f 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/23 14:52 https://github.com/google/kmsan.git master 97e36f4aa06f 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/23 00:14 https://github.com/google/kmsan.git master 97e36f4aa06f 409945bc .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/22 22:46 https://github.com/google/kmsan.git master 97e36f4aa06f 409945bc .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/22 11:01 https://github.com/google/kmsan.git master 224e1375d540 42a4d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/19 04:08 https://github.com/google/kmsan.git master 31b504f219a9 bcdf85f8 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/18 04:40 https://github.com/google/kmsan.git master 31b504f219a9 3e7039f4 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/18 01:48 https://github.com/google/kmsan.git master 31b504f219a9 3e7039f4 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/18 00:16 https://github.com/google/kmsan.git master 31b504f219a9 3e7039f4 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/16 17:30 https://github.com/google/kmsan.git master 9c866a280876 7338e3c4 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/16 08:38 https://github.com/google/kmsan.git master 9c866a280876 6be0f1f5 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/16 07:34 https://github.com/google/kmsan.git master 9c866a280876 6be0f1f5 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/14 09:59 https://github.com/google/kmsan.git master da13c00eebfb 93ae7e0a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/12 10:30 https://github.com/google/kmsan.git master 8c89ecf5c13b 93e26d60 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/12 04:19 https://github.com/google/kmsan.git master 8c89ecf5c13b 93e26d60 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/11 10:27 https://github.com/google/kmsan.git master 8c89ecf5c13b 93e26d60 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/10 09:27 https://github.com/google/kmsan.git master 8c89ecf5c13b 07980f9d .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/10 05:21 https://github.com/google/kmsan.git master 8c89ecf5c13b 07980f9d .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/07 09:39 https://github.com/google/kmsan.git master eda666ff2276 0a9c11b6 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/06 23:46 https://github.com/google/kmsan.git master eda666ff2276 0a9c11b6 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/06 08:09 https://github.com/google/kmsan.git master eda666ff2276 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/06 02:32 https://github.com/google/kmsan.git master eda666ff2276 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/04 11:19 https://github.com/google/kmsan.git master eda666ff2276 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/03 22:33 https://github.com/google/kmsan.git master eda666ff2276 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/02/02 11:30 https://github.com/google/kmsan.git master eda666ff2276 9dfcf09c .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/01/31 10:39 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/01/28 14:09 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/01/28 12:39 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/01/27 11:10 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/01/27 04:40 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/01/24 19:07 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/01/20 02:42 https://github.com/google/kmsan.git master e919e2b1bc1c 1b826a2f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/01/18 14:14 https://github.com/google/kmsan.git master e919e2b1bc1c 42660d9e .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/01/16 15:38 https://github.com/google/kmsan.git master e919e2b1bc1c a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/01/16 09:49 https://github.com/google/kmsan.git master e919e2b1bc1c a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2023/01/12 01:52 https://github.com/google/kmsan.git master 80383273f7a0 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2022/09/16 02:54 https://github.com/google/kmsan.git master 8f4ae27df775 dd9a85ff .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
2022/09/08 16:23 https://github.com/google/kmsan.git master 4367d178d9eb f3027468 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ondemand_readahead
* Struck through repros no longer work on HEAD.