syzbot


KMSAN: uninit-value in hsr_register_frame_in

Status: upstream: reported C repro on 2019/02/11 21:53
Reported-by: syzbot+b8152ab439b9c5174ffd@syzkaller.appspotmail.com
First crash: 1279d, last: 16d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in aes_encrypt (4) C 5 164d 659d 0/22 upstream: reported C repro on 2020/09/10 14:09
upstream KMSAN: uninit-value in IP6_ECN_decapsulate C 300 17d 1379d 0/22 upstream: reported C repro on 2018/09/20 20:54

Sample crash report:
8021q: adding VLAN 0 to HW filter on device batadv0
==================================================================
BUG: KMSAN: uninit-value in hsr_register_frame_in+0x12c/0x200 net/hsr/hsr_framereg.c:310
CPU: 1 PID: 13571 Comm: syz-executor406 Not tainted 5.2.0-rc4+ #10
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+0x162/0x2d0 mm/kmsan/kmsan_report.c:109
 __msan_warning+0x75/0xe0 mm/kmsan/kmsan_instr.c:294
 hsr_register_frame_in+0x12c/0x200 net/hsr/hsr_framereg.c:310
 hsr_forward_skb+0xd11/0x3070 net/hsr/hsr_forward.c:360
 hsr_dev_xmit+0xf8/0x160 net/hsr/hsr_device.c:231
 __netdev_start_xmit include/linux/netdevice.h:4406 [inline]
 netdev_start_xmit include/linux/netdevice.h:4420 [inline]
 xmit_one net/core/dev.c:3288 [inline]
 dev_hard_start_xmit+0x51a/0xab0 net/core/dev.c:3304
 __dev_queue_xmit+0x394d/0x4270 net/core/dev.c:3877
 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3910
 packet_snd net/packet/af_packet.c:2928 [inline]
 packet_sendmsg+0x815c/0x8f80 net/packet/af_packet.c:2953
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg net/socket.c:665 [inline]
 __sys_sendto+0xa95/0xb90 net/socket.c:1958
 __do_sys_sendto net/socket.c:1970 [inline]
 __se_sys_sendto+0x107/0x130 net/socket.c:1966
 __x64_sys_sendto+0x6e/0x90 net/socket.c:1966
 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:302
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x4419d9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 10 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe2ee20638 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004419d9
RDX: 000000000000000e RSI: 0000000020000040 RDI: 0000000000000003
RBP: 00000000004a9070 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402f20
R13: 0000000000402fb0 R14: 0000000000000000 R15: 0000000000000000

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:200 [inline]
 kmsan_save_stack mm/kmsan/kmsan.c:212 [inline]
 kmsan_internal_chain_origin+0xcc/0x150 mm/kmsan/kmsan.c:367
 __msan_chain_origin+0x6b/0xe0 mm/kmsan/kmsan_instr.c:190
 hsr_add_node net/hsr/hsr_framereg.c:144 [inline]
 hsr_get_node+0xc90/0xe10 net/hsr/hsr_framereg.c:190
 hsr_fill_frame_info net/hsr/hsr_forward.c:315 [inline]
 hsr_forward_skb+0x780/0x3070 net/hsr/hsr_forward.c:358
 hsr_dev_xmit+0xf8/0x160 net/hsr/hsr_device.c:231
 __netdev_start_xmit include/linux/netdevice.h:4406 [inline]
 netdev_start_xmit include/linux/netdevice.h:4420 [inline]
 xmit_one net/core/dev.c:3288 [inline]
 dev_hard_start_xmit+0x51a/0xab0 net/core/dev.c:3304
 __dev_queue_xmit+0x394d/0x4270 net/core/dev.c:3877
 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3910
 packet_snd net/packet/af_packet.c:2928 [inline]
 packet_sendmsg+0x815c/0x8f80 net/packet/af_packet.c:2953
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg net/socket.c:665 [inline]
 __sys_sendto+0xa95/0xb90 net/socket.c:1958
 __do_sys_sendto net/socket.c:1970 [inline]
 __se_sys_sendto+0x107/0x130 net/socket.c:1966
 __x64_sys_sendto+0x6e/0x90 net/socket.c:1966
 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:302
 entry_SYSCALL_64_after_hwframe+0x63/0xe7

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:200 [inline]
 kmsan_internal_poison_shadow+0x53/0xa0 mm/kmsan/kmsan.c:159
 kmsan_kmalloc+0xa4/0x130 mm/kmsan/kmsan_hooks.c:178
 kmsan_slab_alloc+0xe/0x10 mm/kmsan/kmsan_hooks.c:187
 slab_post_alloc_hook mm/slab.h:442 [inline]
 slab_alloc_node mm/slub.c:2763 [inline]
 __kmalloc_node_track_caller+0xcba/0xf30 mm/slub.c:4390
 __kmalloc_reserve net/core/skbuff.c:138 [inline]
 __alloc_skb+0x306/0xa10 net/core/skbuff.c:206
 alloc_skb include/linux/skbuff.h:1055 [inline]
 alloc_skb_with_frags+0x18c/0xa80 net/core/skbuff.c:5327
 sock_alloc_send_pskb+0xafd/0x10a0 net/core/sock.c:2219
 packet_alloc_skb net/packet/af_packet.c:2776 [inline]
 packet_snd net/packet/af_packet.c:2871 [inline]
 packet_sendmsg+0x6419/0x8f80 net/packet/af_packet.c:2953
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg net/socket.c:665 [inline]
 __sys_sendto+0xa95/0xb90 net/socket.c:1958
 __do_sys_sendto net/socket.c:1970 [inline]
 __se_sys_sendto+0x107/0x130 net/socket.c:1966
 __x64_sys_sendto+0x6e/0x90 net/socket.c:1966
 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:302
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
==================================================================

Crashes (195):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2019/07/07 23:53 https://github.com/google/kmsan.git master f23a6010183e f62e1e85 .config log report syz C
ci-upstream-kmsan-gce 2019/02/11 18:19 https://github.com/google/kmsan.git master fa1981bee40f 73f5f452 .config log report syz C
ci-upstream-kmsan-gce 2022/06/15 03:11 https://github.com/google/kmsan.git master 2f3064574275 127d1faf .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce 2022/05/10 04:56 https://github.com/google/kmsan.git master d6e2c8c7eb40 8b277b8e .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce 2022/01/23 20:30 https://github.com/google/kmsan.git master 85cfd6e539bd 214351e1 .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce 2022/01/19 13:57 https://github.com/google/kmsan.git master fa3879a274df 0620189b .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce 2022/01/14 06:31 https://github.com/google/kmsan.git master fa3879a274df b8d780ab .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce 2022/01/14 03:34 https://github.com/google/kmsan.git master fa3879a274df b8d780ab .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce 2022/01/02 03:26 https://github.com/google/kmsan.git master 81c325bbf94e e1768e9c .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce 2021/11/30 16:36 https://github.com/google/kmsan.git master a535b0caaa2f 80270552 .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce 2021/07/10 03:03 https://github.com/google/kmsan.git master 57b5797c8013 8f5a7b8c .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce 2021/07/06 13:46 https://github.com/google/kmsan.git master 57b5797c8013 6c4484eb .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce 2021/06/27 11:13 https://github.com/google/kmsan.git master 57b5797c8013 9d2ab5df .config log report info KMSAN: uninit-value in hsr_register_frame_in
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_register_frame_in
ci-upstream-kmsan-gce 2021/06/15 18:47 https://github.com/google/kmsan.git master 7bcc9a7be76b 58636922 .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce 2021/05/31 19:09 https://github.com/google/kmsan.git master 6099c9da2f7d 032639db .config log report info KMSAN: uninit-value in hsr_register_frame_in
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_register_frame_in
ci-upstream-kmsan-gce 2021/05/20 18:28 https://github.com/google/kmsan.git master 6099c9da2f7d c560a65d .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce 2021/03/15 06:49 https://github.com/google/kmsan.git master 29ad81a1074a cc1cff8f .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce 2021/02/05 14:12 https://github.com/google/kmsan.git master 73d62e81b476 23a562df .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce 2021/01/19 20:34 https://github.com/google/kmsan.git master 73d62e81b476 63631df1 .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce-386 2021/07/11 21:43 https://github.com/google/kmsan.git master 57b5797c8013 8f5a7b8c .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce-386 2021/06/02 08:15 https://github.com/google/kmsan.git master 6099c9da2f7d 032639db .config log report info KMSAN: uninit-value in hsr_register_frame_in
ci-upstream-kmsan-gce 2020/12/23 06:29 https://github.com/google/kmsan.git master 73d62e81b476 04201c06 .config log report info
ci-upstream-kmsan-gce 2020/12/10 04:29 https://github.com/google/kmsan.git master 73d62e81b476 c090b4da .config log report info
ci-upstream-kmsan-gce 2020/11/26 16:33 https://github.com/google/kmsan.git master 73d62e81b476 1d2b823e .config log report info
ci-upstream-kmsan-gce 2020/10/19 12:44 https://github.com/google/kmsan.git master e67f4ba870c2 ff4a3345 .config log report info
ci-upstream-kmsan-gce 2020/10/08 02:31 https://github.com/google/kmsan.git master 5edb1df295b9 1880b4a9 .config log report info
ci-upstream-kmsan-gce 2020/10/08 01:21 https://github.com/google/kmsan.git master 5edb1df295b9 1880b4a9 .config log report info
ci-upstream-kmsan-gce 2020/10/07 17:49 https://github.com/google/kmsan.git master 5edb1df295b9 1880b4a9 .config log report info
ci-upstream-kmsan-gce 2020/10/06 20:48 https://github.com/google/kmsan.git master 5edb1df295b9 1880b4a9 .config log report info
ci-upstream-kmsan-gce 2020/09/27 00:55 https://github.com/google/kmsan.git master c5a13b33ec11 2d5ea0cb .config log report info
ci-upstream-kmsan-gce 2020/08/15 18:10 https://github.com/google/kmsan.git master ce8056d1f79e 424dd8e7 .config log report
ci-upstream-kmsan-gce 2020/07/29 06:07 https://github.com/google/kmsan.git master 93f54a72361a cb93dc6a .config log report
ci-upstream-kmsan-gce 2020/07/11 22:22 https://github.com/google/kmsan.git master f0d5ec902b23 18d18b59 .config log report
ci-upstream-kmsan-gce 2020/06/29 20:26 https://github.com/google/kmsan.git master f0d5ec902b23 a2cdad9d .config log report
ci-upstream-kmsan-gce 2020/06/17 14:00 https://github.com/google/kmsan.git master f0d5ec902b23 b9f3810b .config log report
ci-upstream-kmsan-gce 2020/06/16 15:44 https://github.com/google/kmsan.git master f0d5ec902b23 baca2611 .config log report
ci-upstream-kmsan-gce 2020/06/12 02:57 https://github.com/google/kmsan.git master f0d5ec902b23 58802067 .config log report
ci-upstream-kmsan-gce 2020/06/02 17:24 https://github.com/google/kmsan.git master f0d5ec902b23 52fd7b7d .config log report
ci-upstream-kmsan-gce 2020/04/22 10:16 https://github.com/google/kmsan.git master 9535d09e7cff 2e44d63e .config log report
ci-upstream-kmsan-gce 2020/04/09 19:51 https://github.com/google/kmsan.git master 75303409203b a8c6a3f8 .config log report
ci-upstream-kmsan-gce 2020/03/17 15:51 https://github.com/google/kmsan.git master a58741ac26cc 749688d2 .config log report
ci-upstream-kmsan-gce 2020/02/21 09:40 https://github.com/google/kmsan.git master 8bbbc5cf3dca bd2a74a3 .config log report
ci-upstream-kmsan-gce 2018/12/30 17:01 https://github.com/google/kmsan.git master 8ba10281f9e5 9942de5f .config log report
ci-upstream-kmsan-gce-386 2020/12/20 08:16 https://github.com/google/kmsan.git master 73d62e81b476 04201c06 .config log report info
ci-upstream-kmsan-gce-386 2020/12/10 19:47 https://github.com/google/kmsan.git master 73d62e81b476 f900b48c .config log report info
ci-upstream-kmsan-gce-386 2020/10/08 02:31 https://github.com/google/kmsan.git master 5edb1df295b9 1880b4a9 .config log report info
ci-upstream-kmsan-gce-386 2020/07/13 17:39 https://github.com/google/kmsan.git master f0d5ec902b23 f90ec899 .config log report
ci-upstream-kmsan-gce-386 2020/06/17 14:14 https://github.com/google/kmsan.git master f0d5ec902b23 b9f3810b .config log report
ci-upstream-kmsan-gce-386 2020/03/28 07:16 https://github.com/google/kmsan.git master 75303409203b 831e9a81 .config log report