syzbot


BUG: unable to handle kernel paging request in dvb_media_device_free

Status: auto-closed as invalid on 2022/03/11 23:40
Reported-by: syzbot+09e3e47723f2a16a8ea3@syzkaller.appspotmail.com
First crash: 238d, last: 238d

Sample crash report:
rc_core: IR keymap rc-dib0700-rc5 not found
Registered IR keymap rc-empty
dvb-usb: could not initialize remote control.
dvb-usb: PCTV 2002e SE successfully initialized and connected.
usb 3-1: USB disconnect, device number 88
BUG: unable to handle page fault for address: ffffed106388ba37
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 23ffed067 P4D 23ffed067 PUD 23ffeb067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4851 Comm: kworker/0:6 Not tainted 5.16.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:586 [inline]
RIP: 0010:__mutex_lock+0xec/0x12f0 kernel/locking/mutex.c:740
Code: d0 7c 08 84 d2 0f 85 65 0f 00 00 8b 15 dd 55 01 05 85 d2 75 29 48 8d 7d 60 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 5e 0f 00 00 48 3b 6d 60 0f 85 90 08 00 00 bf 01
RSP: 0018:ffffc90009f9f3f0 EFLAGS: 00010a02
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 1ffff1106388ba37 RSI: 0000000000000000 RDI: ffff88831c45d1b8
RBP: ffff88831c45d158 R08: ffffffff840d4b31 R09: ffffffff8a7b6817
R10: ffffffff84143ff0 R11: 0000000000050046 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000004280 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8881f6800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed106388ba37 CR3: 000000010da08000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 media_device_unregister_entity+0x41/0x70 drivers/media/mc/mc-device.c:688
 dvb_media_device_free+0x1d5/0x680 drivers/media/dvb-core/dvbdev.c:226
 dvb_remove_device.part.0+0x9c/0x260 drivers/media/dvb-core/dvbdev.c:568
 dvb_remove_device drivers/media/dvb-core/dvbdev.c:561 [inline]
 dvb_unregister_device+0x1b/0x60 drivers/media/dvb-core/dvbdev.c:590
 dvb_dmxdev_release+0x1a0/0x630 drivers/media/dvb-core/dmxdev.c:1459
 dvb_usb_adapter_dvb_exit+0x93/0x230 drivers/media/usb/dvb-usb/dvb-usb-dvb.c:224
 dvb_usb_adapter_exit drivers/media/usb/dvb-usb/dvb-usb-init.c:126 [inline]
 dvb_usb_exit drivers/media/usb/dvb-usb/dvb-usb-init.c:141 [inline]
 dvb_usb_device_exit+0x20a/0x510 drivers/media/usb/dvb-usb/dvb-usb-init.c:336
 usb_unbind_interface+0x1d8/0x8e0 drivers/usb/core/driver.c:458
 __device_release_driver+0x5d7/0x700 drivers/base/dd.c:1205
 device_release_driver_internal drivers/base/dd.c:1236 [inline]
 device_release_driver+0x26/0x40 drivers/base/dd.c:1259
 bus_remove_device+0x2eb/0x5a0 drivers/base/bus.c:529
 device_del+0x502/0xd60 drivers/base/core.c:3581
 usb_disable_device+0x35b/0x7b0 drivers/usb/core/message.c:1419
 usb_disconnect.cold+0x27a/0x78e drivers/usb/core/hub.c:2225
 hub_port_connect drivers/usb/core/hub.c:5197 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5497 [inline]
 port_event drivers/usb/core/hub.c:5643 [inline]
 hub_event+0x1c9c/0x4460 drivers/usb/core/hub.c:5725
 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298
 process_scheduled_works kernel/workqueue.c:2361 [inline]
 worker_thread+0x85c/0x11f0 kernel/workqueue.c:2447
 kthread+0x40b/0x500 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Modules linked in:
CR2: ffffed106388ba37
---[ end trace ff9e126a700064db ]---
RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:586 [inline]
RIP: 0010:__mutex_lock+0xec/0x12f0 kernel/locking/mutex.c:740
Code: d0 7c 08 84 d2 0f 85 65 0f 00 00 8b 15 dd 55 01 05 85 d2 75 29 48 8d 7d 60 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 5e 0f 00 00 48 3b 6d 60 0f 85 90 08 00 00 bf 01
RSP: 0018:ffffc90009f9f3f0 EFLAGS: 00010a02
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 1ffff1106388ba37 RSI: 0000000000000000 RDI: ffff88831c45d1b8
RBP: ffff88831c45d158 R08: ffffffff840d4b31 R09: ffffffff8a7b6817
R10: ffffffff84143ff0 R11: 0000000000050046 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000004280 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8881f6800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed106388ba37 CR3: 000000010da08000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	d0 7c 08 84          	sarb   -0x7c(%rax,%rcx,1)
   4:	d2 0f                	rorb   %cl,(%rdi)
   6:	85 65 0f             	test   %esp,0xf(%rbp)
   9:	00 00                	add    %al,(%rax)
   b:	8b 15 dd 55 01 05    	mov    0x50155dd(%rip),%edx        # 0x50155ee
  11:	85 d2                	test   %edx,%edx
  13:	75 29                	jne    0x3e
  15:	48 8d 7d 60          	lea    0x60(%rbp),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 5e 0f 00 00    	jne    0xf92
  34:	48 3b 6d 60          	cmp    0x60(%rbp),%rbp
  38:	0f 85 90 08 00 00    	jne    0x8ce
  3e:	bf                   	.byte 0xbf
  3f:	01                   	.byte 0x1

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-usb 2021/12/11 23:40 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d598c3c46ea6 49ca1f59 .config log report info BUG: unable to handle kernel paging request in dvb_media_device_free