general protection fault in klist_iter_exit

11 views
Skip to first unread message

syzbot

unread,
Dec 23, 2021, 10:11:17 AM12/23/21
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 5b673be0c6b0 FROMGIT: USB: gadget: bRequestType is a bitfi..
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=10542171b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=8844969a6709ae53
dashboard link: https://syzkaller.appspot.com/bug?extid=2cb12152d44f3995081d
compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.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+2cb121...@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: 31432 Comm: kworker/1:6 Not tainted 5.4.147-syzkaller-00015-g5b673be0c6b0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events netlink_sock_destruct_work
RIP: 0010:klist_iter_exit+0x27/0xf0 lib/klist.c:313
Code: 44 00 00 55 41 57 41 56 41 55 41 54 53 49 89 ff 48 bd 00 00 00 00 00 fc ff df e8 94 74 42 fd 49 83 c7 08 4d 89 fd 49 c1 ed 03 <41> 80 7c 2d 00 00 74 08 4c 89 ff e8 e9 90 6f fd 4d 8b 37 4d 85 f6
RSP: 0018:ffff8881e55ffc58 EFLAGS: 00010202
RAX: ffffffff841e5c2c RBX: 0000000000000000 RCX: ffff8881c74d6e40
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000000
RBP: dffffc0000000000 R08: dffffc0000000000 R09: ffffed103cabff8d
R10: ffffed103cabff8d R11: 0000000000000000 R12: 1ffffffff0a5148b
R13: 0000000000000001 R14: ffff8881e381f398 R15: 0000000000000008
FS: 0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcf083df028 CR3: 00000001e0898000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
nfc_device_iter_exit net/nfc/nfc.h:121 [inline]
nfc_genl_dump_devices_done+0x37/0x50 net/nfc/netlink.c:647
genl_lock_done+0x7b/0xa0 net/netlink/genetlink.c:495
netlink_sock_destruct+0x79/0x250 net/netlink/af_netlink.c:389
__sk_destruct+0x50/0x400 net/core/sock.c:1698
process_one_work+0x679/0x1030 kernel/workqueue.c:2278
worker_thread+0xa6f/0x1400 kernel/workqueue.c:2424
kthread+0x30f/0x330 kernel/kthread.c:288
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352
Modules linked in:
---[ end trace e80cfd74d98ccf1a ]---
RIP: 0010:klist_iter_exit+0x27/0xf0 lib/klist.c:313
Code: 44 00 00 55 41 57 41 56 41 55 41 54 53 49 89 ff 48 bd 00 00 00 00 00 fc ff df e8 94 74 42 fd 49 83 c7 08 4d 89 fd 49 c1 ed 03 <41> 80 7c 2d 00 00 74 08 4c 89 ff e8 e9 90 6f fd 4d 8b 37 4d 85 f6
RSP: 0018:ffff8881e55ffc58 EFLAGS: 00010202
RAX: ffffffff841e5c2c RBX: 0000000000000000 RCX: ffff8881c74d6e40
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000000
RBP: dffffc0000000000 R08: dffffc0000000000 R09: ffffed103cabff8d
R10: ffffed103cabff8d R11: 0000000000000000 R12: 1ffffffff0a5148b
R13: 0000000000000001 R14: ffff8881e381f398 R15: 0000000000000008
FS: 0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001d54bb000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 44 00 00 add %r8b,(%rax)
3: 55 push %rbp
4: 41 57 push %r15
6: 41 56 push %r14
8: 41 55 push %r13
a: 41 54 push %r12
c: 53 push %rbx
d: 49 89 ff mov %rdi,%r15
10: 48 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%rbp
17: fc ff df
1a: e8 94 74 42 fd callq 0xfd4274b3
1f: 49 83 c7 08 add $0x8,%r15
23: 4d 89 fd mov %r15,%r13
26: 49 c1 ed 03 shr $0x3,%r13
* 2a: 41 80 7c 2d 00 00 cmpb $0x0,0x0(%r13,%rbp,1) <-- trapping instruction
30: 74 08 je 0x3a
32: 4c 89 ff mov %r15,%rdi
35: e8 e9 90 6f fd callq 0xfd6f9123
3a: 4d 8b 37 mov (%r15),%r14
3d: 4d 85 f6 test %r14,%r14


---
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,
Apr 22, 2022, 11:11:12 AM4/22/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