syzbot


general protection fault in hsr_dev_change_mtu (2)

Status: upstream: reported C repro on 2020/12/19 00:10
Reported-by: syzbot+cbfb3df99d69ace5be33@syzkaller.appspotmail.com
First crash: 1229d, last: 937d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in hsr_dev_change_mtu (2) C error 2 616d 1198d 0/1 upstream: reported C repro on 2021/01/19 13:13
linux-4.14 general protection fault in hsr_dev_change_mtu 8 1331d 1552d 0/1 auto-closed as invalid on 2021/01/06 06:37
linux-4.19 general protection fault in hsr_dev_change_mtu 1 1368d 1368d 0/1 auto-closed as invalid on 2020/11/30 07:56
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2021/11/06 02:01 11m bisect fix linux-4.19.y error job log (0)
2021/10/07 01:32 28m bisect fix linux-4.19.y job log (0) log
2021/08/09 04:25 27m bisect fix linux-4.19.y job log (0) log
2021/07/10 04:02 22m bisect fix linux-4.19.y job log (0) log
2021/06/10 03:41 20m bisect fix linux-4.19.y job log (0) log
2021/05/11 03:14 27m bisect fix linux-4.19.y job log (0) log
2021/04/01 20:57 22m bisect fix linux-4.19.y job log (0) log

Sample crash report:
lo: Cannot use loopback or non-ethernet device as HSR slave.
device batadv0 left promiscuous mode
netlink: 'syz-executor430': attribute type 10 has an invalid length.
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: 0 PID: 8357 Comm: syz-executor430 Not tainted 4.19.171-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:hsr_dev_change_mtu+0xa2/0xd0 net/hsr/hsr_device.c:149
Code: 89 e0 5b 5d 41 5c 41 5d c3 e8 7a 48 b0 f9 eb e1 e8 43 90 7a f9 49 8d 7d 10 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 1d 49 8b 7d 10 ba 06 00 00 00 48 c7 c6 00 50 70 89
RSP: 0018:ffff8880938beb60 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 00000000000005dc RCX: ffffffff87e7c9bb
RDX: 0000000000000002 RSI: ffffffff87e7ca0d RDI: 0000000000000010
RBP: ffff88809385e180 R08: 0000000000000000 R09: 00000000000005d6
R10: 0000000000000004 R11: 0000000000000000 R12: 00000000000005d6
R13: 0000000000000000 R14: ffff88809385e3c8 R15: 0000000000000001
FS:  00000000012fd880(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 00000000aae65000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __dev_set_mtu net/core/dev.c:7755 [inline]
 dev_set_mtu_ext+0x339/0x580 net/core/dev.c:7808
 dev_set_mtu+0x95/0x120 net/core/dev.c:7832
 team_port_add drivers/net/team/team.c:1205 [inline]
 team_add_slave+0x9cb/0x1fa0 drivers/net/team/team.c:1976
 do_set_master+0x1c8/0x220 net/core/rtnetlink.c:2321
 do_setlink+0x7ec/0x3540 net/core/rtnetlink.c:2455
 rtnl_newlink+0xda0/0x15b0 net/core/rtnetlink.c:3077
 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4778
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:632
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115
 __sys_sendmsg net/socket.c:2153 [inline]
 __do_sys_sendmsg net/socket.c:2162 [inline]
 __se_sys_sendmsg net/socket.c:2160 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x444149
Code: e8 6c 05 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 9b 07 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffcb65358c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000444149
RDX: 0000000000000000 RSI: 0000000020000600 RDI: 0000000000000005
RBP: 00007ffcb65358d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000009223
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 47e41a212a1c6f97 ]---
RIP: 0010:hsr_dev_change_mtu+0xa2/0xd0 net/hsr/hsr_device.c:149
Code: 89 e0 5b 5d 41 5c 41 5d c3 e8 7a 48 b0 f9 eb e1 e8 43 90 7a f9 49 8d 7d 10 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 1d 49 8b 7d 10 ba 06 00 00 00 48 c7 c6 00 50 70 89
RSP: 0018:ffff8880938beb60 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 00000000000005dc RCX: ffffffff87e7c9bb
RDX: 0000000000000002 RSI: ffffffff87e7ca0d RDI: 0000000000000010
RBP: ffff88809385e180 R08: 0000000000000000 R09: 00000000000005d6
R10: 0000000000000004 R11: 0000000000000000 R12: 00000000000005d6
R13: 0000000000000000 R14: ffff88809385e3c8 R15: 0000000000000001
FS:  00000000012fd880(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 00000000aae65000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/28 03:59 linux-4.19.y c4ff839de17f a57db36f .config console log report syz C ci2-linux-4-19 general protection fault in hsr_dev_change_mtu
2021/01/18 22:40 linux-4.19.y c110fed0e606 63631df1 .config console log report syz C ci2-linux-4-19 general protection fault in hsr_dev_change_mtu
2021/09/07 01:23 linux-4.19.y b172b44fcb17 6ca60148 .config console log report info ci2-linux-4-19 general protection fault in hsr_dev_change_mtu
2021/08/23 01:43 linux-4.19.y 59456c9cc40c b599f2fc .config console log report info ci2-linux-4-19 general protection fault in hsr_dev_change_mtu
2021/04/11 02:47 linux-4.19.y 830a059cbba6 6a81331a .config console log report info ci2-linux-4-19 general protection fault in hsr_dev_change_mtu
2021/03/02 20:56 linux-4.19.y 2d19be4653f5 e5b64d68 .config console log report info ci2-linux-4-19 general protection fault in hsr_dev_change_mtu
2021/02/04 02:40 linux-4.19.y 811218eceeaa 624dad51 .config console log report info ci2-linux-4-19 general protection fault in hsr_dev_change_mtu
2021/01/18 15:11 linux-4.19.y c110fed0e606 63631df1 .config console log report info ci2-linux-4-19 general protection fault in hsr_dev_change_mtu
2020/12/19 00:09 linux-4.19.y 13d2ce42de8c 04201c06 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.