Hello,
syzbot found the following crash on:
HEAD commit: 3d40d711 Linux 4.19.93
git tree: linux-4.19.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=16f7a9e1e00000
kernel config:
https://syzkaller.appspot.com/x/.config?x=be639726c8387103
dashboard link:
https://syzkaller.appspot.com/bug?extid=7869c881689986d95bf5
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=10dfc3fee00000
C reproducer:
https://syzkaller.appspot.com/x/repro.c?x=1712cb25e00000
IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by:
syzbot+7869c8...@syzkaller.appspotmail.com
device bridge33 entered promiscuous mode
device bridge32 entered promiscuous mode
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8747 Comm: syz-executor427 Not tainted 4.19.93-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:hsr_check_carrier_and_operstate+0x42/0x6c0
net/hsr/hsr_device.c:116
Code: fa 4c 89 e7 be 04 00 00 00 e8 4a a4 ff ff 49 89 c4 48 83 c0 10 48 89
c2 48 89 45 d0 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f
85 da 05 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b
RSP: 0018:ffff88809f206bb8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000004 RCX: ffffffff874ae805
RDX: 0000000000000002 RSI: ffffffff874ae80f RDI: 0000000000000004
RBP: ffff88809f206bf8 R08: ffff88807e0bc600 R09: fffffbfff134206d
R10: fffffbfff134206c R11: ffffffff89a10367 R12: 0000000000000000
R13: ffff88809ffa1d80 R14: dffffc0000000000 R15: 0000000000000000
FS: 00007f7255776700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f89776a63e0 CR3: 000000008ec97000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
hsr_netdev_notify+0x12a/0xa40 net/hsr/hsr_main.c:51
notifier_call_chain+0xc2/0x230 kernel/notifier.c:93
__raw_notifier_call_chain kernel/notifier.c:394 [inline]
raw_notifier_call_chain+0x2e/0x40 kernel/notifier.c:401
call_netdevice_notifiers_info+0x3f/0x90 net/core/dev.c:1747
netdev_state_change net/core/dev.c:1352 [inline]
netdev_state_change+0x10d/0x140 net/core/dev.c:1345
do_setlink+0x2c78/0x3670 net/core/rtnetlink.c:2661
rtnl_newlink+0xbad/0x1600 net/core/rtnetlink.c:3068
rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:4768
netlink_rcv_skb+0x17d/0x460 net/netlink/af_netlink.c:2454
rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:4786
netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
netlink_unicast+0x53a/0x730 net/netlink/af_netlink.c:1343
netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1908
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xd7/0x130 net/socket.c:632
___sys_sendmsg+0x803/0x920 net/socket.c:2115
__sys_sendmsg+0x105/0x1d0 net/socket.c:2153
__do_sys_sendmsg net/socket.c:2162 [inline]
__se_sys_sendmsg net/socket.c:2160 [inline]
__x64_sys_sendmsg+0x78/0xb0 net/socket.c:2160
do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x446d89
Code: e8 5c b3 02 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 0b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f7255775db8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000006dbc98 RCX: 0000000000446d89
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000009
RBP: 00000000006dbc90 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000000004 R11: 0000000000000246 R12: 00000000006dbc9c
R13: 00007fff224794bf R14: 00007f72557769c0 R15: 20c49ba5e353f7cf
Modules linked in:
---[ end trace 9c01e0bf656b717f ]---
RIP: 0010:hsr_check_carrier_and_operstate+0x42/0x6c0
net/hsr/hsr_device.c:116
Code: fa 4c 89 e7 be 04 00 00 00 e8 4a a4 ff ff 49 89 c4 48 83 c0 10 48 89
c2 48 89 45 d0 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f
85 da 05 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b
RSP: 0018:ffff88809f206bb8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000004 RCX: ffffffff874ae805
RDX: 0000000000000002 RSI: ffffffff874ae80f RDI: 0000000000000004
RBP: ffff88809f206bf8 R08: ffff88807e0bc600 R09: fffffbfff134206d
R10: fffffbfff134206c R11: ffffffff89a10367 R12: 0000000000000000
R13: ffff88809ffa1d80 R14: dffffc0000000000 R15: 0000000000000000
FS: 00007f7255776700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007faa73d2d9b8 CR3: 000000008ec97000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches