syzbot


upstream boot error: KMSAN: uninit-value in receive_buf

Status: upstream: reported on 2024/05/28 08:12
Subsystems: net virt
[Documentation on labels]
Reported-by: syzbot+c5336dcd1b741349d27a@syzkaller.appspotmail.com
First crash: 37d, last: 32d
Discussions (2)
Title Replies (including bot) Last reply
Re: [PATCH vhost v13 04/12] virtio_ring: support add premapped buf 2 (2) 2024/06/05 16:02
[syzbot] [net?] [virt?] upstream boot error: KMSAN: uninit-value in receive_buf 0 (1) 2024/05/28 08:12

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:6721
 napi_poll net/core/dev.c:6790 [inline]
 net_rx_action+0x82a/0x1850 net/core/dev.c:6906
 handle_softirqs+0x1d8/0x810 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
 native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline]
 arch_safe_halt arch/x86/include/asm/irqflags.h:86 [inline]
 acpi_safe_halt+0x25/0x30 drivers/acpi/processor_idle.c:112
 acpi_idle_do_entry+0x22/0x40 drivers/acpi/processor_idle.c:573
 acpi_idle_enter+0xa1/0xc0 drivers/acpi/processor_idle.c:707
 cpuidle_enter_state+0xcb/0x250 drivers/cpuidle/cpuidle.c:267
 cpuidle_enter+0x7f/0xf0 drivers/cpuidle/cpuidle.c:388
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:236 [inline]
 do_idle+0x551/0x750 kernel/sched/idle.c:332
 cpu_startup_entry+0x65/0x80 kernel/sched/idle.c:430
 rest_init+0x1e8/0x260 init/main.c:747
 start_kernel+0x92c/0xa70 init/main.c:1103
 x86_64_start_reservations+0x2e/0x30 arch/x86/kernel/head64.c:507
 x86_64_start_kernel+0x98/0xa0 arch/x86/kernel/head64.c:488
 common_startup_64+0x12c/0x137

Uninit was created at:
 __alloc_pages_noprof+0x9d6/0xe70 mm/page_alloc.c:4683
 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:8780
 dev_change_flags+0x8e/0x1d0 net/core/dev.c:8852
 devinet_ioctl+0x13ec/0x22c0 net/ipv4/devinet.c:1177
 inet_ioctl+0x4bd/0x6d0 net/ipv4/af_inet.c:1001
 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+0x1883/0x3b50 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.9.0-syzkaller-10323-g8f6a15f095a6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
=====================================================

Crashes (155):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/21 02:07 upstream 8f6a15f095a6 c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/20 23:36 upstream 70ec81c2e2b4 c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/20 21:13 upstream 72ece20127a3 c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/20 21:13 upstream 72ece20127a3 c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/18 22:03 upstream 0450d2083be6 c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/18 19:47 upstream 0cc6f45cecb4 c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/17 21:12 upstream 7ee332c9f12b a12e99e7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/17 19:07 upstream ff2632d7d08e a12e99e7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/17 12:34 upstream ea5f6ad9ad96 a12e99e7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/16 22:42 upstream ea5f6ad9ad96 c2e07261 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/16 18:18 upstream ea5f6ad9ad96 ef5d53ed .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/16 16:52 upstream 6fd600d74274 ef5d53ed .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/16 04:26 upstream 3c999d1ae3c7 ef5d53ed .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/16 04:25 upstream 3c999d1ae3c7 ef5d53ed .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/16 04:25 upstream 3c999d1ae3c7 ef5d53ed .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/16 01:44 upstream 3c999d1ae3c7 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/16 01:44 upstream 3c999d1ae3c7 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/16 01:44 upstream 3c999d1ae3c7 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/15 22:05 upstream 8c06da67d0bd 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/15 22:04 upstream 8c06da67d0bd 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/15 22:04 upstream 8c06da67d0bd 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/15 19:32 upstream 33e02dc69afb 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/20 18:39 upstream daa121128a2d c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/20 17:15 upstream 6e51b4b5bbc0 c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/19 22:16 upstream eb6a9339efeb c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/19 20:51 upstream a90f1cd105c6 c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/19 17:33 upstream 61307b7be41a c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/18 19:07 upstream 0cc6f45cecb4 c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/18 05:33 upstream 4b377b4868ef c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/18 03:50 upstream f08a1e912d3e c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/18 01:10 upstream 7ee332c9f12b c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/18 01:10 upstream 7ee332c9f12b c0f1611a .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/16 05:02 upstream 3c999d1ae3c7 ef5d53ed .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/16 05:02 upstream 3c999d1ae3c7 ef5d53ed .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/16 02:23 upstream 3c999d1ae3c7 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/16 02:23 upstream 3c999d1ae3c7 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/16 02:23 upstream 3c999d1ae3c7 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/15 21:24 upstream 8c06da67d0bd 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/15 21:24 upstream 8c06da67d0bd 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/15 21:24 upstream 8c06da67d0bd 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/15 20:21 upstream 33e02dc69afb 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/15 20:21 upstream 33e02dc69afb 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/15 20:21 upstream 33e02dc69afb 0b3dad46 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
2024/05/15 11:50 upstream 1b294a1f3561 fdb4c10c .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root upstream boot error: KMSAN: uninit-value in receive_buf
* Struck through repros no longer work on HEAD.