syzbot


general protection fault in mon_bin_flush

Status: auto-obsoleted due to no activity on 2023/04/20 21:41
Reported-by: syzbot+7d3575f2c06388e75dc4@syzkaller.appspotmail.com
First crash: 797d, last: 795d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: use-after-free Read in mon_bin_flush usb C inconclusive unreliable 15 635d 795d 0/28 auto-obsoleted due to no activity on 2023/06/25 03:47
android-5-10 KASAN: use-after-free Read in mon_bin_flush C error 2 795d 797d 2/2 fixed on 2022/10/19 01:02
android-5-15 KASAN: use-after-free Read in mon_bin_flush 1 769d 769d 0/2 auto-obsoleted due to no activity on 2023/01/14 11:53
Last patch testing requests (2)
Created Duration User Patch Repo Result
2023/04/20 20:51 21m retest repro android12-5.4 OK log
2023/04/20 20:51 16m retest repro android12-5.4 OK log

Sample crash report:
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

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/16 06:35 android12-5.4 ccdf6bdf62a8 dd9a85ff .config strace log report syz C [disk image] [vmlinux] ci2-android-5-4-kasan general protection fault in mon_bin_flush
2022/09/17 22:43 android12-5.4 f3665979a8e7 dd9a85ff .config console log report syz C [disk image] [vmlinux] ci2-android-5-4-kasan KASAN: slab-out-of-bounds Read in mon_bin_flush
* Struck through repros no longer work on HEAD.