general protection fault in mon_bin_flush

8 views
Skip to first unread message

syzbot

unread,
Sep 16, 2022, 2:36:35 AM9/16/22
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: ccdf6bdf62a8 UPSTREAM: arm64: Implement ioremap_np() to ma..
git tree: android12-5.4
console+strace: https://syzkaller.appspot.com/x/log.txt?x=16b308cf080000
kernel config: https://syzkaller.appspot.com/x/.config?x=d60ce76287fc97c0
dashboard link: https://syzkaller.appspot.com/bug?extid=7d3575f2c06388e75dc4
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10c72ff7080000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16a77a80880000

Downloadable assets:
disk image: https://storage.googleapis.com/49927e2c2cb7/disk-ccdf6bdf.raw.xz
vmlinux: https://storage.googleapis.com/4c353c79897f/vmlinux-ccdf6bdf.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+7d3575...@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: 0 PID: 311 Comm: syz-executor809 Not tainted 5.4.197-syzkaller-00010-gccdf6bdf62a8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:mon_bin_flush+0x140/0x260 drivers/usb/mon/mon_bin.c:885
Code: e8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 ef e8 36 14 d0 fe 48 8b 45 00 81 e3 ff 0f 00 00 4c 8d 74 03 24 4c 89 f0 48 c1 e8 03 <42> 0f b6 04 28 84 c0 75 78 41 8b 36 83 c6 40 4c 89 e7 e8 b9 fd ff
RSP: 0018:ffff8881ddd27d10 EFLAGS: 00010007
RAX: 000000000000013c RBX: 00000000000009c0 RCX: 0000000000f0bab0
RDX: ffff8881ddd1af40 RSI: 000000000f40e900 RDI: 0000000000000000
RBP: ffff8881df229ab8 R08: ffffffff82bca912 R09: ffffed103bba4f9b
R10: ffffed103bba4f9b R11: 1ffff1103bba4f9a R12: ffff8881e376a800
R13: dffffc0000000000 R14: 00000000000009e4 R15: ffff8881e376a818
FS: 00007f0fa8b35700(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002000 CR3: 00000001de25f000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
mon_bin_ioctl+0x259/0xd00 drivers/usb/mon/mon_bin.c:1060
do_vfs_ioctl+0x6d1/0x15b0 fs/ioctl.c:47
ksys_ioctl fs/ioctl.c:742 [inline]
__do_sys_ioctl fs/ioctl.c:749 [inline]
__se_sys_ioctl fs/ioctl.c:747 [inline]
__x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:747
do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f0fa8b908b9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 01 18 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0fa8b352f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f0fa8c0e480 RCX: 00007f0fa8b908b9
RDX: 0000000000000006 RSI: 0000000000009208 RDI: 0000000000000003
RBP: 00007f0fa8bdb2a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f0fa8bda2d8
R13: 6273752f7665642f R14: 0000000100000000 R15: 00007f0fa8c0e488
Modules linked in:
---[ end trace eff845207a4ffd48 ]---
RIP: 0010:mon_bin_flush+0x140/0x260 drivers/usb/mon/mon_bin.c:885
Code: e8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 ef e8 36 14 d0 fe 48 8b 45 00 81 e3 ff 0f 00 00 4c 8d 74 03 24 4c 89 f0 48 c1 e8 03 <42> 0f b6 04 28 84 c0 75 78 41 8b 36 83 c6 40 4c 89 e7 e8 b9 fd ff
RSP: 0018:ffff8881ddd27d10 EFLAGS: 00010007
RAX: 000000000000013c RBX: 00000000000009c0 RCX: 0000000000f0bab0
RDX: ffff8881ddd1af40 RSI: 000000000f40e900 RDI: 0000000000000000
RBP: ffff8881df229ab8 R08: ffffffff82bca912 R09: ffffed103bba4f9b
R10: ffffed103bba4f9b R11: 1ffff1103bba4f9a R12: ffff8881e376a800
R13: dffffc0000000000 R14: 00000000000009e4 R15: ffff8881e376a818
FS: 00007f0fa8b35700(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002000 CR3: 00000001de25f000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: e8 48 c1 e8 03 callq 0x3e8c14d
5: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1)
a: 74 08 je 0x14
c: 48 89 ef mov %rbp,%rdi
f: e8 36 14 d0 fe callq 0xfed0144a
14: 48 8b 45 00 mov 0x0(%rbp),%rax
18: 81 e3 ff 0f 00 00 and $0xfff,%ebx
1e: 4c 8d 74 03 24 lea 0x24(%rbx,%rax,1),%r14
23: 4c 89 f0 mov %r14,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 75 78 jne 0xab
33: 41 8b 36 mov (%r14),%esi
36: 83 c6 40 add $0x40,%esi
39: 4c 89 e7 mov %r12,%rdi
3c: e8 .byte 0xe8
3d: b9 .byte 0xb9
3e: fd std
3f: ff .byte 0xff


---
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 can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Apr 20, 2023, 5:41:31 PM4/20/23
to syzkaller-a...@googlegroups.com
Auto-closing this bug as obsolete.
No recent activity, existing reproducers are no longer triggering the issue.
Reply all
Reply to author
Forward
0 new messages