syzbot


general protection fault in hrtimer_try_to_cancel

Status: upstream: reported C repro on 2021/05/27 07:43
Reported-by: syzbot+6bfb30abbbdee95159eb@syzkaller.appspotmail.com
First crash: 552d, last: 552d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 general protection fault in hrtimer_try_to_cancel 5 14d 51d 0/2 premoderation: reported on 2022/10/10 20:02
upstream general protection fault in hrtimer_try_to_cancel syz error error 3 509d 563d 0/24 closed as invalid on 2021/10/06 01:09

Sample crash report:
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 375 Comm: syz-executor436 Not tainted 5.4.121-syzkaller-00751-g1d3dcc209600 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:266 [inline]
RIP: 0010:__read_seqcount_begin include/linux/seqlock.h:113 [inline]
RIP: 0010:raw_read_seqcount_begin include/linux/seqlock.h:148 [inline]
RIP: 0010:hrtimer_active kernel/time/hrtimer.c:1464 [inline]
RIP: 0010:hrtimer_try_to_cancel+0x7f/0xd20 kernel/time/hrtimer.c:1181
Code: 4c 89 fd 48 8b 5c 24 10 48 8b 44 24 38 80 3c 28 00 74 08 48 89 df e8 40 c5 3d 00 4c 8b 23 4d 8d 74 24 10 4d 89 f5 49 c1 ed 03 <41> 8a 44 2d 00 84 c0 0f 85 c4 00 00 00 41 8b 1e 89 de 83 e6 01 31
RSP: 0018:ffff8881e5247750 EFLAGS: 00010002
RAX: 1ffff1103ca2ed57 RBX: ffff8881e5176ab8 RCX: 1ffff1103ca2ed58
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8881e5176a88
RBP: dffffc0000000000 R08: ffffffff822c0670 R09: 000000000000000d
R10: ffffffff84800000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000002 R14: 0000000000000010 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc89792048 CR3: 00000001e5ec9000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 io_kill_timeout fs/io_uring.c:533 [inline]
 io_kill_timeouts fs/io_uring.c:548 [inline]
 io_ring_ctx_wait_and_kill+0x288/0x14a0 fs/io_uring.c:3759
 io_uring_release+0x57/0x70 fs/io_uring.c:3781
 __fput+0x27d/0x6c0 fs/file_table.c:281
 task_work_run+0x186/0x1b0 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xcb9/0x2bf0 kernel/exit.c:812
 do_group_exit+0x15c/0x2c0 kernel/exit.c:910
 get_signal+0x164f/0x1fc0 kernel/signal.c:2745
 do_signal+0x8d/0x610 arch/x86/kernel/signal.c:793
 exit_to_usermode_loop arch/x86/entry/common.c:159 [inline]
 prepare_exit_to_usermode+0x207/0x310 arch/x86/entry/common.c:194
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x445a09
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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:00007f0f07ca0308 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00000000004ca418 RCX: 0000000000445a09
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00000000004ca418
RBP: 00000000004ca410 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 2f30656c69662f2e
R13: 00007ffc89791fef R14: 00007f0f07ca0400 R15: 0000000000022000
Modules linked in:
---[ end trace d9b6d496097575d8 ]---
RIP: 0010:__read_once_size include/linux/compiler.h:266 [inline]
RIP: 0010:__read_seqcount_begin include/linux/seqlock.h:113 [inline]
RIP: 0010:raw_read_seqcount_begin include/linux/seqlock.h:148 [inline]
RIP: 0010:hrtimer_active kernel/time/hrtimer.c:1464 [inline]
RIP: 0010:hrtimer_try_to_cancel+0x7f/0xd20 kernel/time/hrtimer.c:1181
Code: 4c 89 fd 48 8b 5c 24 10 48 8b 44 24 38 80 3c 28 00 74 08 48 89 df e8 40 c5 3d 00 4c 8b 23 4d 8d 74 24 10 4d 89 f5 49 c1 ed 03 <41> 8a 44 2d 00 84 c0 0f 85 c4 00 00 00 41 8b 1e 89 de 83 e6 01 31
RSP: 0018:ffff8881e5247750 EFLAGS: 00010002
RAX: 1ffff1103ca2ed57 RBX: ffff8881e5176ab8 RCX: 1ffff1103ca2ed58
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8881e5176a88
RBP: dffffc0000000000 R08: ffffffff822c0670 R09: 000000000000000d
R10: ffffffff84800000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000002 R14: 0000000000000010 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc89792048 CR3: 00000001e5ec9000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-4-kasan 2021/05/27 07:42 android12-5.4 1d3dcc209600 858ea628 .config log report syz C general protection fault in hrtimer_try_to_cancel
* Struck through repros no longer work on HEAD.