syzbot


KMSAN: uninit-value in iov_iter_alignment_iovec

Status: upstream: reported C repro on 2024/06/12 15:00
Subsystems: exfat
[Documentation on labels]
Reported-by: syzbot+f2a9c06bfaa027217ebb@syzkaller.appspotmail.com
First crash: 165d, last: 18h40m
Discussions (4)
Title Replies (including bot) Last reply
[syzbot] Monthly exfat report (Nov 2024) 0 (1) 2024/11/06 08:35
[PATCH] btrfs: Change iov_iter_alignment_iovec to check iovec count before accesses an iovec 2 (2) 2024/07/21 20:52
Re: [syzbot] [PATCH] btrfs: Change iov_iter_alignment_iovec to check iovec count before accesses an iovec 0 (1) 2024/07/21 19:12
[syzbot] [btrfs?] KMSAN: uninit-value in iov_iter_alignment_iovec 0 (1) 2024/06/12 15:00
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/09/06 17:26 32m retest repro upstream report log
2024/09/06 13:59 3h46m retest repro upstream report log
2024/07/21 19:12 28m dennis.lamerice@gmail.com patch upstream OK log
2024/06/23 04:07 22m retest repro upstream error

Sample crash report:
exFAT-fs (loop0): failed to load upcase table (idx : 0x0000fd4f, chksum : 0x3963664b, utbl_chksum : 0xe619d30d)
=====================================================
BUG: KMSAN: uninit-value in iov_iter_alignment_iovec+0x1a8/0x470 lib/iov_iter.c:892
 iov_iter_alignment_iovec+0x1a8/0x470 lib/iov_iter.c:892
 iov_iter_alignment+0x1ac/0x2d0 lib/iov_iter.c:937
 __blockdev_direct_IO+0x170/0x6460 fs/direct-io.c:1121
 blockdev_direct_IO include/linux/fs.h:3280 [inline]
 exfat_direct_IO+0x191/0x900 fs/exfat/inode.c:482
 generic_file_direct_write+0x275/0x6a0 mm/filemap.c:3977
 __generic_file_write_iter+0x242/0x460 mm/filemap.c:4141
 exfat_file_write_iter+0x894/0xfb0 fs/exfat/file.c:598
 io_write+0xbd3/0x20a0 io_uring/rw.c:1059
 io_issue_sqe+0x429/0x22c0 io_uring/io_uring.c:1739
 io_queue_sqe io_uring/io_uring.c:1953 [inline]
 io_submit_sqe io_uring/io_uring.c:2209 [inline]
 io_submit_sqes+0x125c/0x2f30 io_uring/io_uring.c:2324
 __do_sys_io_uring_enter io_uring/io_uring.c:3343 [inline]
 __se_sys_io_uring_enter+0x406/0x41c0 io_uring/io_uring.c:3279
 __x64_sys_io_uring_enter+0x11f/0x1a0 io_uring/io_uring.c:3279
 x64_sys_call+0x2b54/0x3ba0 arch/x86/include/generated/asm/syscalls_64.h:427
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Uninit was created at:
 slab_post_alloc_hook mm/slub.c:4091 [inline]
 slab_alloc_node mm/slub.c:4134 [inline]
 __do_kmalloc_node mm/slub.c:4263 [inline]
 __kmalloc_noprof+0x661/0xf30 mm/slub.c:4276
 kmalloc_noprof include/linux/slab.h:882 [inline]
 io_alloc_async_data+0xc0/0x220 io_uring/io_uring.c:1650
 io_rw_alloc_async io_uring/rw.c:228 [inline]
 io_prep_rw_setup io_uring/rw.c:245 [inline]
 io_prep_rw+0x921/0xcd0 io_uring/rw.c:286
 io_prep_rwv+0xb3/0x4e0 io_uring/rw.c:305
 io_prep_writev+0x3a/0x50 io_uring/rw.c:325
 io_init_req io_uring/io_uring.c:2124 [inline]
 io_submit_sqe io_uring/io_uring.c:2171 [inline]
 io_submit_sqes+0x112e/0x2f30 io_uring/io_uring.c:2324
 __do_sys_io_uring_enter io_uring/io_uring.c:3343 [inline]
 __se_sys_io_uring_enter+0x406/0x41c0 io_uring/io_uring.c:3279
 __x64_sys_io_uring_enter+0x11f/0x1a0 io_uring/io_uring.c:3279
 x64_sys_call+0x2b54/0x3ba0 arch/x86/include/generated/asm/syscalls_64.h:427
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

CPU: 0 UID: 0 PID: 5184 Comm: syz-executor406 Not tainted 6.12.0-rc3-syzkaller-00087-gc964ced77262 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
=====================================================

Crashes (34):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/17 15:30 upstream c964ced77262 666f77ed .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/06/08 19:25 upstream 614da38e2f7a 82c05ab8 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/20 08:42 upstream a5c93bfec0be 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/20 08:42 upstream a5c93bfec0be 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/18 18:57 upstream adc218676eef 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/18 15:50 upstream adc218676eef 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/18 15:50 upstream adc218676eef 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/17 00:53 upstream e8bdb3c8be08 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/11 15:12 upstream 2d5404caa8c7 97fe5517 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/11 15:11 upstream 2d5404caa8c7 97fe5517 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/10 00:33 upstream da4373fbcf00 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/03 07:27 upstream 3e5e6c9900c3 f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/02 10:25 upstream 11066801dd4b f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/10/31 09:19 upstream 4236f913808c fb888278 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/10/17 03:52 upstream c964ced77262 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/08/23 12:27 upstream aa0743a22936 ce8a9099 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/08/20 05:33 upstream b0da640826ba 9f0ab3fb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/08/20 05:33 upstream b0da640826ba 9f0ab3fb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/08/09 08:12 upstream cf6d429eb656 61405512 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/07/20 20:25 upstream 3c3ff7be9729 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/07/20 20:25 upstream 3c3ff7be9729 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/06/08 14:53 upstream 614da38e2f7a 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/20 12:07 upstream a5c93bfec0be 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/20 12:07 upstream a5c93bfec0be 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/18 19:29 upstream adc218676eef 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/18 19:29 upstream adc218676eef 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/11 19:56 upstream 2d5404caa8c7 97fe5517 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/11 19:55 upstream 2d5404caa8c7 97fe5517 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/11 06:37 upstream a9cda7c0ffed 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/11 06:37 upstream a9cda7c0ffed 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/03 11:33 upstream 3e5e6c9900c3 f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/11/03 11:33 upstream 3e5e6c9900c3 f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/08/15 10:51 upstream 9d5906799f7d e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in iov_iter_alignment_iovec
2024/08/15 10:51 upstream 9d5906799f7d e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in iov_iter_alignment_iovec
* Struck through repros no longer work on HEAD.