syzbot


general protection fault in hsr_check_carrier_and_operstate

Status: upstream: reported C repro on 2020/01/09 01:05
Reported-by: syzbot+7869c881689986d95bf5@syzkaller.appspotmail.com
First crash: 1566d, last: 470d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in hsr_check_carrier_and_operstate C error 11 442d 1566d 0/1 upstream: reported C repro on 2020/01/08 22:43
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2020/09/22 19:56 19m bisect fix linux-4.19.y error job log (0)
2020/08/23 19:14 41m bisect fix linux-4.19.y job log (0) log
2020/06/07 02:53 25m bisect fix linux-4.19.y job log (0) log
2020/05/08 02:24 28m bisect fix linux-4.19.y job log (0) log
2020/04/08 01:57 26m bisect fix linux-4.19.y job log (0) log
2020/03/09 01:30 26m bisect fix linux-4.19.y job log (0) log
2020/02/08 01:04 26m bisect fix linux-4.19.y job log (0) log

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
device syz_tun entered promiscuous mode
device batadv_slave_0 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: 8329 Comm: syz-executor186 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:hsr_check_carrier_and_operstate+0x3f/0x810 net/hsr/hsr_device.c:116
Code: f9 be 04 00 00 00 48 89 ef e8 cd a8 ff ff 49 89 c6 48 83 c0 10 48 89 c2 48 89 04 24 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 64 07 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b
RSP: 0018:ffff888095b36cb8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880959d0700 RCX: ffffffff87ea889e
RDX: 0000000000000002 RSI: ffffffff87ea88a7 RDI: 0000000000000004
RBP: ffff888094445000 R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000001
R13: dffffc0000000000 R14: 0000000000000000 R15: ffffffff8b0bcc40
FS:  00007eff32c97700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007eff32c97718 CR3: 000000009939a000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 hsr_netdev_notify+0x270/0x9f0 net/hsr/hsr_main.c:51
 notifier_call_chain+0xc0/0x230 kernel/notifier.c:93
 netdev_state_change net/core/dev.c:1349 [inline]
 netdev_state_change+0x100/0x130 net/core/dev.c:1342
 do_setlink+0x2c8a/0x3540 net/core/rtnetlink.c:2661
 rtnl_group_changelink net/core/rtnetlink.c:2925 [inline]
 rtnl_newlink+0xbc9/0x15c0 net/core/rtnetlink.c:3083
 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4782
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463
 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351
 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227
 __sys_sendmsg net/socket.c:2265 [inline]
 __do_sys_sendmsg net/socket.c:2274 [inline]
 __se_sys_sendmsg net/socket.c:2272 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7eff32d134d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 91 18 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007eff32c97208 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007eff32d944d8 RCX: 00007eff32d134d9
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000003
RBP: 00007eff32d944d0 R08: 0000000000000801 R09: 0000000000000000
R10: 0000000000001f11 R11: 0000000000000246 R12: 00007eff32d944dc
R13: 00007ffe21a894af R14: 00007eff32c97300 R15: 0000000000022000
Modules linked in:
---[ end trace 2b6335373dde5187 ]---
RIP: 0010:hsr_check_carrier_and_operstate+0x3f/0x810 net/hsr/hsr_device.c:116
Code: f9 be 04 00 00 00 48 89 ef e8 cd a8 ff ff 49 89 c6 48 83 c0 10 48 89 c2 48 89 04 24 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 64 07 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b
RSP: 0018:ffff888095b36cb8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880959d0700 RCX: ffffffff87ea889e
RDX: 0000000000000002 RSI: ffffffff87ea88a7 RDI: 0000000000000004
RBP: ffff888094445000 R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000001
R13: dffffc0000000000 R14: 0000000000000000 R15: ffffffff8b0bcc40
FS:  00007eff32c97700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007eff32c97718 CR3: 000000009939a000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	f9                   	stc
   1:	be 04 00 00 00       	mov    $0x4,%esi
   6:	48 89 ef             	mov    %rbp,%rdi
   9:	e8 cd a8 ff ff       	callq  0xffffa8db
   e:	49 89 c6             	mov    %rax,%r14
  11:	48 83 c0 10          	add    $0x10,%rax
  15:	48 89 c2             	mov    %rax,%rdx
  18:	48 89 04 24          	mov    %rax,(%rsp)
  1c:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  23:	fc ff df
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 64 07 00 00    	jne    0x798
  34:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  3b:	fc ff df
  3e:	49                   	rex.WB
  3f:	8b                   	.byte 0x8b

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/22 04:50 linux-4.19.y 3f8a27f9e27b 1c576c23 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 general protection fault in hsr_check_carrier_and_operstate
2022/11/20 09:00 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 general protection fault in hsr_check_carrier_and_operstate
2020/01/09 01:04 linux-4.19.y 3d40d7117e35 ddc3e859 .config console log report syz C ci2-linux-4-19
2023/01/09 02:57 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in hsr_check_carrier_and_operstate
2022/11/20 08:31 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in hsr_check_carrier_and_operstate
2022/07/25 03:28 linux-4.19.y 3f8a27f9e27b 22343af4 .config console log report info ci2-linux-4-19 general protection fault in hsr_check_carrier_and_operstate
2021/10/31 22:11 linux-4.19.y 3f8a27f9e27b 098b5d53 .config console log report info ci2-linux-4-19 general protection fault in hsr_check_carrier_and_operstate
2021/09/05 04:20 linux-4.19.y b172b44fcb17 d236a457 .config console log report info ci2-linux-4-19 general protection fault in hsr_check_carrier_and_operstate
2021/06/19 15:25 linux-4.19.y eb575cd5d7f6 aba2b2fb .config console log report info ci2-linux-4-19 general protection fault in hsr_check_carrier_and_operstate
2020/07/24 16:35 linux-4.19.y 20b3a3dfdf6c 554af388 .config console log report ci2-linux-4-19
2020/07/15 22:31 linux-4.19.y dce0f88600e4 ada108d0 .config console log report ci2-linux-4-19
2020/07/04 12:26 linux-4.19.y 399849e4654e 4f739670 .config console log report ci2-linux-4-19
2020/07/04 09:31 linux-4.19.y 399849e4654e 51095195 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.