[Android 6.1] BUG: unable to handle kernel paging request in uinput_destroy_device

0 views
Skip to first unread message

syzbot

unread,
2:07 AM (3 hours ago) 2:07 AM
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: edbe3e111301 ANDROID: GKI: update symbol list file for xia..
git tree: android14-6.1
console output: https://syzkaller.appspot.com/x/log.txt?x=110e06e6580000
kernel config: https://syzkaller.appspot.com/x/.config?x=19de17fcb07fab22
dashboard link: https://syzkaller.appspot.com/bug?extid=6435293dff27c01d69af
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12ec3e5a580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12e0815a580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/7f197c9e74e8/disk-edbe3e11.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ec478ec45c12/vmlinux-edbe3e11.xz
kernel image: https://storage.googleapis.com/syzbot-assets/f45c5db85d5d/bzImage-edbe3e11.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+643529...@syzkaller.appspotmail.com

input: syz1 as /devices/virtual/input/input118
BUG: unable to handle page fault for address: fffffffffffffff8
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 7012067 P4D 7012067 PUD 7014067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 767 Comm: syz.2.131 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026
RIP: 0010:swake_up_locked kernel/sched/swait.c:29 [inline]
RIP: 0010:complete+0x9e/0x1c0 kernel/sched/completion.c:36
Code: e7 e8 36 99 63 00 4d 8b 3c 24 4d 39 e7 0f 84 d4 00 00 00 49 8d 7f f8 48 89 f8 48 c1 e8 03 42 80 3c 30 00 74 05 e8 12 99 63 00 <49> 8b 7f f8 e8 79 b4 f9 ff 4c 89 ff e8 01 1e 1a 01 84 c0 74 74 49
RSP: 0018:ffffc900018d7c98 EFLAGS: 00010046
RAX: 1fffffffffffffff RBX: ffffc90001907a78 RCX: 0000000000000001
RDX: 0000000000000001 RSI: 0000000000000004 RDI: fffffffffffffff8
RBP: ffffc900018d7cd0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff5200031af80 R12: ffffc90001907a80
R13: 0000000000000001 R14: dffffc0000000000 R15: 0000000000000000
FS: 00007fee56e406c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffff8 CR3: 0000000115caf000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
uinput_flush_requests drivers/input/misc/uinput.c:213 [inline]
uinput_destroy_device+0x129/0x8e0 drivers/input/misc/uinput.c:298
uinput_release+0x3e/0x50 drivers/input/misc/uinput.c:758
__fput+0x1fc/0x8f0 fs/file_table.c:320
____fput+0x15/0x20 fs/file_table.c:348
task_work_run+0x1e1/0x250 kernel/task_work.c:203
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177
exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fee55f9bf79
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fee56e40028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 00007fee56215fa0 RCX: 00007fee55f9bf79
RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000004
RBP: 00007fee560327e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fee56216038 R14: 00007fee56215fa0 R15: 00007ffdd7a09968
</TASK>
Modules linked in:
CR2: fffffffffffffff8
---[ end trace 0000000000000000 ]---
RIP: 0010:swake_up_locked kernel/sched/swait.c:29 [inline]
RIP: 0010:complete+0x9e/0x1c0 kernel/sched/completion.c:36
Code: e7 e8 36 99 63 00 4d 8b 3c 24 4d 39 e7 0f 84 d4 00 00 00 49 8d 7f f8 48 89 f8 48 c1 e8 03 42 80 3c 30 00 74 05 e8 12 99 63 00 <49> 8b 7f f8 e8 79 b4 f9 ff 4c 89 ff e8 01 1e 1a 01 84 c0 74 74 49
RSP: 0018:ffffc900018d7c98 EFLAGS: 00010046
RAX: 1fffffffffffffff RBX: ffffc90001907a78 RCX: 0000000000000001
RDX: 0000000000000001 RSI: 0000000000000004 RDI: fffffffffffffff8
RBP: ffffc900018d7cd0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff5200031af80 R12: ffffc90001907a80
R13: 0000000000000001 R14: dffffc0000000000 R15: 0000000000000000
FS: 00007fee56e406c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffff8 CR3: 0000000115caf000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: e7 e8 out %eax,$0xe8
2: 36 99 ss cltd
4: 63 00 movsxd (%rax),%eax
6: 4d 8b 3c 24 mov (%r12),%r15
a: 4d 39 e7 cmp %r12,%r15
d: 0f 84 d4 00 00 00 je 0xe7
13: 49 8d 7f f8 lea -0x8(%r15),%rdi
17: 48 89 f8 mov %rdi,%rax
1a: 48 c1 e8 03 shr $0x3,%rax
1e: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1)
23: 74 05 je 0x2a
25: e8 12 99 63 00 call 0x63993c
* 2a: 49 8b 7f f8 mov -0x8(%r15),%rdi <-- trapping instruction
2e: e8 79 b4 f9 ff call 0xfff9b4ac
33: 4c 89 ff mov %r15,%rdi
36: e8 01 1e 1a 01 call 0x11a1e3c
3b: 84 c0 test %al,%al
3d: 74 74 je 0xb3
3f: 49 rex.WB


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages