syzbot


linux-next boot error: general protection fault in __x64_sys_settimeofday

Status: fixed on 2019/12/13 00:31
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+dccce9b26ba09ca49966@syzkaller.appspotmail.com
Fix commit: 5e0fb1b57bea y2038: time: avoid timespec usage in settimeofday()
First crash: 1618d, last: 1618d
Discussions (1)
Title Replies (including bot) Last reply
linux-next boot error: general protection fault in __x64_sys_settimeofday 9 (10) 2019/11/14 15:02

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: 0 PID: 4436 Comm: hwclock Not tainted 5.4.0-rc7-next-20191114 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__do_sys_settimeofday kernel/time/time.c:210 [inline]
RIP: 0010:__se_sys_settimeofday kernel/time/time.c:199 [inline]
RIP: 0010:__x64_sys_settimeofday+0x170/0x320 kernel/time/time.c:199
Code: 85 50 ff ff ff 85 c0 0f 85 50 01 00 00 e8 b8 cd 10 00 48 8b 85 48 ff ff ff 48 c1 e8 03 48 89 c2 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 0f 85 8a 01 00 00 49 8b 74 24 08 bf 40 42 0f 00 48 89
RSP: 0018:ffff888093fb7e58 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 1ffff110127f6fcd RCX: ffffffff8162e915
RDX: 00000fffe745a35d RSI: ffffffff8162e928 RDI: 0000000000000005
RBP: ffff888093fb7f10 R08: ffff8880954a6580 R09: ffff8880954a6e18
R10: fffffbfff1390d30 R11: ffffffff89c86987 R12: 00007fff3a2d1ae0
R13: ffff888093fb7ee8 R14: 00007fff3a2d1aa0 R15: 000000000000fe31
FS:  00007f32bc9d4700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2d1dbe2000 CR3: 000000009bc3f000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f32bc4cf047
Code: ff ff 73 05 48 83 c4 08 c3 48 8b 0d eb 7d 2e 00 31 d2 48 29 c2 64 89 11 48 83 c8 ff eb e6 90 90 90 90 90 b8 a4 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d c1 7d 2e 00 31 d2 48 29 c2 64
RSP: 002b:00007fff3a2d1a08 EFLAGS: 00000202 ORIG_RAX: 00000000000000a4
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f32bc4cf047
RDX: 000000005dcdbc45 RSI: 00007fff3a2d1aa0 RDI: 00007fff3a2d1ae0
RBP: 0000000000000000 R08: 00007fff3a2f5080 R09: 0000000000000eec
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 4f6a92ffe93b1038 ]---
RIP: 0010:__do_sys_settimeofday kernel/time/time.c:210 [inline]
RIP: 0010:__se_sys_settimeofday kernel/time/time.c:199 [inline]
RIP: 0010:__x64_sys_settimeofday+0x170/0x320 kernel/time/time.c:199
Code: 85 50 ff ff ff 85 c0 0f 85 50 01 00 00 e8 b8 cd 10 00 48 8b 85 48 ff ff ff 48 c1 e8 03 48 89 c2 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 0f 85 8a 01 00 00 49 8b 74 24 08 bf 40 42 0f 00 48 89
RSP: 0018:ffff888093fb7e58 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 1ffff110127f6fcd RCX: ffffffff8162e915
RDX: 00000fffe745a35d RSI: ffffffff8162e928 RDI: 0000000000000005
RBP: ffff888093fb7f10 R08: ffff8880954a6580 R09: ffff8880954a6e18
R10: fffffbfff1390d30 R11: ffffffff89c86987 R12: 00007fff3a2d1ae0
R13: ffff888093fb7ee8 R14: 00007fff3a2d1aa0 R15: 000000000000fe31
FS:  00007f32bc9d4700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2d1dbe1000 CR3: 000000009bc3f000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/14 20:52 linux-next 8466d23e6e67 a24fe792 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/14 20:52 linux-next 8466d23e6e67 a24fe792 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/14 20:52 linux-next 8466d23e6e67 a24fe792 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/14 09:41 linux-next 8466d23e6e67 5d15a967 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/14 09:41 linux-next 8466d23e6e67 5d15a967 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/14 09:41 linux-next 8466d23e6e67 5d15a967 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.