syzbot
general protection fault in rtc_dev_ioctl
Status:
upstream: reported C repro on 2026/09/30 11:22
Reported-by: syzbot+dfc6684e1a4ddeee3f0f@syzkaller.appspotmail.com
First crash: 9d19h, last: 9d16h
Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 297 Comm: syz-executor374 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:rtc_dev_ioctl+0x7b9/0x930 drivers/rtc/dev.c:387
Code: 85 f6 0f 84 d5 00 00 00 e8 24 2a 40 fe 48 c7 c0 f2 ff ff ff e9 b7 f9 ff ff e8 13 2a 40 fe 4c 8b 74 24 38 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 48 ac 7a fe 4d 8b 36 4d 85 f6 74
RSP: 0018:ffffc90000b07d60 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88810bf81000 RCX: ffff88811be5e400
RDX: 0000000000000000 RSI: ffffffff86967290 RDI: 000000008004f50c
RBP: ffffc90000b07eb0 R08: ffff88811be5e400 R09: 000000000000000f
R10: 0000000080287010 R11: 0000000000000000 R12: dffffc0000000000
R13: 1ffff92000160fb4 R14: 0000000000000000 R15: dffffc0000000000
FS: 000055558aeaf3c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000069a6c0 CR3: 00000001083eb000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
vfs_ioctl fs/ioctl.c:48 [inline]
__do_sys_ioctl fs/ioctl.c:753 [inline]
__se_sys_ioctl+0x121/0x1a0 fs/ioctl.c:739
__x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fc22dffcd39
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:00007fff30aee4c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fff30aee5f8 RCX: 00007fc22dffcd39
RDX: 0000000000000000 RSI: 000000008004f50c RDI: 0000000000000003
RBP: 0000000000000001 R08: 00007fff30aee5f8 R09: 00007fff30aee5f8
R10: 00007fff30aee5f8 R11: 0000000000000246 R12: 00007fff30aee5e8
R13: 0000000000000002 R14: 00007fc22e08dca0 R15: 0000000000000002
Modules linked in:
---[ end trace b1a8e9e18c2f7599 ]---
RIP: 0010:rtc_dev_ioctl+0x7b9/0x930 drivers/rtc/dev.c:387
Code: 85 f6 0f 84 d5 00 00 00 e8 24 2a 40 fe 48 c7 c0 f2 ff ff ff e9 b7 f9 ff ff e8 13 2a 40 fe 4c 8b 74 24 38 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 48 ac 7a fe 4d 8b 36 4d 85 f6 74
RSP: 0018:ffffc90000b07d60 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88810bf81000 RCX: ffff88811be5e400
RDX: 0000000000000000 RSI: ffffffff86967290 RDI: 000000008004f50c
RBP: ffffc90000b07eb0 R08: ffff88811be5e400 R09: 000000000000000f
R10: 0000000080287010 R11: 0000000000000000 R12: dffffc0000000000
R13: 1ffff92000160fb4 R14: 0000000000000000 R15: dffffc0000000000
FS: 000055558aeaf3c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000069a6c0 CR3: 00000001083eb000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 85 f6 test %esi,%esi
2: 0f 84 d5 00 00 00 je 0xdd
8: e8 24 2a 40 fe call 0xfe402a31
d: 48 c7 c0 f2 ff ff ff mov $0xfffffffffffffff2,%rax
14: e9 b7 f9 ff ff jmp 0xfffff9d0
19: e8 13 2a 40 fe call 0xfe402a31
1e: 4c 8b 74 24 38 mov 0x38(%rsp),%r14
23: 4c 89 f0 mov %r14,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 4c 89 f7 mov %r14,%rdi
34: e8 48 ac 7a fe call 0xfe7aac81
39: 4d 8b 36 mov (%r14),%r14
3c: 4d 85 f6 test %r14,%r14
3f: 74 .byte 0x74
* Struck through repros no longer work on HEAD.