syzbot


general protection fault in timer_is_static_object

Status: fixed on 2020/02/18 14:31
Subsystems: input
[Documentation on labels]
Reported-by: syzbot+76f3a30e88d256644c78@syzkaller.appspotmail.com
Fix commit: cb222aed03d7 Input: add safety guards to input_set_keycode()
First crash: 1606d, last: 1606d
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 3.16 000/245] 3.16.83-rc1 review 260 (260) 2020/04/24 17:54
[PATCH 5.4 00/78] 5.4.12-stable review 107 (107) 2020/02/11 15:01
[PATCH 4.19 00/46] 4.19.96-stable review 51 (51) 2020/01/15 02:09
[PATCH 4.14 00/39] 4.14.165-stable review 44 (44) 2020/01/15 02:08
[PATCH 4.9 00/31] 4.9.210-stable review 36 (36) 2020/01/15 02:08
[PATCH 4.4 00/28] 4.4.210-stable review 33 (33) 2020/01/15 02:08
[PATCH] Input: add safety guards to input_set_keycode() 1 (1) 2019/12/07 21:27
general protection fault in timer_is_static_object 0 (1) 2019/11/29 10:45

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
CPU: 0 PID: 1713 Comm: syz-executor493 Not tainted 5.4.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:timer_is_static_object+0x20/0x90 kernel/time/timer.c:612
Code: 66 2e 0f 1f 84 00 00 00 00 00 41 54 53 48 89 fb e8 b5 50 0f 00 48 8d 7b 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 4f 45 31 e4 48 83 7b 08 00 74 0c e8 8b 50 0f 00 44
RSP: 0018:ffff8881d0397af8 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000004060 RCX: 0000000000000000
RDX: 000000000000080d RSI: ffffffff812ed5ab RDI: 0000000000004068
RBP: ffff8881d0397c00 R08: ffff8881d1bdc800 R09: fffffbfff1230886
R10: fffffbfff1230885 R11: ffffffff8918442b R12: 0000000000000003
R13: dffffc0000000000 R14: 1ffff1103a072f66 R15: 0000000000004060
FS:  0000000001020880(0000) GS:ffff8881db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000043ff90 CR3: 00000001d1ac0000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 debug_object_assert_init lib/debugobjects.c:862 [inline]
 debug_object_assert_init+0x1f9/0x2f0 lib/debugobjects.c:837
 debug_timer_assert_init kernel/time/timer.c:729 [inline]
 debug_assert_init kernel/time/timer.c:774 [inline]
 del_timer+0x6d/0x100 kernel/time/timer.c:1196
 try_to_grab_pending+0x67/0x7b0 kernel/workqueue.c:1251
 __cancel_work_timer+0xa6/0x460 kernel/workqueue.c:3086
 input_close_device+0xd2/0x1a0 drivers/input/input.c:679
 evdev_close_device drivers/input/evdev.c:428 [inline]
 evdev_release+0x188/0x1c0 drivers/input/evdev.c:466
 __fput+0x2d7/0x840 fs/file_table.c:280
 task_work_run+0x13f/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x1d2/0x200 arch/x86/entry/common.c:163
 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:274 [inline]
 do_syscall_64+0x45f/0x580 arch/x86/entry/common.c:300
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4022c0
Code: 01 f0 ff ff 0f 83 40 0d 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d 6d aa 2d 00 00 75 14 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 14 0d 00 00 c3 48 83 ec 08 e8 7a 02 00 00
RSP: 002b:00007ffc860c7068 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00000000004022c0
RDX: 00000000200000c0 RSI: 0000000040284504 RDI: 0000000000000004
RBP: 00007ffc860c7090 R08: 7d03000000008300 R09: 0000000000000000
R10: 000000000000000f R11: 0000000000000246 R12: 0000000000000003
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace cf0e86e9ac328099 ]---
RIP: 0010:timer_is_static_object+0x20/0x90 kernel/time/timer.c:612
Code: 66 2e 0f 1f 84 00 00 00 00 00 41 54 53 48 89 fb e8 b5 50 0f 00 48 8d 7b 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 4f 45 31 e4 48 83 7b 08 00 74 0c e8 8b 50 0f 00 44
RSP: 0018:ffff8881d0397af8 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000004060 RCX: 0000000000000000
RDX: 000000000000080d RSI: ffffffff812ed5ab RDI: 0000000000004068
RBP: ffff8881d0397c00 R08: ffff8881d1bdc800 R09: fffffbfff1230886
R10: fffffbfff1230885 R11: ffffffff8918442b R12: 0000000000000003
R13: dffffc0000000000 R14: 1ffff1103a072f66 R15: 0000000000004060
FS:  0000000001020880(0000) GS:ffff8881db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000043ff90 CR3: 00000001d1ac0000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/26 15:44 https://github.com/google/kasan.git usb-fuzzer da06441bb485 598ca6c8 .config console log report syz C ci2-upstream-usb
2019/11/26 15:08 https://github.com/google/kasan.git usb-fuzzer da06441bb485 598ca6c8 .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.