syzbot


general protection fault in hrtimer_try_to_cancel

Status: auto-obsoleted due to no activity on 2024/02/14 17:05
Reported-by: syzbot+f0d9feef3d6bc99a6259@syzkaller.appspotmail.com
First crash: 161d, last: 161d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 general protection fault in hrtimer_try_to_cancel origin:upstream missing-backport C 41 14d 149d 0/2 upstream: reported C repro on 2023/11/18 21:21
android-6-1 general protection fault in hrtimer_try_to_cancel origin:upstream missing-backport C done 25 14d 149d 0/2 upstream: reported C repro on 2023/11/18 15:06
linux-6.1 general protection fault in hrtimer_try_to_cancel (2) 1 41d 41d 0/3 upstream: reported on 2024/03/05 18:46
upstream general protection fault in hrtimer_try_to_cancel kernel syz error error 3 1011d 1066d 0/26 closed as invalid on 2021/10/06 01:09
android-54 general protection fault in hrtimer_try_to_cancel C 1 1055d 1055d 0/2 upstream: reported C repro on 2021/05/27 07:43

Sample crash report:
netlink: 'syz-executor.3': attribute type 10 has an invalid length.
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 0 PID: 17994 Comm: syz-executor.3 Not tainted 6.1.61-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:__seqprop_raw_spinlock_sequence include/linux/seqlock.h:274 [inline]
RIP: 0010:hrtimer_active kernel/time/hrtimer.c:1611 [inline]
RIP: 0010:hrtimer_try_to_cancel+0x7c/0x410 kernel/time/hrtimer.c:1328
Code: f0 10 00 48 8b 5c 24 10 48 8b 44 24 08 42 80 3c 30 00 74 08 48 89 df e8 92 27 68 00 4c 8b 3b 4d 8d 67 10 4c 89 e3 48 c1 eb 03 <42> 0f b6 04 33 84 c0 0f 85 f6 00 00 00 41 8b 2c 24 89 ee 83 e6 01
RSP: 0018:ffffc9000ccfe6c0 EFLAGS: 00010202
RAX: 1ffff11006ea1e2a RBX: 0000000000000002 RCX: 1ffff11006ea1e2b
RDX: ffffc9000d26c000 RSI: 000000000000a7f0 RDI: 000000000000a7f1
RBP: ffff88803750f120 R08: ffffffff887f92b2 R09: ffffed1006ea1e03
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000010
R13: 1ffff11006ea1e02 R14: dffffc0000000000 R15: 0000000000000000
FS:  00007fb9145db6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fce21affc85 CR3: 0000000028308000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 hrtimer_cancel+0x12/0x50 kernel/time/hrtimer.c:1443
 napi_disable+0xfb/0x120 net/core/dev.c:6459
 veth_napi_del_range drivers/net/veth.c:1041 [inline]
 veth_napi_del drivers/net/veth.c:1056 [inline]
 veth_set_features+0x1a2/0x2d0 drivers/net/veth.c:1484
 __netdev_update_features+0xa69/0x1fc0 net/core/dev.c:9755
 netdev_update_features+0x6d/0x1c0 net/core/dev.c:9829
 dev_disable_lro+0x43/0x1d0 net/core/dev.c:1613
 team_port_add drivers/net/team/team.c:1237 [inline]
 team_add_slave+0xd8f/0x2760 drivers/net/team/team.c:1985
 do_set_master net/core/rtnetlink.c:2598 [inline]
 do_setlink+0xd92/0x3e60 net/core/rtnetlink.c:2801
 rtnl_setlink+0x3f1/0x560 net/core/rtnetlink.c:3092
 rtnetlink_rcv_msg+0x818/0xff0 net/core/rtnetlink.c:6122
 netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2508
 netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline]
 netlink_unicast+0x7d8/0x970 net/netlink/af_netlink.c:1352
 netlink_sendmsg+0xa26/0xd60 net/netlink/af_netlink.c:1874
 sock_sendmsg_nosec net/socket.c:716 [inline]
 __sock_sendmsg net/socket.c:728 [inline]
 ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2499
 ___sys_sendmsg net/socket.c:2553 [inline]
 __sys_sendmsg+0x2a9/0x390 net/socket.c:2582
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb91387cae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb9145db0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fb91399bf80 RCX: 00007fb91387cae9
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003
RBP: 00007fb9138c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fb91399bf80 R15: 00007ffe0b3078e8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__seqprop_raw_spinlock_sequence include/linux/seqlock.h:274 [inline]
RIP: 0010:hrtimer_active kernel/time/hrtimer.c:1611 [inline]
RIP: 0010:hrtimer_try_to_cancel+0x7c/0x410 kernel/time/hrtimer.c:1328
Code: f0 10 00 48 8b 5c 24 10 48 8b 44 24 08 42 80 3c 30 00 74 08 48 89 df e8 92 27 68 00 4c 8b 3b 4d 8d 67 10 4c 89 e3 48 c1 eb 03 <42> 0f b6 04 33 84 c0 0f 85 f6 00 00 00 41 8b 2c 24 89 ee 83 e6 01
RSP: 0018:ffffc9000ccfe6c0 EFLAGS: 00010202
RAX: 1ffff11006ea1e2a RBX: 0000000000000002 RCX: 1ffff11006ea1e2b
RDX: ffffc9000d26c000 RSI: 000000000000a7f0 RDI: 000000000000a7f1
RBP: ffff88803750f120 R08: ffffffff887f92b2 R09: ffffed1006ea1e03
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000010
R13: 1ffff11006ea1e02 R14: dffffc0000000000 R15: 0000000000000000
FS:  00007fb9145db6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c013620000 CR3: 0000000028308000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	f0 10 00             	lock adc %al,(%rax)
   3:	48 8b 5c 24 10       	mov    0x10(%rsp),%rbx
   8:	48 8b 44 24 08       	mov    0x8(%rsp),%rax
   d:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1)
  12:	74 08                	je     0x1c
  14:	48 89 df             	mov    %rbx,%rdi
  17:	e8 92 27 68 00       	call   0x6827ae
  1c:	4c 8b 3b             	mov    (%rbx),%r15
  1f:	4d 8d 67 10          	lea    0x10(%r15),%r12
  23:	4c 89 e3             	mov    %r12,%rbx
  26:	48 c1 eb 03          	shr    $0x3,%rbx
* 2a:	42 0f b6 04 33       	movzbl (%rbx,%r14,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 f6 00 00 00    	jne    0x12d
  37:	41 8b 2c 24          	mov    (%r12),%ebp
  3b:	89 ee                	mov    %ebp,%esi
  3d:	83 e6 01             	and    $0x1,%esi

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/06 17:05 linux-6.1.y 4a61839152cc 78fae24e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in hrtimer_try_to_cancel
* Struck through repros no longer work on HEAD.