syzbot
general protection fault in rtc_dev_ioctl
Status:
premoderation: reported C repro on 2026/10/09 22:33
Reported-by: syzbot+f3ef6322fbad8a929340@syzkaller.appspotmail.com
First crash: 9h50m, last: 8h32m
Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 UID: 0 PID: 313 Comm: syz-executor273 Not tainted syzkaller #0 ca35313610c8ed713bced2230d6c22219bd85c1d
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:rtc_dev_ioctl+0x933/0xed0 drivers/rtc/dev.c:452
Code: e8 82 25 af fd eb 05 e8 7b 25 af fd 48 63 c3 e9 74 f8 ff ff e8 6e 25 af fd 4c 89 74 24 18 48 8b 5c 24 38 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 9e 9a 08 fe 4c 8b 33 4d 85 f6 74
RSP: 0018:ffffc9000127fce0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888107398000
RDX: 0000000000000000 RSI: ffffffff882adc90 RDI: 000000008004f50c
RBP: ffffc9000127fe98 R08: ffff888107398000 R09: 0000000000000011
R10: 0000000080287010 R11: 0000000000000000 R12: 000000008004f50c
R13: 1ffff9200024ffa4 R14: ffff88810738b390 R15: dffffc0000000000
FS: 00005555857693c0(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000062b5d8 CR3: 0000000104722000 CR4: 00000000003526b0
Call Trace:
<TASK>
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:906 [inline]
__se_sys_ioctl+0x123/0x1b0 fs/ioctl.c:892
__x64_sys_ioctl+0x7f/0xa0 fs/ioctl.c:892
x64_sys_call+0x1878/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:17
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7ff9cc01dcf9
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 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 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdf5bc24f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffdf5bc2628 RCX: 00007ff9cc01dcf9
RDX: 0000000000000000 RSI: 000000008004f50c RDI: 0000000000000003
RBP: 0000000000000001 R08: 00007ffdf5bc2628 R09: 00007ffdf5bc2628
R10: 00007ffdf5bc2628 R11: 0000000000000246 R12: 00007ffdf5bc2618
R13: 0000000000000002 R14: 00007ff9cc0aeca0 R15: 0000000000000002
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:rtc_dev_ioctl+0x933/0xed0 drivers/rtc/dev.c:452
Code: e8 82 25 af fd eb 05 e8 7b 25 af fd 48 63 c3 e9 74 f8 ff ff e8 6e 25 af fd 4c 89 74 24 18 48 8b 5c 24 38 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 9e 9a 08 fe 4c 8b 33 4d 85 f6 74
RSP: 0018:ffffc9000127fce0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888107398000
RDX: 0000000000000000 RSI: ffffffff882adc90 RDI: 000000008004f50c
RBP: ffffc9000127fe98 R08: ffff888107398000 R09: 0000000000000011
R10: 0000000080287010 R11: 0000000000000000 R12: 000000008004f50c
R13: 1ffff9200024ffa4 R14: ffff88810738b390 R15: dffffc0000000000
FS: 00005555857693c0(0000) GS:ffff8881f6d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000563d0f043620 CR3: 0000000104722000 CR4: 00000000003526b0
----------------
Code disassembly (best guess):
0: e8 82 25 af fd call 0xfdaf2587
5: eb 05 jmp 0xc
7: e8 7b 25 af fd call 0xfdaf2587
c: 48 63 c3 movslq %ebx,%rax
f: e9 74 f8 ff ff jmp 0xfffff888
14: e8 6e 25 af fd call 0xfdaf2587
19: 4c 89 74 24 18 mov %r14,0x18(%rsp)
1e: 48 8b 5c 24 38 mov 0x38(%rsp),%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 48 89 df mov %rbx,%rdi
34: e8 9e 9a 08 fe call 0xfe089ad7
39: 4c 8b 33 mov (%rbx),%r14
3c: 4d 85 f6 test %r14,%r14
3f: 74 .byte 0x74
* Struck through repros no longer work on HEAD.