syzbot


KMSAN: uninit-value in kmem_cache_alloc (2)

Status: auto-closed as invalid on 2019/12/27 19:44
Subsystems: net
[Documentation on labels]
First crash: 1938d, last: 1685d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in kmem_cache_alloc net 1 2126d 2126d 0/26 closed as invalid on 2018/09/05 16:30

Sample crash report:
8021q: adding VLAN 0 to HW filter on device batadv0
=====================================================
BUG: KMSAN: uninit-value in skb_clone+0x326/0x5d0 net/core/skbuff.c:1448
CPU: 0 PID: 11517 Comm: syz-executor.0 Not tainted 5.3.0-rc7+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x191/0x1f0 lib/dump_stack.c:113
 kmsan_report+0x13a/0x2b0 mm/kmsan/kmsan_report.c:108
 __msan_warning+0x73/0xe0 mm/kmsan/kmsan_instr.c:250
 slab_alloc_node mm/slub.c:2749 [inline]
 slab_alloc mm/slub.c:2799 [inline]
 kmem_cache_alloc+0x4ed/0xd10 mm/slub.c:2804
 skb_clone+0x326/0x5d0 net/core/skbuff.c:1448
 __netlink_deliver_tap_skb net/netlink/af_netlink.c:287 [inline]
 __netlink_deliver_tap net/netlink/af_netlink.c:312 [inline]
 netlink_deliver_tap+0x804/0xeb0 net/netlink/af_netlink.c:325
 __netlink_sendskb net/netlink/af_netlink.c:1246 [inline]
 netlink_sendskb net/netlink/af_netlink.c:1255 [inline]
 netlink_unicast+0x9bd/0x1050 net/netlink/af_netlink.c:1343
 netlink_ack+0x1101/0x1240 net/netlink/af_netlink.c:2447
 netlink_rcv_skb+0x316/0x620 net/netlink/af_netlink.c:2483
 rtnetlink_rcv+0x50/0x60 net/core/rtnetlink.c:5241
 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline]
 netlink_unicast+0xf6c/0x1050 net/netlink/af_netlink.c:1328
 netlink_sendmsg+0x110f/0x1330 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg net/socket.c:657 [inline]
 __sys_sendto+0xc44/0xc70 net/socket.c:1952
 __do_sys_sendto net/socket.c:1964 [inline]
 __se_sys_sendto+0x107/0x130 net/socket.c:1960
 __x64_sys_sendto+0x6e/0x90 net/socket.c:1960
 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x413873
Code: ff 0f 83 b0 19 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d 1d 2a 66 00 00 75 17 49 89 ca b8 2c 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 81 19 00 00 c3 48 83 ec 08 e8 87 fa ff ff
RSP: 002b:0000000000a6fb18 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000413873
RDX: 0000000000000038 RSI: 0000000000a70070 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000a6fb20 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 0000000000000003 R14: 0000000000a6fbc8 R15: 0000000000000006

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:150 [inline]
 kmsan_internal_chain_origin+0xd2/0x170 mm/kmsan/kmsan.c:311
 __msan_chain_origin+0x6b/0xe0 mm/kmsan/kmsan_instr.c:184
 ___slab_alloc+0x1dbc/0x1fb0 mm/slub.c:2634
 __slab_alloc mm/slub.c:2687 [inline]
 slab_alloc_node mm/slub.c:2750 [inline]
 kmem_cache_alloc_node+0x769/0xe70 mm/slub.c:2828
 __alloc_skb+0x215/0xa10 net/core/skbuff.c:197
 alloc_skb include/linux/skbuff.h:1056 [inline]
 nlmsg_new include/net/netlink.h:888 [inline]
 netlink_ack+0x579/0x1240 net/netlink/af_netlink.c:2411
 netlink_rcv_skb+0x316/0x620 net/netlink/af_netlink.c:2483
 rtnetlink_rcv+0x50/0x60 net/core/rtnetlink.c:5241
 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline]
 netlink_unicast+0xf6c/0x1050 net/netlink/af_netlink.c:1328
 netlink_sendmsg+0x110f/0x1330 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg net/socket.c:657 [inline]
 __sys_sendto+0xc44/0xc70 net/socket.c:1952
 __do_sys_sendto net/socket.c:1964 [inline]
 __se_sys_sendto+0x107/0x130 net/socket.c:1960
 __x64_sys_sendto+0x6e/0x90 net/socket.c:1960
 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x63/0xe7

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:150 [inline]
 kmsan_internal_poison_shadow+0x53/0x100 mm/kmsan/kmsan.c:134
 kmsan_slab_free+0x8d/0x100 mm/kmsan/kmsan_hooks.c:123
 slab_free_freelist_hook mm/slub.c:1472 [inline]
 slab_free mm/slub.c:3038 [inline]
 kmem_cache_free_bulk+0x3ad9/0x3f50 mm/slub.c:3163
 _kfree_skb_defer net/core/skbuff.c:885 [inline]
 napi_consume_skb+0x593/0x5d0 net/core/skbuff.c:918
 free_old_xmit_skbs+0x1a1/0x450 drivers/net/virtio_net.c:1366
 virtnet_poll_tx+0x24c/0x4c0 drivers/net/virtio_net.c:1493
 napi_poll net/core/dev.c:6352 [inline]
 net_rx_action+0x74b/0x1950 net/core/dev.c:6418
 __do_softirq+0x4a1/0x83a kernel/softirq.c:293
 invoke_softirq kernel/softirq.c:375 [inline]
 irq_exit+0x230/0x280 kernel/softirq.c:416
 exiting_irq arch/x86/include/asm/apic.h:537 [inline]
 do_IRQ+0x20d/0x3a0 arch/x86/kernel/irq.c:259
 ret_from_intr+0x0/0x33
 native_safe_halt arch/x86/include/asm/irqflags.h:60 [inline]
 arch_safe_halt arch/x86/include/asm/irqflags.h:103 [inline]
 default_idle+0x53/0x90 arch/x86/kernel/process.c:580
 arch_cpu_idle+0x25/0x30 arch/x86/kernel/process.c:571
 default_idle_call kernel/sched/idle.c:94 [inline]
 cpuidle_idle_call kernel/sched/idle.c:154 [inline]
 do_idle+0x1d7/0x790 kernel/sched/idle.c:263
 cpu_startup_entry+0x45/0x50 kernel/sched/idle.c:354
 start_secondary+0x370/0x470 arch/x86/kernel/smpboot.c:264
 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:241
=====================================================

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/28 19:38 https://github.com/google/kmsan.git master 124037e07586 eb6b9855 .config console log report ci-upstream-kmsan-gce
2019/09/27 07:52 https://github.com/google/kmsan.git master 2eb4eee5708b 2f1548bc .config console log report ci-upstream-kmsan-gce
2019/09/25 16:46 https://github.com/google/kmsan.git master cebbfdbcf2b7 a3355dba .config console log report ci-upstream-kmsan-gce
2019/09/24 12:39 https://github.com/google/kmsan.git master cebbfdbcf2b7 c68252d2 .config console log report ci-upstream-kmsan-gce
2019/09/19 20:20 https://github.com/google/kmsan.git master cebbfdbcf2b7 eb940044 .config console log report ci-upstream-kmsan-gce
2019/09/15 16:41 https://github.com/google/kmsan.git master cebbfdbcf2b7 32d59357 .config console log report ci-upstream-kmsan-gce
2019/09/03 01:24 https://github.com/google/kmsan.git master 3c46b346d0eb 14544a56 .config console log report ci-upstream-kmsan-gce
2019/08/06 06:45 https://github.com/google/kmsan.git master ae0c578a3cdf 6affd8e8 .config console log report ci-upstream-kmsan-gce
2019/02/18 13:44 https://github.com/google/kmsan.git master fa1981bee40f 59f36113 .config console log report ci-upstream-kmsan-gce
2019/01/20 13:55 https://github.com/google/kmsan.git master 02f2d5aea531 353f32ea .config console log report ci-upstream-kmsan-gce
2019/01/19 13:40 https://github.com/google/kmsan.git master 02f2d5aea531 8aa587b0 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.