syzbot


general protection fault in hrtimer_try_to_cancel

Status: auto-obsoleted due to no activity on 2024/10/10 20:58
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+6d54825b8b547bbdcafd@syzkaller.appspotmail.com
First crash: 808d, last: 176d
Fix bisection: fixed by (bisect log) :
commit f011c103e654d83dc85f057a7d1bd0960d02831c
Author: Jakub Kicinski <kuba@kernel.org>
Date: Wed Feb 21 23:12:10 2024 +0000

  net: veth: clear GRO when clearing XDP even when down

  
Bug presence (4)
Date Name Commit Repro Result
2024/04/02 android13-5.15-lts (ToT) 993bed180178 C [report] general protection fault in hrtimer_try_to_cancel
2023/11/19 lts (merge base) 12952a23a5da C [report] general protection fault in hrtimer_try_to_cancel
2023/11/19 upstream (ToT) 037266a5f723 C [report] general protection fault in hrtimer_try_to_cancel
2024/04/02 upstream (ToT) 026e680b0a08 C Didn't crash
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 general protection fault in hrtimer_try_to_cancel origin:upstream missing-backport C done done 25 208d 404d 0/2 auto-obsoleted due to no activity on 2024/09/09 16:25
linux-6.1 general protection fault in hrtimer_try_to_cancel 1 416d 416d 0/3 auto-obsoleted due to no activity on 2024/02/14 17:05
linux-6.1 general protection fault in hrtimer_try_to_cancel (2) 1 296d 296d 0/3 auto-obsoleted due to no activity on 2024/06/13 18:46
upstream general protection fault in hrtimer_try_to_cancel kernel syz error error 3 1265d 1320d 0/28 closed as invalid on 2021/10/06 01:09
android-54 general protection fault in hrtimer_try_to_cancel C 1 1309d 1309d 0/2 auto-obsoleted due to no activity on 2024/08/27 14:01
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/03/22 17:02 12m retest repro android13-5.15-lts report log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2024/08/13 17:24 6h09m bisect fix android13-5.15-lts OK (1) job log
2024/07/02 19:41 1h16m bisect fix android13-5.15-lts OK (0) job log log
2024/05/25 16:33 1h10m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
netlink: 'syz-executor315': attribute type 27 has an invalid length.
bridge0: port 2(bridge_slave_1) entered disabled state
bridge0: port 1(bridge_slave_0) entered disabled state
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: 309 Comm: syz-executor315 Not tainted 5.15.137-syzkaller-01792-g61cfd264993d #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:276 [inline]
RIP: 0010:hrtimer_active kernel/time/hrtimer.c:1611 [inline]
RIP: 0010:hrtimer_try_to_cancel+0x7d/0x320 kernel/time/hrtimer.c:1328
Code: 00 48 8b 5d c8 48 8b 45 d0 42 80 3c 38 00 74 08 48 89 df e8 35 84 51 00 48 8b 03 48 89 45 b0 4c 8d 60 10 4d 89 e5 49 c1 ed 03 <43> 0f b6 44 3d 00 84 c0 0f 85 00 01 00 00 41 8b 1c 24 89 de 83 e6
RSP: 0018:ffffc9000079e338 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff88811f797148 RCX: 1ffff11023ef2e2a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88811f797118
RBP: ffffc9000079e390 R08: ffffffff83e4c97a R09: ffffed1023ef2e03
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000010
R13: 0000000000000002 R14: ffff88811f797118 R15: dffffc0000000000
FS:  000055555727a380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000288 CR3: 00000001202f6000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 hrtimer_cancel+0x17/0x50 kernel/time/hrtimer.c:1443
 napi_disable+0x143/0x190 net/core/dev.c:6962
 veth_napi_del_range drivers/net/veth.c:985 [inline]
 veth_napi_del drivers/net/veth.c:1000 [inline]
 veth_set_features+0x1c8/0x300 drivers/net/veth.c:1428
 __netdev_update_features+0x83c/0x1c10 net/core/dev.c:10012
 netdev_update_features+0x6d/0x1c0 net/core/dev.c:10086
 veth_xdp_set drivers/net/veth.c:1519 [inline]
 veth_xdp+0x468/0x5f0 drivers/net/veth.c:1532
 dev_xdp_install+0x151/0x380 net/core/dev.c:9411
 dev_xdp_attach+0xb52/0xdc0 net/core/dev.c:9559
 dev_change_xdp_fd+0x1db/0x260 net/core/dev.c:9805
 do_setlink+0x3587/0x3ae0 net/core/rtnetlink.c:2953
 rtnl_group_changelink net/core/rtnetlink.c:3270 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3439 [inline]
 rtnl_newlink+0x1088/0x2050 net/core/rtnetlink.c:3549
 rtnetlink_rcv_msg+0x951/0xc40 net/core/rtnetlink.c:5630
 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5648
 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
 netlink_unicast+0x8df/0xac0 net/netlink/af_netlink.c:1356
 netlink_sendmsg+0xa0a/0xd20 net/netlink/af_netlink.c:1924
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2429
 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2483
 __sys_sendmsg net/socket.c:2512 [inline]
 __do_sys_sendmsg net/socket.c:2521 [inline]
 __se_sys_sendmsg+0x19a/0x260 net/socket.c:2519
 __x64_sys_sendmsg+0x7b/0x90 net/socket.c:2519
 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+0x61/0xcb
RIP: 0033:0x7f5148063f69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 19 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:00007ffe42639cc8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f51480b1530 RCX: 00007f5148063f69
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000100000000
R10: 0000000100000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 8b095c5e57b68eb7 ]---
RIP: 0010:__seqprop_raw_spinlock_sequence include/linux/seqlock.h:276 [inline]
RIP: 0010:hrtimer_active kernel/time/hrtimer.c:1611 [inline]
RIP: 0010:hrtimer_try_to_cancel+0x7d/0x320 kernel/time/hrtimer.c:1328
Code: 00 48 8b 5d c8 48 8b 45 d0 42 80 3c 38 00 74 08 48 89 df e8 35 84 51 00 48 8b 03 48 89 45 b0 4c 8d 60 10 4d 89 e5 49 c1 ed 03 <43> 0f b6 44 3d 00 84 c0 0f 85 00 01 00 00 41 8b 1c 24 89 de 83 e6
RSP: 0018:ffffc9000079e338 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff88811f797148 RCX: 1ffff11023ef2e2a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88811f797118
RBP: ffffc9000079e390 R08: ffffffff83e4c97a R09: ffffed1023ef2e03
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000010
R13: 0000000000000002 R14: ffff88811f797118 R15: dffffc0000000000
FS:  000055555727a380(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020003900 CR3: 00000001202f6000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 48 8b             	add    %cl,-0x75(%rax)
   3:	5d                   	pop    %rbp
   4:	c8 48 8b 45          	enter  $0x8b48,$0x45
   8:	d0 42 80             	rolb   -0x80(%rdx)
   b:	3c 38                	cmp    $0x38,%al
   d:	00 74 08 48          	add    %dh,0x48(%rax,%rcx,1)
  11:	89 df                	mov    %ebx,%edi
  13:	e8 35 84 51 00       	call   0x51844d
  18:	48 8b 03             	mov    (%rbx),%rax
  1b:	48 89 45 b0          	mov    %rax,-0x50(%rbp)
  1f:	4c 8d 60 10          	lea    0x10(%rax),%r12
  23:	4d 89 e5             	mov    %r12,%r13
  26:	49 c1 ed 03          	shr    $0x3,%r13
* 2a:	43 0f b6 44 3d 00    	movzbl 0x0(%r13,%r15,1),%eax <-- trapping instruction
  30:	84 c0                	test   %al,%al
  32:	0f 85 00 01 00 00    	jne    0x138
  38:	41 8b 1c 24          	mov    (%r12),%ebx
  3c:	89 de                	mov    %ebx,%esi
  3e:	83                   	.byte 0x83
  3f:	e6                   	.byte 0xe6

Crashes (42):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/18 21:18 android13-5.15-lts 61cfd264993d cb976f63 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/11/13 03:47 android13-5.15-lts 61cfd264993d 6d6dbf8a .config console log report syz ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2024/04/22 16:13 android13-5.15-lts ad06eaf051cd 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2024/03/08 16:59 android13-5.15-lts 993bed180178 8e75c913 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2024/02/27 03:42 android13-5.15-lts 993bed180178 05e69c83 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2024/02/08 15:58 android13-5.15-lts 3802b45594e1 7f07e9b0 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2024/01/18 15:47 android13-5.15-lts 1c3a1f32bcbd 239abf84 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2024/01/18 01:09 android13-5.15-lts 1c3a1f32bcbd 915053c7 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2024/01/03 23:58 android13-5.15-lts 1370e896a3b8 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/12/07 13:40 android13-5.15-lts 0e7c7966689d 0a02ce36 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/12/06 16:02 android13-5.15-lts 0e7c7966689d e3299f55 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/11/30 03:48 android13-5.15-lts 30b8daf0a868 f819d6f7 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/11/29 13:35 android13-5.15-lts 30b8daf0a868 6e78f9ce .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/11/13 05:52 android13-5.15-lts 61cfd264993d 6d6dbf8a .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/11/10 12:07 android13-5.15-lts 61cfd264993d 45e9b83e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/11/07 12:43 android13-5.15-lts 61cfd264993d 83211397 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/10/30 13:53 android13-5.15-lts 61cfd264993d b5729d82 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/10/30 04:04 android13-5.15-lts 61cfd264993d 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/10/27 18:56 android13-5.15-lts 61cfd264993d 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/10/26 19:46 android13-5.15-lts 558a2461986e 23afc60f .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/10/25 11:06 android13-5.15-lts 51c330012b68 17e6d526 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/10/24 04:43 android13-5.15-lts 754f8cc9b7de af8d2e46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/10/07 09:16 android13-5.15-lts ea586874d2f9 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/07/27 16:49 android13-5.15-lts d567dc0a2c02 92476829 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/07/19 23:37 android13-5.15-lts 879959450ec7 4547cdf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/05/01 18:02 android13-5.15-lts 6d40cb68a657 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/05/01 11:24 android13-5.15-lts 6d40cb68a657 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/03/29 19:53 android13-5.15-lts 7364b7abbafb f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/03/16 20:44 android13-5.15-lts 5448b2fda85f 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/02/22 17:00 android13-5.15-lts 5448b2fda85f 9f1e2cb3 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/02/11 03:17 android13-5.15-lts 5020746bff95 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/02/09 18:00 android13-5.15-lts 5020746bff95 07980f9d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/02/03 12:26 android13-5.15-lts 7e0097918ff8 1b2f701a .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/01/29 05:14 android13-5.15-lts d753150bdc01 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/01/25 07:38 android13-5.15-lts e66b45d52787 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2023/01/04 18:56 android13-5.15-lts c73b4619ad86 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2022/12/14 13:43 android13-5.15-lts c73b4619ad86 f6511626 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2022/11/16 19:18 android13-5.15-lts 4ec71a9ec769 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2022/11/14 10:56 android13-5.15-lts 7f2e600bf63a 943f4cb8 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2022/10/17 16:12 android13-5.15-lts 44b8b2ac1d96 94744d21 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2022/10/12 15:12 android13-5.15-lts 43eb03f7ce81 16a9c9e0 .config console log report info [disk image] [vmlinux] ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
2022/10/10 20:01 android13-5.15-lts 43eb03f7ce81 5bcf0c31 .config console log report info ci2-android-5-15 general protection fault in hrtimer_try_to_cancel
* Struck through repros no longer work on HEAD.