syzbot


KMSAN: uninit-value in hsr_addr_subst_dest

Status: auto-closed as invalid on 2021/11/12 00:52
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+586193f55faeec53d3e3@syzkaller.appspotmail.com
First crash: 1314d, last: 978d
Discussions (1)
Title Replies (including bot) Last reply
KMSAN: uninit-value in hsr_addr_subst_dest 0 (1) 2020/08/13 16:08

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in hsr_addr_subst_dest+0x626/0x860 net/hsr/hsr_framereg.c:376
CPU: 1 PID: 20105 Comm: syz-executor.5 Not tainted 5.12.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x24c/0x2e0 lib/dump_stack.c:120
 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:121
 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197
 hsr_addr_subst_dest+0x626/0x860 net/hsr/hsr_framereg.c:376
 hsr_xmit net/hsr/hsr_forward.c:332 [inline]
 hsr_forward_do net/hsr/hsr_forward.c:430 [inline]
 hsr_forward_skb+0x1d27/0x27f0 net/hsr/hsr_forward.c:568
 hsr_dev_xmit+0x133/0x230 net/hsr/hsr_device.c:220
 __netdev_start_xmit include/linux/netdevice.h:4825 [inline]
 netdev_start_xmit include/linux/netdevice.h:4839 [inline]
 xmit_one+0x2b6/0x760 net/core/dev.c:3605
 dev_hard_start_xmit net/core/dev.c:3621 [inline]
 __dev_queue_xmit+0x3432/0x4600 net/core/dev.c:4194
 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4227
 __bpf_tx_skb net/core/filter.c:2116 [inline]
 __bpf_redirect_common net/core/filter.c:2155 [inline]
 __bpf_redirect+0x1461/0x16b0 net/core/filter.c:2162
 ____bpf_clone_redirect net/core/filter.c:2448 [inline]
 bpf_clone_redirect+0x4a1/0x660 net/core/filter.c:2420
 ___bpf_prog_run+0x2b78/0xb950 kernel/bpf/core.c:1525
 __bpf_prog_run512+0x12e/0x190 kernel/bpf/core.c:1750
 bpf_test_run+0x53f/0xe60 include/linux/filter.h:770
 bpf_prog_test_run_skb+0x1914/0x3500 net/bpf/test_run.c:582
 bpf_prog_test_run kernel/bpf/syscall.c:3132 [inline]
 __do_sys_bpf+0xbe6f/0x1aba0 kernel/bpf/syscall.c:4411
 __se_sys_bpf+0x8e/0xa0 kernel/bpf/syscall.c:4351
 __ia32_sys_bpf+0x4a/0x70 kernel/bpf/syscall.c:4351
 do_syscall_32_irqs_on arch/x86/entry/common.c:79 [inline]
 __do_fast_syscall_32+0x127/0x180 arch/x86/entry/common.c:142
 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
RIP: 0023:0xf7fcf549
Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000f55c95fc EFLAGS: 00000296 ORIG_RAX: 0000000000000165
RAX: ffffffffffffffda RBX: 000000000000000a RCX: 0000000020000140
RDX: 0000000000000048 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:120 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:288
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:225
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:250
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 hsr_create_tagged_frame+0x855/0x11b0 net/hsr/hsr_forward.c:272
 hsr_forward_do net/hsr/hsr_forward.c:417 [inline]
 hsr_forward_skb+0x16e5/0x27f0 net/hsr/hsr_forward.c:568
 hsr_dev_xmit+0x133/0x230 net/hsr/hsr_device.c:220
 __netdev_start_xmit include/linux/netdevice.h:4825 [inline]
 netdev_start_xmit include/linux/netdevice.h:4839 [inline]
 xmit_one+0x2b6/0x760 net/core/dev.c:3605
 dev_hard_start_xmit net/core/dev.c:3621 [inline]
 __dev_queue_xmit+0x3432/0x4600 net/core/dev.c:4194
 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4227
 __bpf_tx_skb net/core/filter.c:2116 [inline]
 __bpf_redirect_common net/core/filter.c:2155 [inline]
 __bpf_redirect+0x1461/0x16b0 net/core/filter.c:2162
 ____bpf_clone_redirect net/core/filter.c:2448 [inline]
 bpf_clone_redirect+0x4a1/0x660 net/core/filter.c:2420
 ___bpf_prog_run+0x2b78/0xb950 kernel/bpf/core.c:1525
 __bpf_prog_run512+0x12e/0x190 kernel/bpf/core.c:1750
 bpf_test_run+0x53f/0xe60 include/linux/filter.h:770
 bpf_prog_test_run_skb+0x1914/0x3500 net/bpf/test_run.c:582
 bpf_prog_test_run kernel/bpf/syscall.c:3132 [inline]
 __do_sys_bpf+0xbe6f/0x1aba0 kernel/bpf/syscall.c:4411
 __se_sys_bpf+0x8e/0xa0 kernel/bpf/syscall.c:4351
 __ia32_sys_bpf+0x4a/0x70 kernel/bpf/syscall.c:4351
 do_syscall_32_irqs_on arch/x86/entry/common.c:79 [inline]
 __do_fast_syscall_32+0x127/0x180 arch/x86/entry/common.c:142
 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:120 [inline]
 kmsan_internal_poison_shadow+0x66/0xd0 mm/kmsan/kmsan.c:103
 kmsan_slab_alloc+0x8e/0xe0 mm/kmsan/kmsan_hooks.c:76
 slab_alloc_node mm/slub.c:2922 [inline]
 __kmalloc_node_track_caller+0xa4f/0x1470 mm/slub.c:4609
 kmalloc_reserve net/core/skbuff.c:353 [inline]
 __alloc_skb+0x4dd/0xe90 net/core/skbuff.c:424
 __pskb_copy_fclone+0x188/0x1920 net/core/skbuff.c:1601
 __pskb_copy include/linux/skbuff.h:1167 [inline]
 hsr_create_tagged_frame+0x4aa/0x11b0 net/hsr/hsr_forward.c:257
 hsr_forward_do net/hsr/hsr_forward.c:417 [inline]
 hsr_forward_skb+0x16e5/0x27f0 net/hsr/hsr_forward.c:568
 hsr_dev_xmit+0x133/0x230 net/hsr/hsr_device.c:220
 __netdev_start_xmit include/linux/netdevice.h:4825 [inline]
 netdev_start_xmit include/linux/netdevice.h:4839 [inline]
 xmit_one+0x2b6/0x760 net/core/dev.c:3605
 dev_hard_start_xmit net/core/dev.c:3621 [inline]
 __dev_queue_xmit+0x3432/0x4600 net/core/dev.c:4194
 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4227
 __bpf_tx_skb net/core/filter.c:2116 [inline]
 __bpf_redirect_common net/core/filter.c:2155 [inline]
 __bpf_redirect+0x1461/0x16b0 net/core/filter.c:2162
 ____bpf_clone_redirect net/core/filter.c:2448 [inline]
 bpf_clone_redirect+0x4a1/0x660 net/core/filter.c:2420
 ___bpf_prog_run+0x2b78/0xb950 kernel/bpf/core.c:1525
 __bpf_prog_run512+0x12e/0x190 kernel/bpf/core.c:1750
 bpf_test_run+0x53f/0xe60 include/linux/filter.h:770
 bpf_prog_test_run_skb+0x1914/0x3500 net/bpf/test_run.c:582
 bpf_prog_test_run kernel/bpf/syscall.c:3132 [inline]
 __do_sys_bpf+0xbe6f/0x1aba0 kernel/bpf/syscall.c:4411
 __se_sys_bpf+0x8e/0xa0 kernel/bpf/syscall.c:4351
 __ia32_sys_bpf+0x4a/0x70 kernel/bpf/syscall.c:4351
 do_syscall_32_irqs_on arch/x86/entry/common.c:79 [inline]
 __do_fast_syscall_32+0x127/0x180 arch/x86/entry/common.c:142
 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
=====================================================

Crashes (166):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/15 00:28 https://github.com/google/kmsan.git master 57b5797c8013 94e0b707 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/07/01 19:27 https://github.com/google/kmsan.git master 57b5797c8013 658ebc66 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/07/01 04:20 https://github.com/google/kmsan.git master 57b5797c8013 38a885d1 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/06/30 04:09 https://github.com/google/kmsan.git master 57b5797c8013 a4fccb01 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/06/30 03:41 https://github.com/google/kmsan.git master 57b5797c8013 a4fccb01 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/06/23 01:56 https://github.com/google/kmsan.git master 6a6a67f21dec aba2b2fb .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/06/17 07:39 https://github.com/google/kmsan.git master 89a0faf20faa aba2b2fb .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/06/15 19:05 https://github.com/google/kmsan.git master 7bcc9a7be76b 58636922 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/06/08 21:33 https://github.com/google/kmsan.git master 6099c9da2f7d b718257f .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/06/05 17:38 https://github.com/google/kmsan.git master 6099c9da2f7d 500c2339 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/06/03 19:04 https://github.com/google/kmsan.git master 6099c9da2f7d 0740de69 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/05/11 12:22 https://github.com/google/kmsan.git master 4ebaab5fb428 ca873091 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
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_addr_subst_dest
2021/05/09 10:41 https://github.com/google/kmsan.git master 4ebaab5fb428 bc5434be .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/05/09 02:49 https://github.com/google/kmsan.git master 4ebaab5fb428 bc5434be .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/05/07 21:15 https://github.com/google/kmsan.git master 4ebaab5fb428 f6da8120 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/05/07 05:06 https://github.com/google/kmsan.git master 4ebaab5fb428 06585184 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/05/07 02:31 https://github.com/google/kmsan.git master 4ebaab5fb428 06585184 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/05/06 23:55 https://github.com/google/kmsan.git master 4ebaab5fb428 06585184 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/05/06 13:30 https://github.com/google/kmsan.git master 4ebaab5fb428 06c27ff5 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/05/05 23:53 https://github.com/google/kmsan.git master 4ebaab5fb428 06c27ff5 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/05/05 13:26 https://github.com/google/kmsan.git master 4ebaab5fb428 06c27ff5 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/05/05 06:34 https://github.com/google/kmsan.git master 4ebaab5fb428 06c27ff5 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/05/04 13:57 https://github.com/google/kmsan.git master 4ebaab5fb428 09efdd63 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/05/03 07:23 https://github.com/google/kmsan.git master 4ebaab5fb428 77e2b668 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/30 19:33 https://github.com/google/kmsan.git master 4ebaab5fb428 77e2b668 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/29 22:28 https://github.com/google/kmsan.git master 4ebaab5fb428 77e2b668 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/29 13:39 https://github.com/google/kmsan.git master 4ebaab5fb428 77e2b668 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/29 08:40 https://github.com/google/kmsan.git master 4ebaab5fb428 77e2b668 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/27 17:28 https://github.com/google/kmsan.git master 4ebaab5fb428 805b5003 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/27 14:39 https://github.com/google/kmsan.git master 4ebaab5fb428 805b5003 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/26 06:26 https://github.com/google/kmsan.git master 4ebaab5fb428 2a82f1b3 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/26 05:14 https://github.com/google/kmsan.git master 4ebaab5fb428 2a82f1b3 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/21 02:57 https://github.com/google/kmsan.git master 4ebaab5fb428 c0ced557 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/19 05:20 https://github.com/google/kmsan.git master 4ebaab5fb428 7e2b734b .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/18 16:08 https://github.com/google/kmsan.git master 4ebaab5fb428 7e2b734b .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/18 02:52 https://github.com/google/kmsan.git master 4ebaab5fb428 7e2b734b .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/17 22:52 https://github.com/google/kmsan.git master 4ebaab5fb428 7e2b734b .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/17 11:54 https://github.com/google/kmsan.git master 4ebaab5fb428 7e2b734b .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/17 10:44 https://github.com/google/kmsan.git master 4ebaab5fb428 7e2b734b .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/16 07:05 https://github.com/google/kmsan.git master 4ebaab5fb428 c59079a6 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/13 18:22 https://github.com/google/kmsan.git master 4ebaab5fb428 bfeda1b1 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/11 05:50 https://github.com/google/kmsan.git master 4ebaab5fb428 bfeda1b1 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/09 16:15 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2021/04/08 01:12 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hsr_addr_subst_dest
2020/09/25 02:48 https://github.com/google/kmsan.git master c5a13b33ec11 54289b08 .config console log report info ci-upstream-kmsan-gce-386
2020/08/13 05:24 https://github.com/google/kmsan.git master ce8056d1f79e bc15f7db .config console log report ci-upstream-kmsan-gce-386
2020/08/13 05:04 https://github.com/google/kmsan.git master ce8056d1f79e bc15f7db .config console log report ci-upstream-kmsan-gce-386
* Struck through repros no longer work on HEAD.