syzbot


upstream test error: KMSAN: uninit-value in receive_buf

Status: fixed on 2024/08/14 19:57
Subsystems: net virt
[Documentation on labels]
Reported-by: syzbot+799fbb6d9e02a7a1d62b@syzkaller.appspotmail.com
Fix commit: 840b2d39a2dc virtio_ring: fix KMSAN error for premapped mode
First crash: 200d, last: 140d
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:2261 [inline]
BUG: KMSAN: uninit-value in receive_buf+0xba1/0x25d0 drivers/net/virtio_net.c:2394
 receive_mergeable drivers/net/virtio_net.c:2261 [inline]
 receive_buf+0xba1/0x25d0 drivers/net/virtio_net.c:2394
 virtnet_receive_packets drivers/net/virtio_net.c:2699 [inline]
 virtnet_receive drivers/net/virtio_net.c:2723 [inline]
 virtnet_poll+0x529c/0x6a20 drivers/net/virtio_net.c:2818
 __napi_poll+0xe7/0x980 net/core/dev.c:6771
 napi_poll net/core/dev.c:6840 [inline]
 net_rx_action+0xa5a/0x19b0 net/core/dev.c:6962
 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
 unwind_get_return_address+0x12b/0x140 arch/x86/kernel/unwind_frame.c:20
 arch_stack_walk+0x168/0x2d0 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0xaa/0xe0 kernel/stacktrace.c:122
 kmsan_save_stack_with_flags+0x2f/0x60 mm/kmsan/core.c:74
 kmsan_alloc_page+0x182/0x220 mm/kmsan/shadow.c:197
 __alloc_pages_noprof+0x9d6/0xe70 mm/page_alloc.c:4706
 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:2941
 virtnet_rq_alloc+0x43/0xbb0 drivers/net/virtio_net.c:921
 add_recvbuf_mergeable drivers/net/virtio_net.c:2524 [inline]
 try_fill_recv+0x89c/0x3bc0 drivers/net/virtio_net.c:2573
 virtnet_open+0x1d8/0xd00 drivers/net/virtio_net.c:2898
 __dev_open+0x546/0x6f0 net/core/dev.c:1474
 __dev_change_flags+0x309/0x9a0 net/core/dev.c:8837
 dev_change_flags+0x8e/0x1d0 net/core/dev.c:8909
 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+0x1a06/0x3c10 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

Uninit was created at:
 __alloc_pages_noprof+0x9d6/0xe70 mm/page_alloc.c:4706
 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:2941
 virtnet_rq_alloc+0x43/0xbb0 drivers/net/virtio_net.c:921
 add_recvbuf_mergeable drivers/net/virtio_net.c:2524 [inline]
 try_fill_recv+0x89c/0x3bc0 drivers/net/virtio_net.c:2573
 virtnet_open+0x1d8/0xd00 drivers/net/virtio_net.c:2898
 __dev_open+0x546/0x6f0 net/core/dev.c:1474
 __dev_change_flags+0x309/0x9a0 net/core/dev.c:8837
 dev_change_flags+0x8e/0x1d0 net/core/dev.c:8909
 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+0x1a06/0x3c10 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: 4702 Comm: dhcpcd Not tainted 6.10.0-syzkaller-09061-g4305ca0087dd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
=====================================================

Crashes (351):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/19 18:55 upstream 4305ca0087dd ee4e11c8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/18 23:22 upstream 68b59730459e ee4e11c8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/18 22:11 upstream 68b59730459e 7403ec00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/18 20:10 upstream cb273eb7c839 7403ec00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/18 18:46 upstream f2f6a8e88717 7403ec00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/18 10:08 upstream b1bc554e009e 7403ec00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/17 22:33 upstream e2f710f97f35 03114f55 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/17 21:05 upstream 8b0f0bb27c32 03114f55 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/17 03:22 upstream 0434dbe32053 215bec2d .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/17 01:43 upstream 923a327e8f22 215bec2d .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/16 07:03 upstream d67978318827 b66b37bd .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/15 19:21 upstream 5e0497553643 efee4ed2 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/15 14:55 upstream 0c3836482481 efee4ed2 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/14 23:39 upstream 0c3836482481 eaeb5c15 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/14 00:29 upstream 4d145e3f830b eaeb5c15 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/13 22:04 upstream d0d0cd380055 eaeb5c15 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/13 02:41 upstream 528dd46d0fc3 eaeb5c15 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/12 17:34 upstream e091caf99f3a eaeb5c15 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/12 01:09 upstream 43db1e03c086 eaeb5c15 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/11 23:08 upstream 43db1e03c086 c699c2eb .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/11 20:05 upstream 8a18fda0febb c699c2eb .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/11 02:08 upstream 9d9a2f29aefd c699c2eb .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/10 20:41 upstream d6e1712b7825 e7213be3 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/10 17:09 upstream a19ea421490d e7213be3 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root upstream test error: KMSAN: uninit-value in receive_buf
2024/07/09 16:15 upstream 34afb82a3c67 79d68ada .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/07/19 03:38 upstream 720261cfc732 ee4e11c8 .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/07/19 02:00 upstream cf05e93af423 ee4e11c8 .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/07/18 03:25 upstream b1bc554e009e 03114f55 .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/07/18 02:02 upstream 0ffb8a4c96e5 03114f55 .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/07/17 14:50 upstream 51835949dda3 03114f55 .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/07/17 04:33 upstream 51835949dda3 215bec2d .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/07/17 00:36 upstream 923a327e8f22 215bec2d .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/07/16 23:09 upstream f83e38fc9f10 215bec2d .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/07/16 21:26 upstream 408323581b72 215bec2d .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/07/16 18:17 upstream d67978318827 215bec2d .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/07/16 06:02 upstream d67978318827 b66b37bd .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/07/16 04:37 upstream d67978318827 efee4ed2 .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/07/16 03:07 upstream 1467b49869df efee4ed2 .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/07/16 01:14 upstream b02c520fee63 efee4ed2 .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/07/15 23:25 upstream 3e7819886281 efee4ed2 .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/07/15 21:42 upstream 2ffd45da0b06 efee4ed2 .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/07/15 20:01 upstream 5e0497553643 efee4ed2 .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/07/15 06:15 upstream 0c3836482481 c605e6a2 .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/07/13 20:52 upstream d0d0cd380055 eaeb5c15 .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/07/12 20:14 upstream 975f3b6da180 eaeb5c15 .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/07/11 23:50 upstream 43db1e03c086 c699c2eb .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/07/10 22:56 upstream 9d9a2f29aefd e7213be3 .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/07/10 10:44 upstream 34afb82a3c67 e7213be3 .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.