syzbot


KMSAN: uninit-value in hsr_fill_frame_info

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+e267bed19bfc5478fb33@syzkaller.appspotmail.com
Fix commit: 2e9f60932a2c net: hsr: check skb can contain struct hsr_ethhdr in fill_frame_info
First crash: 740d, last: 438d

Sample crash report:
hsr0: VLAN not yet supported
=====================================================
BUG: KMSAN: uninit-value in hsr_fill_frame_info+0x3d3/0x570 net/hsr/hsr_forward.c:457
CPU: 1 PID: 8700 Comm: syz-executor512 Not tainted 5.9.0-rc4-syzkaller #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+0x21c/0x280 lib/dump_stack.c:118
 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:122
 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:219
 hsr_fill_frame_info+0x3d3/0x570 net/hsr/hsr_forward.c:457
 fill_frame_info net/hsr/hsr_forward.c:520 [inline]
 hsr_forward_skb+0xc63/0x2610 net/hsr/hsr_forward.c:537
 hsr_dev_xmit+0x133/0x230 net/hsr/hsr_device.c:220
 __netdev_start_xmit include/linux/netdevice.h:4634 [inline]
 netdev_start_xmit include/linux/netdevice.h:4648 [inline]
 xmit_one+0x3cf/0x750 net/core/dev.c:3561
 dev_hard_start_xmit net/core/dev.c:3577 [inline]
 __dev_queue_xmit+0x3aad/0x4470 net/core/dev.c:4136
 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4169
 packet_snd net/packet/af_packet.c:2989 [inline]
 packet_sendmsg+0x8542/0x9a80 net/packet/af_packet.c:3014
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg net/socket.c:671 [inline]
 __sys_sendto+0x9dc/0xc80 net/socket.c:1992
 __do_sys_sendto net/socket.c:2004 [inline]
 __se_sys_sendto+0x107/0x130 net/socket.c:2000
 __x64_sys_sendto+0x6e/0x90 net/socket.c:2000
 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x443d79
Code: e8 8c 07 03 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 bb 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffdeb5a7c88 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000443d79
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007ffdeb5a7ca0 R08: 0000000020000000 R09: 0000000000000014
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffdeb5a7cb0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:143 [inline]
 kmsan_internal_poison_shadow+0x66/0xd0 mm/kmsan/kmsan.c:126
 kmsan_slab_alloc+0x8a/0xe0 mm/kmsan/kmsan_hooks.c:80
 slab_alloc_node mm/slub.c:2907 [inline]
 __kmalloc_node_track_caller+0x9aa/0x12f0 mm/slub.c:4511
 __kmalloc_reserve net/core/skbuff.c:142 [inline]
 __alloc_skb+0x35f/0xb30 net/core/skbuff.c:210
 alloc_skb include/linux/skbuff.h:1094 [inline]
 alloc_skb_with_frags+0x1f2/0xc10 net/core/skbuff.c:5771
 sock_alloc_send_pskb+0xc83/0xe50 net/core/sock.c:2348
 packet_alloc_skb net/packet/af_packet.c:2837 [inline]
 packet_snd net/packet/af_packet.c:2932 [inline]
 packet_sendmsg+0x6abb/0x9a80 net/packet/af_packet.c:3014
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg net/socket.c:671 [inline]
 __sys_sendto+0x9dc/0xc80 net/socket.c:1992
 __do_sys_sendto net/socket.c:2004 [inline]
 __se_sys_sendto+0x107/0x130 net/socket.c:2000
 __x64_sys_sendto+0x6e/0x90 net/socket.c:2000
 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
=====================================================

Crashes (249):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2020/09/19 22:40 https://github.com/google/kmsan.git master c5a13b33ec11 53ce8104 .config log report syz C
ci-upstream-kmsan-gce 2021/07/16 02:17 https://github.com/google/kmsan.git master 57b5797c8013 f115ae98 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/07/11 21:48 https://github.com/google/kmsan.git master 57b5797c8013 8f5a7b8c .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/07/11 08:57 https://github.com/google/kmsan.git master 57b5797c8013 8f5a7b8c .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/07/08 04:57 https://github.com/google/kmsan.git master 57b5797c8013 95793bce .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/06/29 01:04 https://github.com/google/kmsan.git master 57b5797c8013 9d2ab5df .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/06/27 23:24 https://github.com/google/kmsan.git master 57b5797c8013 9d2ab5df .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/06/25 01:21 https://github.com/google/kmsan.git master a520ce29b172 0edbbe31 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/06/24 05:03 https://github.com/google/kmsan.git master 31ffdb453231 fe4ab389 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/06/23 22:53 https://github.com/google/kmsan.git master 31ffdb453231 fe4ab389 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/06/19 11:19 https://github.com/google/kmsan.git master bfeba8b4c158 aba2b2fb .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/06/17 03:28 https://github.com/google/kmsan.git master 89a0faf20faa aba2b2fb .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/06/16 08:21 https://github.com/google/kmsan.git master 7bcc9a7be76b 990d3cbe .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/06/15 18:09 https://github.com/google/kmsan.git master 7bcc9a7be76b 58636922 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/06/13 02:41 https://github.com/google/kmsan.git master 6099c9da2f7d 1ba81399 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/06/10 06:00 https://github.com/google/kmsan.git master 6099c9da2f7d 1ba81399 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/06/09 00:52 https://github.com/google/kmsan.git master 6099c9da2f7d 5c2fe346 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/06/06 04:45 https://github.com/google/kmsan.git master 6099c9da2f7d 500c2339 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/06/04 08:54 https://github.com/google/kmsan.git master 6099c9da2f7d 0740de69 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/05/29 01:41 https://github.com/google/kmsan.git master 6099c9da2f7d 858ea628 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/05/26 14:42 https://github.com/google/kmsan.git master 6099c9da2f7d 54f0bcf1 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/07/12 00:51 https://github.com/google/kmsan.git master 57b5797c8013 8f5a7b8c .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/07/11 22:54 https://github.com/google/kmsan.git master 57b5797c8013 8f5a7b8c .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/07/10 17:19 https://github.com/google/kmsan.git master 57b5797c8013 8f5a7b8c .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/07/04 13:00 https://github.com/google/kmsan.git master 57b5797c8013 55aa55c2 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/07/03 06:21 https://github.com/google/kmsan.git master 57b5797c8013 55aa55c2 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/06/28 06:25 https://github.com/google/kmsan.git master 57b5797c8013 9d2ab5df .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/06/25 03:05 https://github.com/google/kmsan.git master a520ce29b172 0edbbe31 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/06/15 14:30 https://github.com/google/kmsan.git master 7bcc9a7be76b 58636922 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/06/13 17:40 https://github.com/google/kmsan.git master 6099c9da2f7d 1ba81399 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/06/13 03:48 https://github.com/google/kmsan.git master 6099c9da2f7d 1ba81399 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/06/11 11:52 https://github.com/google/kmsan.git master 6099c9da2f7d 1ba81399 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/06/09 22:45 https://github.com/google/kmsan.git master 6099c9da2f7d 84fe5d96 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/06/06 06:01 https://github.com/google/kmsan.git master 6099c9da2f7d 500c2339 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/06/04 08:56 https://github.com/google/kmsan.git master 6099c9da2f7d 0740de69 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/05/29 16:29 https://github.com/google/kmsan.git master 6099c9da2f7d 858ea628 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/05/11 02:44 https://github.com/google/kmsan.git master 4ebaab5fb428 ca873091 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/05/07 18:52 https://github.com/google/kmsan.git master 4ebaab5fb428 f6da8120 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/05/07 03:07 https://github.com/google/kmsan.git master 4ebaab5fb428 06585184 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/05/05 23:17 https://github.com/google/kmsan.git master 4ebaab5fb428 06c27ff5 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/05/05 15:43 https://github.com/google/kmsan.git master 4ebaab5fb428 06c27ff5 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/05/04 01:38 https://github.com/google/kmsan.git master 4ebaab5fb428 ad61f371 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/05/02 09:01 https://github.com/google/kmsan.git master 4ebaab5fb428 77e2b668 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/04/29 08:22 https://github.com/google/kmsan.git master 4ebaab5fb428 77e2b668 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/04/26 05:31 https://github.com/google/kmsan.git master 4ebaab5fb428 2a82f1b3 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce-386 2021/04/21 18:08 https://github.com/google/kmsan.git master 4ebaab5fb428 95777977 .config log report info KMSAN: uninit-value in hsr_fill_frame_info
ci-upstream-kmsan-gce 2021/01/14 14:12 https://github.com/google/kmsan.git master 73d62e81b476 269d24e8 .config log report info
ci-upstream-kmsan-gce 2020/09/17 04:52 https://github.com/google/kmsan.git master c5a13b33ec11 8247808b .config log report info
ci-upstream-kmsan-gce 2020/09/16 22:53 https://github.com/google/kmsan.git master c5a13b33ec11 8247808b .config log report info
* Struck through repros no longer work on HEAD.