syzbot


KMSAN: uninit-value in hsr_fill_frame_info

Status: fixed on 2021/11/10 00:50
Subsystems: net
[Documentation on labels]
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: 1307d, last: 1005d
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 5.12 00/45] 5.12.6-rc1 review 51 (51) 2021/05/24 15:42
[PATCH 5.10 00/47] 5.10.39-rc1 review 52 (52) 2021/05/20 14:07
[PATCH AUTOSEL 5.10 01/34] ARM: 9058/1: cache-v7: refactor v7_invalidate_l1 to avoid clobbering r5/r6 34 (34) 2021/05/12 18:03
[PATCH AUTOSEL 5.11 01/35] ARM: 9058/1: cache-v7: refactor v7_invalidate_l1 to avoid clobbering r5/r6 35 (35) 2021/05/12 18:02
[PATCH AUTOSEL 5.12 01/37] ARM: 9058/1: cache-v7: refactor v7_invalidate_l1 to avoid clobbering r5/r6 37 (37) 2021/05/12 18:01
[PATCH] net: hsr: check skb can contain struct hsr_ethhdr in fill_frame_info 2 (2) 2021/05/03 20:40
KMSAN: uninit-value in hsr_fill_frame_info 0 (1) 2020/09/21 05:12
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in hsr_fill_frame_info (2) net C 65 268d 551d 0/26 auto-obsoleted due to no activity on 2023/10/30 13:38

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