general protection fault in __device_attach

4 views
Skip to first unread message

syzbot

unread,
Feb 7, 2021, 9:57:23 AM2/7/21
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3e99096f UPSTREAM: userfaultfd: add user-mode only option ..
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=17df33d8d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=3572327fca884a04
dashboard link: https://syzkaller.appspot.com/bug?extid=08feebb6c2c756ba8f7c
compiler: Debian clang version 11.0.1-2

Unfortunately, I don't have any reproducer for this issue yet.

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

kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7194 Comm: syz-executor.2 Not tainted 5.4.95-syzkaller-00075-g3e99096f6219 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__device_attach+0xb4/0x470 syzkaller/managers/android-5-4-kasan/kernel/drivers/base/dd.c:897
Code: 5c 24 68 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 2d f1 04 ff 4c 8b 2b 49 8d 9d c8 00 00 00 48 89 d8 48 c1 e8 03 <42> 8a 04 30 84 c0 0f 85 1d 03 00 00 0f b6 1b 83 e3 01 45 31 ff 31
RSP: 0018:ffff8881f21df3e0 EFLAGS: 00010202
RAX: 0000000000000019 RBX: 00000000000000c8 RCX: ffffffff844297e6
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff8881f21df360
RBP: ffff8881f21df4b0 R08: dffffc0000000000 R09: ffffed103e43be6d
R10: ffffed103e43be6d R11: 0000000000000000 R12: ffff8881e6e60030
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000
FS: 00007ff72a0be700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f913b05fd58 CR3: 00000001e441c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
proc_ioctl+0x433/0x600 syzkaller/managers/android-5-4-kasan/kernel/drivers/usb/core/devio.c:2254
usbdev_do_ioctl+0x3945/0x67e0 syzkaller/managers/android-5-4-kasan/kernel/drivers/usb/core/devio.c:2289
usbdev_ioctl+0x1e/0x30 syzkaller/managers/android-5-4-kasan/kernel/drivers/usb/core/devio.c:2705
do_vfs_ioctl+0x76a/0x1720 syzkaller/managers/android-5-4-kasan/kernel/fs/ioctl.c:47
ksys_ioctl syzkaller/managers/android-5-4-kasan/kernel/fs/ioctl.c:742 [inline]
__do_sys_ioctl syzkaller/managers/android-5-4-kasan/kernel/fs/ioctl.c:749 [inline]
__se_sys_ioctl syzkaller/managers/android-5-4-kasan/kernel/fs/ioctl.c:747 [inline]
__x64_sys_ioctl+0xd4/0x110 syzkaller/managers/android-5-4-kasan/kernel/fs/ioctl.c:747
do_syscall_64+0xcb/0x150 syzkaller/managers/android-5-4-kasan/kernel/arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x465b09
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff72a0be188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465b09
RDX: 0000000020000040 RSI: 00000000c0105512 RDI: 0000000000000003
RBP: 00000000004b069f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffd84a5720f R14: 00007ff72a0be300 R15: 0000000000022000
Modules linked in:
---[ end trace e4abd9ecafa9ada1 ]---
RIP: 0010:__device_attach+0xb4/0x470 syzkaller/managers/android-5-4-kasan/kernel/drivers/base/dd.c:897
Code: 5c 24 68 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 2d f1 04 ff 4c 8b 2b 49 8d 9d c8 00 00 00 48 89 d8 48 c1 e8 03 <42> 8a 04 30 84 c0 0f 85 1d 03 00 00 0f b6 1b 83 e3 01 45 31 ff 31
RSP: 0018:ffff8881f21df3e0 EFLAGS: 00010202
RAX: 0000000000000019 RBX: 00000000000000c8 RCX: ffffffff844297e6
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff8881f21df360
RBP: ffff8881f21df4b0 R08: dffffc0000000000 R09: ffffed103e43be6d
R10: ffffed103e43be6d R11: 0000000000000000 R12: ffff8881e6e60030
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000
FS: 00007ff72a0be700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000568000 CR3: 00000001e441c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
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.

syzbot

unread,
Feb 18, 2022, 1:30:12 PM2/18/22
to syzkaller-a...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages