lkml.org 
[lkml]   [2018]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectgeneral protection fault in klist_put (2)
From
Hello,

syzbot found the following crash on:

HEAD commit: 60c1f89241d4 Merge tag 'dma-mapping-4.19-2' of git://git.i..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1405013e400000
kernel config: https://syzkaller.appspot.com/x/.config?x=4c7e83258d6e0156
dashboard link: https://syzkaller.appspot.com/bug?extid=22995b06a543d8f61a59
compiler: gcc (GCC) 8.0.1 20180413 (experimental)

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

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+22995b06a543d8f61a59@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] SMP KASAN
CPU: 0 PID: 13591 Comm: syz-executor2 Not tainted 4.19.0-rc2+ #220
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:klist_put+0x50/0x180 lib/klist.c:213
Code: c1 ea 03 80 3c 02 00 0f 85 2b 01 00 00 48 b8 00 00 00 00 00 fc ff df
49 8b 1c 24 48 83 e3 fe 48 8d 7b 50 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f
85 fa 00 00 00 48 89 df 4c 8b 73 50 e8 fa e8 06 00
RSP: 0018:ffff880184867228 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90001e8c000
RDX: 000000000000000a RSI: ffffffff86cdb528 RDI: 0000000000000050
RBP: ffff880184867250 R08: fffffbfff1151e35 R09: fffffbfff1151e34
R10: fffffbfff1151e34 R11: ffffffff88a8f1a3 R12: ffff8801ce520ef8
R13: 0000000000000001 R14: 0000000000000001 R15: ffffffff86cdb9ad
FS: 00007f2dc774f700(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4f766e67d0 CR3: 00000001c8958000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
klist_del lib/klist.c:231 [inline]
klist_remove+0x241/0x460 lib/klist.c:250
__device_release_driver drivers/base/dd.c:979 [inline]
device_release_driver_internal+0x589/0x750 drivers/base/dd.c:999
device_release_driver+0x19/0x20 drivers/base/dd.c:1024
usb_driver_release_interface+0x110/0x190 drivers/usb/core/driver.c:604
proc_disconnect_claim+0x288/0x410 drivers/usb/core/devio.c:2281
usbdev_do_ioctl+0x17ee/0x3b30 drivers/usb/core/devio.c:2523
usbdev_ioctl+0x25/0x30 drivers/usb/core/devio.c:2551
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:501 [inline]
do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:685
ksys_ioctl+0xa9/0xd0 fs/ioctl.c:702
__do_sys_ioctl fs/ioctl.c:709 [inline]
__se_sys_ioctl fs/ioctl.c:707 [inline]
__x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:707
do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457099
Code: fd b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f2dc774ec78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f2dc774f6d4 RCX: 0000000000457099
RDX: 0000000020000080 RSI: 000000008108551b RDI: 0000000000000003
RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004ce8f0 R14: 00000000004c4e0b R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
(ftrace buffer empty)
---[ end trace d19413fa3dcc6123 ]---
RIP: 0010:klist_put+0x50/0x180 lib/klist.c:213
Code: c1 ea 03 80 3c 02 00 0f 85 2b 01 00 00 48 b8 00 00 00 00 00 fc ff df
49 8b 1c 24 48 83 e3 fe 48 8d 7b 50 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f
85 fa 00 00 00 48 89 df 4c 8b 73 50 e8 fa e8 06 00
RSP: 0018:ffff880184867228 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90001e8c000
IPVS: ftp: loaded support on port[0] = 21
RDX: 000000000000000a RSI: ffffffff86cdb528 RDI: 0000000000000050
RBP: ffff880184867250 R08: fffffbfff1151e35 R09: fffffbfff1151e34
R10: fffffbfff1151e34 R11: ffffffff88a8f1a3 R12: ffff8801ce520ef8
R13: 0000000000000001 R14: 0000000000000001 R15: ffffffff86cdb9ad
FS: 00007f2dc774f700(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4f766e67d0 CR3: 00000001c8958000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This bug 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 syzkaller@googlegroups.com.

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

\
 
 \ /
  Last update: 2018-09-05 09:14    [W:0.023 / U:1.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site