syzbot


general protection fault in em28xx_resolution_set

Status: moderation: reported on 2024/11/14 06:51
Subsystems: media
[Documentation on labels]
Reported-by: syzbot+9c300895a6643c4ae78f@syzkaller.appspotmail.com
First crash: 33d, last: 33d

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000350: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: probably user-memory-access in range [0x0000000000001a80-0x0000000000001a87]
CPU: 1 UID: 0 PID: 27957 Comm: v4l_id Not tainted 6.12.0-rc6-syzkaller-00103-g226ff2e681d0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:norm_maxh drivers/media/usb/em28xx/em28xx-video.c:149 [inline]
RIP: 0010:em28xx_resolution_set.isra.0+0xe8/0x7a0 drivers/media/usb/em28xx/em28xx-video.c:317
Code: 0f 85 33 06 00 00 44 0f b6 a3 3c 01 00 00 48 8d bd 80 1a 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 41 83 e4 10 <80> 3c 02 00 0f 85 7f 06 00 00 48 8b 85 80 1a 00 00 31 ff 44 89 e6
RSP: 0018:ffffc900048777d8 EFLAGS: 00010246

RAX: dffffc0000000000 RBX: ffff88813a508000 RCX: ffffffff85302473
RDX: 0000000000000350 RSI: ffffffff8530029d RDI: 0000000000001a80
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000002
R10: 0000000000000000 R11: ffffffff8ee4f868 R12: 0000000000000000
R13: ffff88813954c788 R14: ffff88813a50813c R15: 0000000000000000
FS:  00007f5bf61eec80(0000) GS:ffff8881f5900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f961e1c7a8c CR3: 0000000111f52000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 em28xx_v4l2_open+0x5bd/0x7e0 drivers/media/usb/em28xx/em28xx-video.c:2168
 v4l2_open+0x222/0x490 drivers/media/v4l2-core/v4l2-dev.c:427
 chrdev_open+0x237/0x6a0 fs/char_dev.c:414
 do_dentry_open+0x6cb/0x1390 fs/open.c:958
 vfs_open+0x82/0x3f0 fs/open.c:1088
 do_open fs/namei.c:3774 [inline]
 path_openat+0x1e6a/0x2d60 fs/namei.c:3933
 do_filp_open+0x1dc/0x430 fs/namei.c:3960
 do_sys_openat2+0x17a/0x1e0 fs/open.c:1415
 do_sys_open fs/open.c:1430 [inline]
 __do_sys_openat fs/open.c:1446 [inline]
 __se_sys_openat fs/open.c:1441 [inline]
 __x64_sys_openat+0x175/0x210 fs/open.c:1441
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5bf63199a4
Code: 24 20 48 8d 44 24 30 48 89 44 24 28 64 8b 04 25 18 00 00 00 85 c0 75 2c 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 60 48 8b 15 55 a4 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffe10863030 EFLAGS: 00000246
 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007ffe10863248 RCX: 00007f5bf63199a4
RDX: 0000000000000000 RSI: 00007ffe10864f23 RDI: 00000000ffffff9c
RBP: 00007ffe10864f23 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe10863260 R14: 0000557b318f8670 R15: 00007f5bf6768a80
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:norm_maxh drivers/media/usb/em28xx/em28xx-video.c:149 [inline]
RIP: 0010:em28xx_resolution_set.isra.0+0xe8/0x7a0 drivers/media/usb/em28xx/em28xx-video.c:317
Code: 0f 85 33 06 00 00 44 0f b6 a3 3c 01 00 00 48 8d bd 80 1a 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 41 83 e4 10 <80> 3c 02 00 0f 85 7f 06 00 00 48 8b 85 80 1a 00 00 31 ff 44 89 e6
RSP: 0018:ffffc900048777d8 EFLAGS: 00010246

RAX: dffffc0000000000 RBX: ffff88813a508000 RCX: ffffffff85302473
RDX: 0000000000000350 RSI: ffffffff8530029d RDI: 0000000000001a80
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000002
R10: 0000000000000000 R11: ffffffff8ee4f868 R12: 0000000000000000
R13: ffff88813954c788 R14: ffff88813a50813c R15: 0000000000000000
FS:  00007f5bf61eec80(0000) GS:ffff8881f5900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f961e1c7a8c CR3: 0000000111f52000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	0f 85 33 06 00 00    	jne    0x639
   6:	44 0f b6 a3 3c 01 00 	movzbl 0x13c(%rbx),%r12d
   d:	00
   e:	48 8d bd 80 1a 00 00 	lea    0x1a80(%rbp),%rdi
  15:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1c:	fc ff df
  1f:	48 89 fa             	mov    %rdi,%rdx
  22:	48 c1 ea 03          	shr    $0x3,%rdx
  26:	41 83 e4 10          	and    $0x10,%r12d
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 7f 06 00 00    	jne    0x6b3
  34:	48 8b 85 80 1a 00 00 	mov    0x1a80(%rbp),%rax
  3b:	31 ff                	xor    %edi,%edi
  3d:	44 89 e6             	mov    %r12d,%esi

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/10 06:46 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 226ff2e681d0 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in em28xx_resolution_set
* Struck through repros no longer work on HEAD.