syzbot


general protection fault in hrtimer_active (5)

Status: fixed on 2023/06/08 14:41
Subsystems: kernel
[Documentation on labels]
Fix commit: 4fab64126891 net/sched: fix error recovery in qdisc_create()
First crash: 442d, last: 438d
Cause bisection: failed (error log, bisect log)
  
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in hrtimer_active (3) kernel syz done error 34 815d 1120d 20/26 fixed on 2022/03/08 16:11
upstream general protection fault in hrtimer_active kernel C 669 2359d 2383d 3/26 fixed on 2017/11/28 03:36
upstream general protection fault in hrtimer_active (4) kernel 7 644d 754d 0/26 auto-obsoleted due to no activity on 2022/10/20 15:45
upstream KASAN: null-ptr-deref Read in hrtimer_active kernel 7 158d 295d 0/26 closed as invalid on 2024/01/16 13:47
upstream general protection fault in hrtimer_active (2) kernel C 10612 2246d 2250d 4/26 fixed on 2018/03/06 13:29
linux-4.19 general protection fault in hrtimer_active C error 66 947d 1691d 0/1 upstream: reported C repro on 2019/09/09 21:23
upstream BUG: unable to handle kernel NULL pointer dereference in hrtimer_active kernel 1 76d 74d 26/26 fixed on 2024/03/27 19:12

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 1 PID: 5073 Comm: syz-executor264 Not tainted 6.2.0-rc6-syzkaller-01486-g0b34d68049b0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
RIP: 0010:__seqprop_raw_spinlock_sequence include/linux/seqlock.h:274 [inline]
RIP: 0010:hrtimer_active+0x6f/0x1f0 kernel/time/hrtimer.c:1611
Code: 01 f0 48 89 44 24 10 e8 cf 87 10 00 48 8b 44 24 08 80 38 00 0f 85 71 01 00 00 49 8b 6d 30 48 8d 45 10 48 89 04 24 48 c1 e8 03 <42> 0f b6 04 30 84 c0 74 08 3c 03 0f 8e 42 01 00 00 8b 5d 10 31 ff
RSP: 0018:ffffc90003b0f360 EFLAGS: 00010202
RAX: 0000000000000002 RBX: ffff88802a504340 RCX: 0000000000000000
RDX: ffff888020509d40 RSI: ffffffff817073c1 RDI: ffff88802a504340
RBP: 0000000000000000 R08: 0000000000000007 R09: fffffffffffff000
R10: ffffffffffffffea R11: 0000000000000000 R12: 0000000000000000
R13: ffff88802a504340 R14: dffffc0000000000 R15: 0000000080010000
FS:  0000555555d87300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004585c0 CR3: 0000000078614000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 hrtimer_try_to_cancel+0x25/0x1e0 kernel/time/hrtimer.c:1328
 hrtimer_cancel+0x17/0x40 kernel/time/hrtimer.c:1443
 cake_destroy+0x19/0x80 net/sched/sch_cake.c:2695
 qdisc_create+0xaca/0x1150 net/sched/sch_api.c:1329
 tc_modify_qdisc+0x488/0x19c0 net/sched/sch_api.c:1679
 rtnetlink_rcv_msg+0x43e/0xca0 net/core/rtnetlink.c:6174
 netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2574
 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
 netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365
 netlink_sendmsg+0x91b/0xe10 net/netlink/af_netlink.c:1942
 sock_sendmsg_nosec net/socket.c:722 [inline]
 sock_sendmsg+0xde/0x190 net/socket.c:745
 ____sys_sendmsg+0x71c/0x900 net/socket.c:2501
 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2555
 __sys_sendmsg+0xf7/0x1c0 net/socket.c:2584
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fc550aaacb9
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc12ae62e8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc550aaacb9
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003
RBP: 00007fc550a6ee60 R08: 00000000ffffffff R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fc550a6eef0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__seqprop_raw_spinlock_sequence include/linux/seqlock.h:274 [inline]
RIP: 0010:hrtimer_active+0x6f/0x1f0 kernel/time/hrtimer.c:1611
Code: 01 f0 48 89 44 24 10 e8 cf 87 10 00 48 8b 44 24 08 80 38 00 0f 85 71 01 00 00 49 8b 6d 30 48 8d 45 10 48 89 04 24 48 c1 e8 03 <42> 0f b6 04 30 84 c0 74 08 3c 03 0f 8e 42 01 00 00 8b 5d 10 31 ff
RSP: 0018:ffffc90003b0f360 EFLAGS: 00010202
RAX: 0000000000000002 RBX: ffff88802a504340 RCX: 0000000000000000
RDX: ffff888020509d40 RSI: ffffffff817073c1 RDI: ffff88802a504340
RBP: 0000000000000000 R08: 0000000000000007 R09: fffffffffffff000
R10: ffffffffffffffea R11: 0000000000000000 R12: 0000000000000000
R13: ffff88802a504340 R14: dffffc0000000000 R15: 0000000080010000
FS:  0000555555d87300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055f47be0c6f8 CR3: 0000000078614000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	01 f0                	add    %esi,%eax
   2:	48 89 44 24 10       	mov    %rax,0x10(%rsp)
   7:	e8 cf 87 10 00       	callq  0x1087db
   c:	48 8b 44 24 08       	mov    0x8(%rsp),%rax
  11:	80 38 00             	cmpb   $0x0,(%rax)
  14:	0f 85 71 01 00 00    	jne    0x18b
  1a:	49 8b 6d 30          	mov    0x30(%r13),%rbp
  1e:	48 8d 45 10          	lea    0x10(%rbp),%rax
  22:	48 89 04 24          	mov    %rax,(%rsp)
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 30       	movzbl (%rax,%r14,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	74 08                	je     0x3b
  33:	3c 03                	cmp    $0x3,%al
  35:	0f 8e 42 01 00 00    	jle    0x17d
  3b:	8b 5d 10             	mov    0x10(%rbp),%ebx
  3e:	31 ff                	xor    %edi,%edi

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/09 22:07 net-next-old 0b34d68049b0 07980f9d .config strace log report syz C ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/13 19:27 net-next-old 6d86bb0a5cb8 4d66ad72 .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/12 15:16 net-next-old 75da437a2f17 93e26d60 .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/12 14:10 net-next-old 75da437a2f17 93e26d60 .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/12 14:05 net-next-old 75da437a2f17 93e26d60 .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/12 12:26 net-next-old 75da437a2f17 93e26d60 .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/12 11:13 net-next-old 75da437a2f17 93e26d60 .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/12 01:06 net-next-old 75da437a2f17 93e26d60 .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/11 15:15 net-next-old de4287336794 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/11 14:03 net-next-old de4287336794 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/11 07:53 net-next-old de4287336794 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/11 07:52 net-next-old de4287336794 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/11 02:01 net-next-old 025a785ff083 95871dcc .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/11 00:31 net-next-old 025a785ff083 95871dcc .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/10 23:31 net-next-old 025a785ff083 95871dcc .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/10 22:21 net-next-old 025a785ff083 95871dcc .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/10 07:11 net-next-old 0b34d68049b0 07980f9d .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/10 04:41 net-next-old 0b34d68049b0 07980f9d .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/10 02:44 net-next-old 0b34d68049b0 07980f9d .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/10 02:34 net-next-old 0b34d68049b0 07980f9d .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/09 21:14 net-next-old 0b34d68049b0 07980f9d .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
2023/02/09 19:19 net-next-old 0b34d68049b0 07980f9d .config console log report info ci-upstream-net-kasan-gce general protection fault in hrtimer_active
* Struck through repros no longer work on HEAD.