syzbot


KMSAN: uninit-value in nilfs_add_checksums_on_logs

Status: fixed on 2023/06/08 14:41
Subsystems: nilfs
[Documentation on labels]
Reported-by: syzbot+048585f3f4227bb2b49b@syzkaller.appspotmail.com
Fix commit: 7397031622e0 nilfs2: initialize "struct nilfs_binfo_dat"->bi_pad field ef832747a82d nilfs2: initialize unused bytes in segment summary blocks
First crash: 504d, last: 401d
Discussions (4)
Title Replies (including bot) Last reply
[PATCH] nilfs2: initialize unused bytes in segment summary blocks 1 (1) 2023/04/17 17:35
[syzbot] Monthly nilfs report 0 (1) 2023/03/27 11:03
[PATCH] nilfs2: initialize "struct nilfs_binfo_dat"->bi_pad field 1 (1) 2023/03/26 15:21
[syzbot] [nilfs?] KMSAN: uninit-value in nilfs_add_checksums_on_logs 0 (1) 2023/03/06 17:55
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in nilfs_add_checksums_on_logs (2) nilfs C 171 31d 192d 26/27 fixed on 2024/06/11 10:02
upstream KMSAN: uninit-value in nilfs_add_checksums_on_logs (3) nilfs 3 29d 27d 0/27 upstream: reported on 2024/06/15 19:43
upstream KMSAN: kernel-infoleak in _copy_to_iter (7) net C 138977 504d 856d 22/27 fixed on 2023/02/24 13:50
upstream KMSAN: uninit-value in virtqueue_add (3) virt 13 617d 909d 0/27 auto-obsoleted due to no activity on 2023/02/12 03:53
upstream KMSAN: uninit-value in post_read_mst_fixup fs 199 893d 1333d 0/27 auto-closed as invalid on 2022/05/31 07:12
upstream KMSAN: uninit-value in __crc32c_le_base (2) crypto C 6207 466d 1538d 0/27 closed as invalid on 2023/04/06 23:31
upstream KMSAN: kernel-infoleak in _copy_to_iter (8) mm C 21180 400d 494d 22/27 fixed on 2023/06/08 14:41

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in crc32_body lib/crc32.c:110 [inline]
BUG: KMSAN: uninit-value in crc32_le_generic lib/crc32.c:179 [inline]
BUG: KMSAN: uninit-value in crc32_le_base+0x43c/0xd80 lib/crc32.c:197
 crc32_body lib/crc32.c:110 [inline]
 crc32_le_generic lib/crc32.c:179 [inline]
 crc32_le_base+0x43c/0xd80 lib/crc32.c:197
 nilfs_segbuf_fill_in_data_crc fs/nilfs2/segbuf.c:218 [inline]
 nilfs_add_checksums_on_logs+0xb2c/0xe70 fs/nilfs2/segbuf.c:321
 nilfs_segctor_do_construct+0x9d40/0xde70 fs/nilfs2/segment.c:2101
 nilfs_segctor_construct+0x1eb/0xe30 fs/nilfs2/segment.c:2404
 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2512 [inline]
 nilfs_segctor_thread+0xc3f/0x11d0 fs/nilfs2/segment.c:2595
 kthread+0x3e8/0x540 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

Uninit was created at:
 __alloc_pages+0x9a4/0xe00 mm/page_alloc.c:4791
 alloc_pages+0xd01/0x1040
 folio_alloc+0x42/0x120 mm/mempolicy.c:2289
 filemap_alloc_folio+0xa5/0x430 mm/filemap.c:976
 __filemap_get_folio+0x908/0x13a0 mm/filemap.c:1965
 pagecache_get_page+0x4e/0x200 mm/folio-compat.c:99
 grab_cache_page_write_begin+0x55/0x70 mm/folio-compat.c:109
 block_write_begin+0x4f/0x450 fs/buffer.c:2171
 nilfs_write_begin+0xfc/0x200 fs/nilfs2/inode.c:261
 generic_perform_write+0x3df/0xbb0 mm/filemap.c:3923
 __generic_file_write_iter+0x393/0x920 mm/filemap.c:4051
 generic_file_write_iter+0x103/0x5b0 mm/filemap.c:4083
 __kernel_write_iter+0x323/0x930 fs/read_write.c:517
 dump_emit_page fs/coredump.c:886 [inline]
 dump_user_range+0x593/0xce0 fs/coredump.c:913
 elf_core_dump+0x59e8/0x5c60 fs/binfmt_elf.c:2142
 do_coredump+0x31e1/0x4820 fs/coredump.c:762
 get_signal+0x2185/0x2bc0 kernel/signal.c:2860
 arch_do_signal_or_restart+0x4f/0x920 arch/x86/kernel/signal.c:306
 exit_to_user_mode_loop+0xe8/0x320 kernel/entry/common.c:168
 exit_to_user_mode_prepare+0x163/0x220 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x2a/0x140 kernel/entry/common.c:297
 __do_fast_syscall_32+0xb1/0x100 arch/x86/entry/common.c:181
 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

CPU: 1 PID: 5310 Comm: segctord Not tainted 6.4.0-rc4-syzkaller-g2741f1b02117 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
=====================================================

Crashes (1079):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/08 01:57 https://github.com/google/kmsan.git master 2741f1b02117 7086cdb9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/06/07 00:23 https://github.com/google/kmsan.git master 2741f1b02117 a4ae4f42 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/06/02 20:12 https://github.com/google/kmsan.git master 2741f1b02117 a4ae4f42 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/06/02 06:15 https://github.com/google/kmsan.git master 2741f1b02117 a4ae4f42 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/05/22 07:16 https://github.com/google/kmsan.git master dad188c049f8 4bce1a3e .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/23 22:55 https://github.com/google/kmsan.git master 0255004d2a8e 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/23 18:19 https://github.com/google/kmsan.git master 0255004d2a8e 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/23 15:55 https://github.com/google/kmsan.git master 0255004d2a8e 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/23 10:38 https://github.com/google/kmsan.git master 0255004d2a8e 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/23 02:02 https://github.com/google/kmsan.git master 0255004d2a8e 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/22 21:28 https://github.com/google/kmsan.git master 0255004d2a8e 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/22 03:52 https://github.com/google/kmsan.git master 0255004d2a8e 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/21 11:38 https://github.com/google/kmsan.git master 0255004d2a8e 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/21 03:01 https://github.com/google/kmsan.git master 0255004d2a8e 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/20 11:05 https://github.com/google/kmsan.git master 0255004d2a8e 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/20 07:59 https://github.com/google/kmsan.git master 0255004d2a8e a219f34e .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/20 01:39 https://github.com/google/kmsan.git master 0255004d2a8e a219f34e .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/18 13:42 https://github.com/google/kmsan.git master 0255004d2a8e 436577a9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/18 10:25 https://github.com/google/kmsan.git master 0255004d2a8e 436577a9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/17 07:49 https://github.com/google/kmsan.git master c478e5b17829 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/15 18:16 https://github.com/google/kmsan.git master c478e5b17829 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/14 22:10 https://github.com/google/kmsan.git master c478e5b17829 3cfcaa1b .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/13 08:10 https://github.com/google/kmsan.git master 2500b7d438a0 82d5e53e .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/11 10:59 https://github.com/google/kmsan.git master 9189d4cb6980 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/10 23:55 https://github.com/google/kmsan.git master 9189d4cb6980 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/10 15:58 https://github.com/google/kmsan.git master 9189d4cb6980 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/09 21:04 https://github.com/google/kmsan.git master 9189d4cb6980 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/09 05:40 https://github.com/google/kmsan.git master 9189d4cb6980 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/08 09:18 https://github.com/google/kmsan.git master 9189d4cb6980 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/07 06:43 https://github.com/google/kmsan.git master 9189d4cb6980 00ce4c67 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/06 19:46 https://github.com/google/kmsan.git master 9189d4cb6980 08707520 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/06 02:52 https://github.com/google/kmsan.git master 9189d4cb6980 8b834965 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/04 07:51 https://github.com/google/kmsan.git master 9189d4cb6980 7db618d0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/04 05:43 https://github.com/google/kmsan.git master 9189d4cb6980 7db618d0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/04 05:22 https://github.com/google/kmsan.git master 9189d4cb6980 7db618d0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/03 05:18 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/02 20:46 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/02 13:46 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/02 12:39 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/02 11:46 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/02 10:08 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/02 09:08 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/02 04:25 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/01 21:48 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/01 20:01 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/01 18:56 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/04/01 04:14 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/03/06 12:49 https://github.com/google/kmsan.git master 54b4a7d3d6c6 f8902b57 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in nilfs_add_checksums_on_logs
2023/03/05 15:06 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 nilfs_add_checksums_on_logs
2023/02/24 19:48 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 nilfs_add_checksums_on_logs
* Struck through repros no longer work on HEAD.