------------[ cut here ]------------ Device '2-002c' does not have a release() function, it is broken and must be fixed. See Documentation/core-api/kobject.rst. WARNING: drivers/base/core.c:2638 at device_release+0x1da/0x270 drivers/base/core.c:2638, CPU#2: syz.1.2158/13599 Modules linked in: CPU: 2 UID: 0 PID: 13599 Comm: syz.1.2158 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:device_release+0x1dd/0x270 drivers/base/core.c:2638 Code: df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 93 00 00 00 48 8b 6b 50 48 85 ed 74 19 e8 0d 0a ae fb 48 8d 3d f6 88 d2 0a 48 89 ee <67> 48 0f b9 3a e9 eb fe ff ff e8 f4 09 ae fb 48 89 da 48 b8 00 00 RSP: 0018:ffffc90005987a38 EFLAGS: 00010283 RAX: 0000000000003cc7 RBX: ffff8880278d0020 RCX: ffffc90006cc1000 RDX: 0000000000080000 RSI: ffff888013dcbaa0 RDI: ffffffff912ee3d0 RBP: ffff888013dcbaa0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88804b088000 R13: dffffc0000000000 R14: ffff888013dcbaa0 R15: 0000000000000000 FS: 00007f45b43f66c0(0000) GS:ffff8880d5fd8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd9e16d030 CR3: 0000000033d71000 CR4: 0000000000352ef0 DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000002 DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x1f7/0x640 lib/kobject.c:737 put_device drivers/base/core.c:3880 [inline] device_unregister+0x2f/0xe0 drivers/base/core.c:4003 i2c_unregister_device+0xf5/0x270 drivers/i2c/i2c-core-base.c:1075 i2c_deregister_clients+0x255/0x460 drivers/i2c/i2c-core-base.c:1782 i2c_del_adapter+0x124/0x2d0 drivers/i2c/i2c-core-base.c:1820 i801_remove+0xa4/0x3d0 drivers/i2c/busses/i2c-i801.c:1696 pci_device_remove+0xb2/0x1d0 drivers/pci/pci-driver.c:512 device_remove+0xcb/0x180 drivers/base/dd.c:616 __device_release_driver drivers/base/dd.c:1349 [inline] device_release_driver_internal+0x44e/0x620 drivers/base/dd.c:1372 unbind_store+0xf8/0x110 drivers/base/bus.c:244 drv_attr_store+0x74/0xb0 drivers/base/bus.c:125 sysfs_kf_write+0xf2/0x150 fs/sysfs/file.c:145 kernfs_fop_write_iter+0x3e0/0x5f0 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1050 fs/read_write.c:687 ksys_write+0x12a/0x250 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f45b619e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f45b43f6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f45b6425fa0 RCX: 00007f45b619e0d9 RDX: 000000000000000c RSI: 0000200000000140 RDI: 0000000000000004 RBP: 00007f45b6235024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f45b6426038 R14: 00007f45b6425fa0 R15: 00007ffd9e16cc38 ---------------- Code disassembly (best guess): 0: df 48 89 fisttps -0x77(%rax) 3: fa cli 4: 48 c1 ea 03 shr $0x3,%rdx 8: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) c: 0f 85 93 00 00 00 jne 0xa5 12: 48 8b 6b 50 mov 0x50(%rbx),%rbp 16: 48 85 ed test %rbp,%rbp 19: 74 19 je 0x34 1b: e8 0d 0a ae fb call 0xfbae0a2d 20: 48 8d 3d f6 88 d2 0a lea 0xad288f6(%rip),%rdi # 0xad2891d 27: 48 89 ee mov %rbp,%rsi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e9 eb fe ff ff jmp 0xffffff1f 34: e8 f4 09 ae fb call 0xfbae0a2d 39: 48 89 da mov %rbx,%rdx 3c: 48 rex.W 3d: b8 .byte 0xb8