syzbot


KMSAN: uninit-value in ondemand_readahead

Status: upstream: reported on 2022/09/20 10:26
Reported-by: syzbot+8ce7f8308d91e6b8bbe2@syzkaller.appspotmail.com
First crash: 81d, last: 3d11h

Sample crash report:
loop0: detected capacity change from 0 to 16
cramfs: Error -3 while decompressing!
cramfs: ffffffff907d96e8(27)->ffff888049b34000(4096)
=====================================================
BUG: KMSAN: uninit-value in ondemand_readahead+0xd4b/0x1720 mm/readahead.c:596
 ondemand_readahead+0xd4b/0x1720 mm/readahead.c:596
 page_cache_sync_ra+0x733/0x770 mm/readahead.c:709
 page_cache_sync_readahead include/linux/pagemap.h:1213 [inline]
 cramfs_blkdev_read+0x602/0x1240 fs/cramfs/inode.c:217
 cramfs_read fs/cramfs/inode.c:278 [inline]
 cramfs_read_folio+0x91a/0x10f0 fs/cramfs/inode.c:890
 read_pages+0xdf4/0x1190 mm/readahead.c:181
 page_cache_ra_unbounded+0x88b/0x950 mm/readahead.c:270
 do_page_cache_ra mm/readahead.c:300 [inline]
 page_cache_ra_order+0x100d/0x10a0 mm/readahead.c:560
 ondemand_readahead+0x11e2/0x1720 mm/readahead.c:682
 page_cache_sync_ra+0x733/0x770 mm/readahead.c:709
 page_cache_sync_readahead include/linux/pagemap.h:1213 [inline]
 filemap_get_pages mm/filemap.c:2581 [inline]
 filemap_read+0x9f8/0x3c30 mm/filemap.c:2675
 generic_file_read_iter+0x128/0xaa0 mm/filemap.c:2821
 __kernel_read+0x3c1/0xaa0 fs/read_write.c:428
 integrity_kernel_read+0x80/0xb0 security/integrity/iint.c:199
 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline]
 ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline]
 ima_calc_file_hash+0x18b6/0x3e30 security/integrity/ima/ima_crypto.c:573
 ima_collect_measurement+0x56a/0xb10 security/integrity/ima/ima_api.c:292
 process_measurement+0x208a/0x3680 security/integrity/ima/ima_main.c:337
 ima_file_check+0xbc/0x120 security/integrity/ima/ima_main.c:517
 do_open fs/namei.c:3559 [inline]
 path_openat+0x497c/0x5600 fs/namei.c:3713
 do_filp_open+0x249/0x660 fs/namei.c:3740
 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+0x2a7/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+0x33/0x70 arch/x86/entry/common.c:203
 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:246
 entry_SYSENTER_compat_after_hwframe+0x70/0x82

Local variable ra created at:
 cramfs_blkdev_read+0xb9/0x1240 fs/cramfs/inode.c:186
 cramfs_read fs/cramfs/inode.c:278 [inline]
 cramfs_read_folio+0x91a/0x10f0 fs/cramfs/inode.c:890

CPU: 0 PID: 7526 Comm: syz-executor.0 Not tainted 6.1.0-rc6-syzkaller-63555-ga472f15b3d1e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
=====================================================

Crashes (116):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce-386 2022/11/25 23:02 https://github.com/google/kmsan.git master a472f15b3d1e 74a66371 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/19 20:52 https://github.com/google/kmsan.git master cb231e2f67ec 5bb70014 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/18 23:29 https://github.com/google/kmsan.git master cb231e2f67ec 5bb70014 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/18 20:44 https://github.com/google/kmsan.git master cb231e2f67ec 5bb70014 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/18 19:18 https://github.com/google/kmsan.git master cb231e2f67ec 5bb70014 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/18 12:42 https://github.com/google/kmsan.git master cb231e2f67ec 4ba8ab94 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/17 04:10 https://github.com/google/kmsan.git master cb231e2f67ec 3a127a31 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/16 18:53 https://github.com/google/kmsan.git master cb231e2f67ec 3a127a31 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/14 09:50 https://github.com/google/kmsan.git master cb231e2f67ec 3ead01ad .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/10 01:24 https://github.com/google/kmsan.git master b1376a14297d 5fa28208 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/07 20:21 https://github.com/google/kmsan.git master 380f0364f315 a779b11a .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/06 10:07 https://github.com/google/kmsan.git master 53d6b047b069 6d752409 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/03 18:46 https://github.com/google/kmsan.git master 00b2db371a9e 7a2ebf95 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/03 13:38 https://github.com/google/kmsan.git master 00b2db371a9e 7a2ebf95 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/03 01:21 https://github.com/google/kmsan.git master f2d7b53c0153 08977f5d .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/02 22:27 https://github.com/google/kmsan.git master f2d7b53c0153 08977f5d .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/02 02:06 https://github.com/google/kmsan.git master be8b0d020631 edac4fd1 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/11/01 23:10 https://github.com/google/kmsan.git master be8b0d020631 edac4fd1 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/30 07:09 https://github.com/google/kmsan.git master be8b0d020631 2a71366b .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/29 17:22 https://github.com/google/kmsan.git master be8b0d020631 899d812a .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/27 19:38 https://github.com/google/kmsan.git master 1aa4f78e4630 86777b7f .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/25 16:35 https://github.com/google/kmsan.git master 4a3e741a3d6a 45645420 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/24 15:58 https://github.com/google/kmsan.git master 968c2729e576 23bf86af .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/24 15:37 https://github.com/google/kmsan.git master 968c2729e576 23bf86af .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/23 02:18 https://github.com/google/kmsan.git master 968c2729e576 c0b80a55 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/23 00:39 https://github.com/google/kmsan.git master 968c2729e576 c0b80a55 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/22 18:03 https://github.com/google/kmsan.git master 968c2729e576 c0b80a55 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/21 03:47 https://github.com/google/kmsan.git master 968c2729e576 a0fd4dab .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/20 07:43 https://github.com/google/kmsan.git master 968c2729e576 b31320fc .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/19 03:55 https://github.com/google/kmsan.git master 968c2729e576 b31320fc .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/18 13:05 https://github.com/google/kmsan.git master 968c2729e576 754863b4 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/15 13:08 https://github.com/google/kmsan.git master 968c2729e576 67cb024c .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/14 14:37 https://github.com/google/kmsan.git master 968c2729e576 4954e4b2 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/14 01:17 https://github.com/google/kmsan.git master 968c2729e576 adf90437 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/13 20:58 https://github.com/google/kmsan.git master 968c2729e576 adf90437 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/13 16:56 https://github.com/google/kmsan.git master 968c2729e576 adf90437 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/13 15:20 https://github.com/google/kmsan.git master 968c2729e576 adf90437 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/13 02:01 https://github.com/google/kmsan.git master 968c2729e576 89b5a509 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/12 21:37 https://github.com/google/kmsan.git master 968c2729e576 89b5a509 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/11 13:39 https://github.com/google/kmsan.git master 968c2729e576 2b253ced .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/11 12:26 https://github.com/google/kmsan.git master 968c2729e576 2b253ced .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/10 11:52 https://github.com/google/kmsan.git master 968c2729e576 aea5da89 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/09 09:05 https://github.com/google/kmsan.git master 968c2729e576 aea5da89 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/09 07:27 https://github.com/google/kmsan.git master 968c2729e576 aea5da89 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/10/08 21:20 https://github.com/google/kmsan.git master 968c2729e576 aea5da89 .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/09/16 02:54 https://github.com/google/kmsan.git master 8f4ae27df775 dd9a85ff .config log report info KMSAN: uninit-value in ondemand_readahead
ci-upstream-kmsan-gce-386 2022/09/08 16:23 https://github.com/google/kmsan.git master 4367d178d9eb f3027468 .config log report info KMSAN: uninit-value in ondemand_readahead
* Struck through repros no longer work on HEAD.