syzbot


WARNING in hsr_addr_subst_dest

Status: fixed on 2021/06/23 17:43
Reported-by: syzbot+3f8f642174b51d0113d0@syzkaller.appspotmail.com
Fix commit: 40fa36443db3 hsr: use netdev_err() instead of WARN_ONCE()
First crash: 1270d, last: 502d

Fix bisection: fixed by (bisect log) :
commit 40fa36443db3ddb570e5e5f27c44d23d680f9d1b
Author: Taehee Yoo <ap420073@gmail.com>
Date: Fri Feb 28 18:01:46 2020 +0000

  hsr: use netdev_err() instead of WARN_ONCE()

similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in hsr_addr_subst_dest C 3601 23d 1271d 0/1 upstream: reported C repro on 2019/04/13 04:23
upstream WARNING in hsr_addr_subst_dest C done done 8639 915d 1372d 17/24 fixed on 2020/08/18 12:30

Sample crash report:
------------[ cut here ]------------
hsr_addr_subst_dest: Unknown node
WARNING: CPU: 0 PID: 8377 at net/hsr/hsr_framereg.c:313 hsr_addr_subst_dest+0x3ae/0x450 net/hsr/hsr_framereg.c:313
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8377 Comm: syz-executor200 Not tainted 4.19.190-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+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:hsr_addr_subst_dest+0x3ae/0x450 net/hsr/hsr_framereg.c:313
Code: 00 79 f9 84 db 0f 85 49 fd ff ff e8 3c ff 78 f9 48 c7 c6 80 7a 70 89 48 c7 c7 40 7a 70 89 c6 05 1e 56 25 03 01 e8 d2 0d 08 00 <0f> 0b e9 23 fd ff ff e8 86 c1 ae f9 e9 c2 fd ff ff 48 89 ef e8 09
RSP: 0018:ffff8880948b7798 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dde61 RDI: ffffed1012916ee5
RBP: ffff8880ab634302 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 00000000f5ff2c00
R13: ffff8880b07cd7a0 R14: 00000000489c3f6d R15: 000000000000017b
 hsr_xmit net/hsr/hsr_forward.c:230 [inline]
 hsr_forward_do net/hsr/hsr_forward.c:295 [inline]
 hsr_forward_skb+0x1284/0x1c30 net/hsr/hsr_forward.c:373
 hsr_dev_xmit+0x6b/0xa0 net/hsr/hsr_device.c:242
 __netdev_start_xmit include/linux/netdevice.h:4345 [inline]
 netdev_start_xmit include/linux/netdevice.h:4359 [inline]
 xmit_one net/core/dev.c:3256 [inline]
 dev_hard_start_xmit+0x1a8/0x920 net/core/dev.c:3272
 __dev_queue_xmit+0x269d/0x2e00 net/core/dev.c:3838
 packet_snd net/packet/af_packet.c:2988 [inline]
 packet_sendmsg+0x24e9/0x7130 net/packet/af_packet.c:3013
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:632
 __sys_sendto+0x21a/0x320 net/socket.c:1787
 __do_sys_sendto net/socket.c:1799 [inline]
 __se_sys_sendto net/socket.c:1795 [inline]
 __x64_sys_sendto+0xdd/0x1b0 net/socket.c:1795
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x443939
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 00 00 90 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff50487a68 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000443939
RDX: 0000000000003287 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 00000000000002ff
R10: 0000000004000002 R11: 0000000000000246 R12: 00007fff50487a90
R13: 00000000000f4240 R14: 00000000000098cb R15: 00007fff50487a84
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (3099):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2021/05/15 13:03 linux-4.19.y 3c8c23092588 93f844de .config log report syz C WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/04/02 16:15 linux-4.19.y 2034d6f0838e 6a81331a .config log report syz C WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/03/03 20:28 linux-4.19.y 2d19be4653f5 06ed56cd .config log report syz C WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/02/15 11:03 linux-4.19.y 811218eceeaa 98682e5e .config log report syz C WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/02/13 16:43 linux-4.19.y 811218eceeaa 98682e5e .config log report syz C WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/01/30 00:43 linux-4.19.y c4ff839de17f fc9fd31e .config log report syz C WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/01/26 20:35 linux-4.19.y 2263955bf7e7 55a7d4df .config log report syz C WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/01/20 23:31 linux-4.19.y 43d555d83c3f d4f4eca5 .config log report syz C WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/01/20 16:16 linux-4.19.y 43d555d83c3f d4f4eca5 .config log report syz C WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/01/18 11:21 linux-4.19.y c110fed0e606 fd103621 .config log report syz C WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/01/17 18:01 linux-4.19.y c110fed0e606 fd103621 .config log report syz C WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/01/08 00:50 linux-4.19.y 4143d798313f c104d4a3 .config log report syz C
ci2-linux-4-19 2020/12/30 08:29 linux-4.19.y 13d2ce42de8c 0fa352f2 .config log report syz C
ci2-linux-4-19 2020/12/17 14:16 linux-4.19.y 13d2ce42de8c 04201c06 .config log report syz C
ci2-linux-4-19 2020/12/11 15:13 linux-4.19.y 13d2ce42de8c ba24ffcd .config log report syz C
ci2-linux-4-19 2019/12/16 22:34 linux-4.19.y 312017a460d5 0ae38e44 .config log report syz C
ci2-linux-4-19 2019/10/23 08:30 linux-4.19.y c3038e718a19 d0686497 .config log report syz C
ci2-linux-4-19 2019/06/07 20:46 linux-4.19.y e109a984cf38 cf9c3a50 .config log report syz C
ci2-linux-4-19 2019/04/23 13:14 linux-4.19.y c98875d930e9 53199d6e .config log report syz C
ci2-linux-4-19 2019/04/17 19:57 linux-4.19.y 4b0e041c9dad b0e8efcb .config log report syz C
ci2-linux-4-19 2020/02/02 08:54 linux-4.19.y 32ee7492f104 2274ad39 .config log report syz
ci2-linux-4-19 2019/06/29 05:25 linux-4.19.y aec3002d07fd 7509bf36 .config log report syz
ci2-linux-4-19 2021/05/21 22:10 linux-4.19.y 3c8c23092588 3c7fef33 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/21 13:51 linux-4.19.y 3c8c23092588 3c7fef33 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/20 17:46 linux-4.19.y 3c8c23092588 c560a65d .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/20 08:53 linux-4.19.y 3c8c23092588 a343ba6b .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/20 01:38 linux-4.19.y 3c8c23092588 a343ba6b .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/19 19:19 linux-4.19.y 3c8c23092588 a343ba6b .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/19 10:02 linux-4.19.y 3c8c23092588 a343ba6b .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/18 18:21 linux-4.19.y 3c8c23092588 a343ba6b .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/16 21:19 linux-4.19.y 3c8c23092588 f54a5c09 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/16 14:25 linux-4.19.y 3c8c23092588 f54a5c09 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/16 08:22 linux-4.19.y 3c8c23092588 f54a5c09 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/15 03:31 linux-4.19.y 3c8c23092588 8bdd5343 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/15 01:36 linux-4.19.y 3c8c23092588 8bdd5343 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/14 15:43 linux-4.19.y 3c8c23092588 8bdd5343 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/13 21:53 linux-4.19.y 3c8c23092588 ecb594cb .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/12 18:57 linux-4.19.y 3c8c23092588 ed7d41c5 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/12 02:23 linux-4.19.y 3c8c23092588 b3c3bb8e .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/12 01:22 linux-4.19.y 3c8c23092588 b3c3bb8e .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/11 08:12 linux-4.19.y 3c8c23092588 ca873091 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/10 20:43 linux-4.19.y 3c8c23092588 ca873091 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/10 09:55 linux-4.19.y 3c8c23092588 bc5434be .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/09 08:57 linux-4.19.y 3c8c23092588 bc5434be .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/08 01:38 linux-4.19.y 3c8c23092588 bc5434be .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/07 05:29 linux-4.19.y 97a8651cadce 06585184 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/06 23:43 linux-4.19.y 97a8651cadce 06585184 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/06 14:48 linux-4.19.y 97a8651cadce 06c27ff5 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/06 14:37 linux-4.19.y 97a8651cadce 06c27ff5 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/06 10:04 linux-4.19.y 97a8651cadce 06c27ff5 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/06 03:29 linux-4.19.y 97a8651cadce 06c27ff5 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/05 14:19 linux-4.19.y 97a8651cadce 06c27ff5 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/05 10:43 linux-4.19.y 97a8651cadce 06c27ff5 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/05 05:11 linux-4.19.y 97a8651cadce 06c27ff5 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/04 12:37 linux-4.19.y 97a8651cadce 09efdd63 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/04 07:41 linux-4.19.y 97a8651cadce 09efdd63 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/04 00:13 linux-4.19.y 97a8651cadce ad61f371 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/03 17:05 linux-4.19.y 97a8651cadce ad61f371 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/03 12:47 linux-4.19.y 97a8651cadce 77e2b668 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/03 08:10 linux-4.19.y 97a8651cadce 77e2b668 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/03 06:29 linux-4.19.y 97a8651cadce 77e2b668 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/03 00:19 linux-4.19.y 97a8651cadce 77e2b668 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/02 18:10 linux-4.19.y 97a8651cadce 77e2b668 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/02 12:47 linux-4.19.y 97a8651cadce 77e2b668 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/02 02:17 linux-4.19.y 97a8651cadce 77e2b668 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/01 17:14 linux-4.19.y 97a8651cadce 77e2b668 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/01 11:13 linux-4.19.y 97a8651cadce 77e2b668 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/01 07:13 linux-4.19.y 97a8651cadce 77e2b668 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/05/01 03:17 linux-4.19.y 97a8651cadce 77e2b668 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/04/30 23:44 linux-4.19.y 97a8651cadce 77e2b668 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/04/30 06:36 linux-4.19.y 97a8651cadce 77e2b668 .config log report info WARNING in hsr_addr_subst_dest
ci2-linux-4-19 2021/01/16 03:30 linux-4.19.y 675cc038067f 65a7a854 .config log report info
ci2-linux-4-19 2019/04/14 17:00 linux-4.19.y 4d552acf3370 505ab413 .config log report
* Struck through repros no longer work on HEAD.