syzbot


upstream test error: KMSAN: uninit-value in receive_buf

Status: upstream: reported on 2024/05/25 16:12
Subsystems: net virt
[Documentation on labels]
Reported-by: syzbot+799fbb6d9e02a7a1d62b@syzkaller.appspotmail.com
Fix commit: virtio_ring: fix KMSAN error for premapped mode
Patched on: [], missing on: [ci-qemu-native-arm64-kvm ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-net-next-test-gce ci2-upstream-usb]
First crash: 27d, last: 40m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [net?] [virt?] upstream test error: KMSAN: uninit-value in receive_buf 3 (4) 2024/06/18 02:56

Sample crash report:
BUG: KMSAN: uninit-value in receive_mergeable drivers/net/virtio_net.c:1839 [inline]
BUG: KMSAN: uninit-value in receive_buf+0x25e3/0x5fd0 drivers/net/virtio_net.c:1955
 receive_mergeable drivers/net/virtio_net.c:1839 [inline]
 receive_buf+0x25e3/0x5fd0 drivers/net/virtio_net.c:1955
 virtnet_receive drivers/net/virtio_net.c:2259 [inline]
 virtnet_poll+0xd1c/0x23c0 drivers/net/virtio_net.c:2362
 __napi_poll+0xe7/0x980 net/core/dev.c:6722
 napi_poll net/core/dev.c:6791 [inline]
 net_rx_action+0x82a/0x1850 net/core/dev.c:6907
 handle_softirqs+0x1ce/0x800 kernel/softirq.c:554
 __do_softirq kernel/softirq.c:588 [inline]
 invoke_softirq kernel/softirq.c:428 [inline]
 __irq_exit_rcu+0x68/0x120 kernel/softirq.c:637
 irq_exit_rcu+0x12/0x20 kernel/softirq.c:649
 common_interrupt+0x94/0xa0 arch/x86/kernel/irq.c:278
 asm_common_interrupt+0x2b/0x40 arch/x86/include/asm/idtentry.h:693
 smap_save mm/kmsan/instrumentation.c:92 [inline]
 get_shadow_origin_ptr mm/kmsan/instrumentation.c:33 [inline]
 __msan_metadata_ptr_for_store_8+0x14/0x40 mm/kmsan/instrumentation.c:92
 __handle_mm_fault mm/memory.c:5452 [inline]
 handle_mm_fault+0xbbc/0xe610 mm/memory.c:5688
 asm_exc_page_fault+0x2b/0x30 arch/x86/include/asm/idtentry.h:623

Uninit was created at:
 __alloc_pages_noprof+0x9d6/0xe70 mm/page_alloc.c:4701
 alloc_pages_mpol_noprof+0x299/0x990 mm/mempolicy.c:2265
 alloc_pages_noprof+0x1bf/0x1e0 mm/mempolicy.c:2336
 skb_page_frag_refill+0x2bf/0x7c0 net/core/sock.c:2920
 virtnet_rq_alloc+0x43/0xbb0 drivers/net/virtio_net.c:882
 add_recvbuf_mergeable drivers/net/virtio_net.c:2110 [inline]
 try_fill_recv+0x3f0/0x2f50 drivers/net/virtio_net.c:2155
 virtnet_open+0x1cc/0xb00 drivers/net/virtio_net.c:2434
 __dev_open+0x546/0x6f0 net/core/dev.c:1472
 __dev_change_flags+0x309/0x9a0 net/core/dev.c:8781
 dev_change_flags+0x8e/0x1d0 net/core/dev.c:8853
 devinet_ioctl+0x13ec/0x22c0 net/ipv4/devinet.c:1177
 inet_ioctl+0x4bd/0x6d0 net/ipv4/af_inet.c:1003
 sock_do_ioctl+0xb7/0x540 net/socket.c:1222
 sock_ioctl+0x727/0xd70 net/socket.c:1341
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl+0x261/0x450 fs/ioctl.c:893
 __x64_sys_ioctl+0x96/0xe0 fs/ioctl.c:893
 x64_sys_call+0x18c0/0x3b90 arch/x86/include/generated/asm/syscalls_64.h:17
 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 PID: 4795 Comm: rm Not tainted 6.10.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
=====================================================

Crashes (144):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/17 16:46 upstream 6ba59ff42279 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/17 03:36 upstream 6ba59ff42279 f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/16 22:34 upstream b5beaa44747b f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/16 00:09 upstream a3e18a540541 f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/15 19:28 upstream 08a6b55aa0c6 f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/15 09:06 upstream 44ef20baed8e f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/15 01:22 upstream c286c21ff942 8d849073 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/14 19:23 upstream d20f6b3d747c 8d849073 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/13 21:32 upstream d20f6b3d747c a9616ff5 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/13 19:05 upstream 2ccbdf43d5e7 a9616ff5 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/13 02:32 upstream 2ccbdf43d5e7 2aa5052f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/12 18:02 upstream cea2a26553ac 4d75f4f7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/12 02:42 upstream 2ef5971ff345 4d75f4f7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/12 01:21 upstream 2ef5971ff345 c7d7d815 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/10 15:07 upstream 83a7eefedc9b 048c640a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/09 23:07 upstream 83a7eefedc9b 82c05ab8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/09 17:07 upstream b8481381d4e2 82c05ab8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/08 02:55 upstream dc772f8237f9 82c05ab8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/08 01:04 upstream 07978330e634 82c05ab8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/07 22:01 upstream 96e09b8f8166 82c05ab8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/05/25 04:11 upstream 56fb6f92854f a10a183e .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/18 13:10 upstream 14d7c92f8df9 639d6cdf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/18 11:49 upstream 14d7c92f8df9 ce6011bc .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/18 05:09 upstream 14d7c92f8df9 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/17 23:01 upstream 6226e74900d7 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/17 17:53 upstream 6ba59ff42279 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/17 04:54 upstream 6ba59ff42279 f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/17 00:03 upstream 6456c4256d1c f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/16 19:16 upstream b5beaa44747b f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/16 03:20 upstream a3e18a540541 f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/15 22:15 upstream 08a6b55aa0c6 f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/15 10:13 upstream 44ef20baed8e f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/15 07:14 upstream 44ef20baed8e 8d849073 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/15 04:56 upstream c286c21ff942 8d849073 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/15 00:11 upstream 0cac73eb3875 8d849073 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/14 18:15 upstream d20f6b3d747c 8d849073 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/13 22:45 upstream d20f6b3d747c a9616ff5 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/12 22:50 upstream cea2a26553ac 2aa5052f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/12 04:05 upstream 2ef5971ff345 4d75f4f7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/11 10:41 upstream 83a7eefedc9b c7d7d815 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/09 22:24 upstream 83a7eefedc9b 82c05ab8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/09 03:22 upstream 771ed66105de 82c05ab8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/08 19:16 upstream 061d1af7b030 82c05ab8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/08 17:52 upstream 36714d69b186 82c05ab8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/08 04:10 upstream dc772f8237f9 82c05ab8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/06/07 18:47 upstream 8a92980606e3 82c05ab8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
2024/05/21 16:06 upstream 8f6a15f095a6 1014eca7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream test error: KMSAN: uninit-value in receive_buf
* Struck through repros no longer work on HEAD.