syzbot


general protection fault in hsr_dev_change_mtu (2)

Status: upstream: reported C repro on 2021/01/19 13:13
Reported-by: syzbot+2dc1234bc0d1d06ef6f6@syzkaller.appspotmail.com
First crash: 1404d, last: 821d
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 8 1537d 1758d 0/1 auto-closed as invalid on 2021/01/06 06:37
linux-4.19 general protection fault in hsr_dev_change_mtu 1 1574d 1574d 0/1 auto-closed as invalid on 2020/11/30 07:56
linux-4.19 general protection fault in hsr_dev_change_mtu (2) C error 9 1143d 1435d 0/1 upstream: reported C repro on 2020/12/19 00:10
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/03/04 05:32 0m retest repro linux-4.14.y error
Fix bisection attempts (21)
Created Duration User Patch Repo Result
2022/10/13 02:07 0m bisect fix linux-4.14.y error job log
2022/08/20 01:17 26m bisect fix linux-4.14.y OK (0) job log log
2022/07/20 23:49 27m bisect fix linux-4.14.y OK (0) job log log
2022/06/20 23:24 24m bisect fix linux-4.14.y OK (0) job log log
2022/05/21 22:56 27m bisect fix linux-4.14.y OK (0) job log log
2022/04/21 22:31 24m bisect fix linux-4.14.y OK (0) job log log
2022/03/22 22:04 27m bisect fix linux-4.14.y OK (0) job log log
2022/02/20 05:21 29m bisect fix linux-4.14.y OK (0) job log log
2022/01/21 04:51 29m bisect fix linux-4.14.y OK (0) job log log
2021/12/22 03:04 22m bisect fix linux-4.14.y OK (0) job log log
2021/11/22 02:42 21m bisect fix linux-4.14.y OK (0) job log log
2021/10/23 02:13 28m bisect fix linux-4.14.y OK (0) job log log
2021/09/22 06:36 30m bisect fix linux-4.14.y OK (0) job log log
2021/08/23 05:57 27m bisect fix linux-4.14.y OK (0) job log log
2021/07/24 05:16 22m bisect fix linux-4.14.y OK (0) job log log
2021/06/23 22:41 22m bisect fix linux-4.14.y OK (0) job log log
2021/05/24 22:06 23m bisect fix linux-4.14.y OK (0) job log log
2021/04/24 21:18 21m bisect fix linux-4.14.y OK (0) job log log
2021/03/25 12:16 20m bisect fix linux-4.14.y OK (0) job log log
2021/02/23 10:33 21m bisect fix linux-4.14.y OK (0) job log log
2021/02/19 06:07 18m bisect fix linux-4.14.y error job log

Sample crash report:
device batadv0 entered promiscuous mode
lo: Cannot use loopback or non-ethernet device as HSR slave.
device batadv0 left 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
Modules linked in:
CPU: 1 PID: 8263 Comm: syz-executor087 Not tainted 4.14.216-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880b0488040 task.stack: ffff8880afe30000
RIP: 0010:hsr_dev_change_mtu+0x95/0xc0 net/hsr/hsr_device.c:149
RSP: 0018:ffff8880afe37060 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880af056600 RCX: 1ffff11016091123
RDX: 0000000000000002 RSI: 0000000000000003 RDI: 0000000000000010
RBP: 00000000000005dc R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000000 R11: ffff8880b0488040 R12: ffff8880af0570c0
R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff86f85550
FS:  0000000001a7b880(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 000000009d751000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __dev_set_mtu net/core/dev.c:6875 [inline]
 dev_set_mtu+0x1f0/0x3c0 net/core/dev.c:6910
 team_port_add drivers/net/team/team.c:1199 [inline]
 team_add_slave+0x8de/0x1bc0 drivers/net/team/team.c:1968
 do_set_master+0x19e/0x200 net/core/rtnetlink.c:1961
 do_setlink+0x8b8/0x2bf0 net/core/rtnetlink.c:2098
 rtnl_newlink+0x1267/0x1830 net/core/rtnetlink.c:2660
 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4316
 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433
 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline]
 netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313
 netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xb5/0x100 net/socket.c:656
 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
 __sys_sendmsg+0xa3/0x120 net/socket.c:2096
 SYSC_sendmsg net/socket.c:2107 [inline]
 SyS_sendmsg+0x27/0x40 net/socket.c:2103
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x444149
RSP: 002b:00007ffc3ec79678 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000444149
RDX: 0000000000000000 RSI: 0000000020000600 RDI: 0000000000000005
RBP: 00007ffc3ec79680 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000007b7d
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Code: 44 89 e0 5b 5d 41 5c 41 5d c3 e8 27 4c 86 fa eb e1 e8 90 cf 5c fa 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 e0 93 73 
RIP: hsr_dev_change_mtu+0x95/0xc0 net/hsr/hsr_device.c:149 RSP: ffff8880afe37060
---[ end trace ecda4bfeca2968e8 ]---

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/19 13:12 linux-4.14.y 2762b48e9611 63631df1 .config console log report syz C ci2-linux-4-14 general protection fault in hsr_dev_change_mtu
2022/08/24 21:13 linux-4.14.y b641242202ed 514514f6 .config console log report info ci2-linux-4-14 general protection fault in hsr_dev_change_mtu
* Struck through repros no longer work on HEAD.