tc90522 5-0018: Toshiba TC90522 attached. usb 5-1: DVB: registering adapter 5 frontend 0 (Toshiba TC90522 ISDB-T module)... dvbdev: dvb_create_media_entity: media entity 'Toshiba TC90522 ISDB-T module' registered. ============================================ WARNING: possible recursive locking detected 5.4.0-syzkaller #0 Not tainted -------------------------------------------- kworker/0:4/3278 is trying to acquire lock: ffff8881b594c208 (i2c_register_adapter){+.+.}, at: i2c_lock_bus include/linux/i2c.h:767 [inline] ffff8881b594c208 (i2c_register_adapter){+.+.}, at: __i2c_lock_bus_helper drivers/i2c/i2c-core.h:44 [inline] ffff8881b594c208 (i2c_register_adapter){+.+.}, at: i2c_transfer+0x1d3/0x3b0 drivers/i2c/i2c-core-base.c:2015 but task is already holding lock: ffff8881ca5425c0 (i2c_register_adapter){+.+.}, at: i2c_lock_bus include/linux/i2c.h:767 [inline] ffff8881ca5425c0 (i2c_register_adapter){+.+.}, at: __i2c_lock_bus_helper drivers/i2c/i2c-core.h:44 [inline] ffff8881ca5425c0 (i2c_register_adapter){+.+.}, at: i2c_transfer+0x1d3/0x3b0 drivers/i2c/i2c-core-base.c:2015 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(i2c_register_adapter); lock(i2c_register_adapter); *** DEADLOCK *** May be due to missing lock nesting notation 7 locks held by kworker/0:4/3278: #0: ffff8881d93ed528 ((wq_completion)usb_hub_wq){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8881d93ed528 ((wq_completion)usb_hub_wq){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881d93ed528 ((wq_completion)usb_hub_wq){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8881d93ed528 ((wq_completion)usb_hub_wq){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8881d93ed528 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8881d93ed528 ((wq_completion)usb_hub_wq){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8881d93ed528 ((wq_completion)usb_hub_wq){+.+.}, at: process_one_work+0x827/0x1530 kernel/workqueue.c:2235 #1: ffff8881aecb7dd0 ((work_completion)(&hub->events)){+.+.}, at: process_one_work+0x85b/0x1530 kernel/workqueue.c:2239 #2: ffff8881d56bd200 (&dev->mutex){....}, at: device_lock include/linux/device.h:1493 [inline] #2: ffff8881d56bd200 (&dev->mutex){....}, at: hub_event+0x1b2/0x3860 drivers/usb/core/hub.c:5498 #3: ffff8881ace0d200 (&dev->mutex){....}, at: device_lock include/linux/device.h:1493 [inline] #3: ffff8881ace0d200 (&dev->mutex){....}, at: __device_attach+0x7b/0x360 drivers/base/dd.c:871 #4: ffff8881d8c1d190 (&dev->mutex){....}, at: device_lock include/linux/device.h:1493 [inline] #4: ffff8881d8c1d190 (&dev->mutex){....}, at: __device_attach+0x7b/0x360 drivers/base/dd.c:871 #5: ffff8881d617d180 (&dev->mutex){....}, at: device_lock include/linux/device.h:1493 [inline] #5: ffff8881d617d180 (&dev->mutex){....}, at: __device_attach+0x7b/0x360 drivers/base/dd.c:871 #6: ffff8881ca5425c0 (i2c_register_adapter){+.+.}, at: i2c_lock_bus include/linux/i2c.h:767 [inline] #6: ffff8881ca5425c0 (i2c_register_adapter){+.+.}, at: __i2c_lock_bus_helper drivers/i2c/i2c-core.h:44 [inline] #6: ffff8881ca5425c0 (i2c_register_adapter){+.+.}, at: i2c_transfer+0x1d3/0x3b0 drivers/i2c/i2c-core-base.c:2015 stack backtrace: CPU: 0 PID: 3278 Comm: kworker/0:4 Not tainted 5.4.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0xef/0x16e lib/dump_stack.c:118 print_deadlock_bug kernel/locking/lockdep.c:2371 [inline] check_deadlock kernel/locking/lockdep.c:2412 [inline] validate_chain kernel/locking/lockdep.c:2955 [inline] __lock_acquire.cold+0x114/0x288 kernel/locking/lockdep.c:3955 lock_acquire+0x127/0x320 kernel/locking/lockdep.c:4485 __rt_mutex_lock kernel/locking/rtmutex.c:1471 [inline] rt_mutex_lock_nested+0x3e/0x60 kernel/locking/rtmutex.c:1484 i2c_lock_bus include/linux/i2c.h:767 [inline] __i2c_lock_bus_helper drivers/i2c/i2c-core.h:44 [inline] i2c_transfer+0x1d3/0x3b0 drivers/i2c/i2c-core-base.c:2015 tc90522_master_xfer.part.0+0x65c/0xbf0 drivers/media/dvb-frontends/tc90522.c:708 tc90522_master_xfer+0x35/0x4e drivers/media/dvb-frontends/tc90522.c:643 __i2c_transfer drivers/i2c/i2c-core-base.c:1958 [inline] __i2c_transfer+0x49d/0x1620 drivers/i2c/i2c-core-base.c:1923 i2c_transfer drivers/i2c/i2c-core-base.c:2019 [inline] i2c_transfer+0x1e6/0x3b0 drivers/i2c/i2c-core-base.c:1990 dvb_pll_attach+0x228/0x850 drivers/media/dvb-frontends/dvb-pll.c:816 dvb_pll_probe+0xfe/0x174 drivers/media/dvb-frontends/dvb-pll.c:884 i2c_device_probe+0x74e/0xa40 drivers/i2c/i2c-core-base.c:389 really_probe+0x281/0x6d0 drivers/base/dd.c:548 driver_probe_device+0x104/0x210 drivers/base/dd.c:721 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:828 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:430 __device_attach+0x217/0x360 drivers/base/dd.c:894 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:490 device_add+0x1480/0x1c20 drivers/base/core.c:2487 i2c_new_client_device+0x57f/0x9b0 drivers/i2c/i2c-core-base.c:777 i2c_new_device+0x19/0x50 drivers/i2c/i2c-core-base.c:820 dvb_module_probe+0xf9/0x220 drivers/media/dvb-core/dvbdev.c:986 friio_tuner_attach+0x12b/0x1d0 drivers/media/usb/dvb-usb-v2/gl861.c:457 dvb_usbv2_adapter_frontend_init drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:676 [inline] dvb_usbv2_adapter_init drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:805 [inline] dvb_usbv2_init drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:866 [inline] dvb_usbv2_probe.cold+0x2550/0x25d7 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:981 usb_probe_interface+0x305/0x7a0 drivers/usb/core/driver.c:361 really_probe+0x281/0x6d0 drivers/base/dd.c:548 driver_probe_device+0x104/0x210 drivers/base/dd.c:721 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:828 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:430 __device_attach+0x217/0x360 drivers/base/dd.c:894 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:490 device_add+0x1480/0x1c20 drivers/base/core.c:2487 usb_set_configuration+0xe67/0x1740 drivers/usb/core/message.c:2023 generic_probe+0x9d/0xd5 drivers/usb/core/generic.c:210 usb_probe_device+0x99/0x100 drivers/usb/core/driver.c:266 really_probe+0x281/0x6d0 drivers/base/dd.c:548 driver_probe_device+0x104/0x210 drivers/base/dd.c:721 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:828 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:430 __device_attach+0x217/0x360 drivers/base/dd.c:894 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:490 device_add+0x1480/0x1c20 drivers/base/core.c:2487 usb_new_device.cold+0x6a4/0xe79 drivers/usb/core/hub.c:2537 hub_port_connect drivers/usb/core/hub.c:5184 [inline] hub_port_connect_change drivers/usb/core/hub.c:5324 [inline] port_event drivers/usb/core/hub.c:5470 [inline] hub_event+0x1e59/0x3860 drivers/usb/core/hub.c:5552 process_one_work+0x92b/0x1530 kernel/workqueue.c:2264 worker_thread+0x96/0xe20 kernel/workqueue.c:2410 kthread+0x318/0x420 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 dvb_pll: probe of 6-0060 failed with error -12 usb 5-1: USB disconnect, device number 87 usb 2-1: new high-speed USB device number 5 using dummy_hcd usb 2-1: Using ep0 maxpacket: 32 usb 2-1: unable to get BOS descriptor or descriptor too short usb 2-1: unable to read config index 0 descriptor/start: -71 usb 2-1: can't read configurations, error -71 usb 2-1: new high-speed USB device number 6 using dummy_hcd usb 2-1: Using ep0 maxpacket: 32 usb 2-1: unable to get BOS descriptor or descriptor too short usb 2-1: unable to read config index 0 descriptor/start: -71 usb 2-1: can't read configurations, error -71 usb usb2-port1: attempt power cycle usb 2-1: new high-speed USB device number 7 using dummy_hcd usb 2-1: Using ep0 maxpacket: 8 usb 2-1: config 0 has an invalid interface number: 65 but max is 0 usb 2-1: config 0 has no interface number 0 usb 2-1: config 0 interface 65 altsetting 0 endpoint 0xF has an invalid bInterval 0, changing to 7 usb 2-1: config 0 interface 65 altsetting 0 endpoint 0xF has wMaxPacketSize 0, skipping usb 2-1: config 0 interface 65 altsetting 0 endpoint 0x83 has an invalid bInterval 27, changing to 8 usb 2-1: New USB device found, idVendor=12ab, idProduct=90a1, bcdDevice=1e.eb usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 2-1: config 0 descriptor?? xpad 2-1:0.65: xpad_try_sending_next_out_packet - usb_submit_urb failed with result -90 input: Generic X-Box pad as /devices/platform/dummy_hcd.1/usb2/2-1/2-1:0.65/input/input339 usb 4-1: new high-speed USB device number 9 using dummy_hcd usb 4-1: Using ep0 maxpacket: 32 usb 4-1: config 0 has an invalid interface number: 68 but max is 0 usb 4-1: config 0 has no interface number 0 usb 4-1: New USB device found, idVendor=046d, idProduct=0a0e, bcdDevice= b.ae usb 4-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 4-1: config 0 descriptor?? (null): keene_cmd_main failed (-71) video4linux radio0: keene_cmd_main failed (-71) radio-keene 4-1:0.68: V4L2 device registered as radio0 usb 4-1: USB disconnect, device number 9 usb 6-1: USB disconnect, device number 11 usb 2-1: USB disconnect, device number 9 xpad 2-1:0.65: xpad_try_sending_next_out_packet - usb_submit_urb failed with result -19