comedi comedi3: c6xdigio: I/O port conflict (0xffffffffffffffff,3) BUG: unable to handle page fault for address: ffffffff9c318c40 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD e189067 P4D e189067 PUD e18a063 PMD 0 Oops: Oops: 0000 [#1] SMP KASAN NOPTI CPU: 1 UID: 0 PID: 8976 Comm: syz.9.10403 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~bpo12+1 04/01/2014 RIP: 0010:variable_test_bit arch/x86/include/asm/bitops.h:222 [inline] RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:233 [inline] RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline] RIP: 0010:__lock_acquire+0x4de/0x22f0 kernel/locking/lockdep.c:5207 Code: 5c 24 08 85 c0 4c 8b 4c 24 10 4c 8b 54 24 18 74 0e 8b 05 55 e4 ed 0e 85 c0 0f 84 8e 06 00 00 90 31 c9 e9 1f fe ff ff 4d 63 c9 <4c> 0f a3 0d 4a 0c 19 14 0f 82 62 ff ff ff 90 e8 2e 37 0a 03 85 c0 RSP: 0018:ffffc90004627778 EFLAGS: 00010046 RAX: 0000000000000001 RBX: ffff88805a37d528 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffff88805a37d528 RDI: ffff88805a37c980 RBP: ffff88805a37c980 R08: 0000000000000000 R09: 0000000033faaf3d R10: ffff88805a37d4b0 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f8ebb6b96c0(0000) GS:ffff8880d6a69000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffff9c318c40 CR3: 000000003d9fc000 CR4: 0000000000352ef0 Call Trace: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x330 kernel/locking/lockdep.c:5825 down_write+0x92/0x200 kernel/locking/rwsem.c:1590 kernfs_remove_by_name_ns+0x3d/0x100 fs/kernfs/dir.c:1712 sysfs_remove_file include/linux/sysfs.h:770 [inline] driver_remove_file drivers/base/driver.c:201 [inline] driver_remove_file+0x4a/0x60 drivers/base/driver.c:197 remove_bind_files drivers/base/bus.c:605 [inline] bus_remove_driver+0x224/0x2c0 drivers/base/bus.c:743 driver_unregister+0x76/0xb0 drivers/base/driver.c:277 comedi_device_detach_locked+0x12f/0xa50 drivers/comedi/drivers.c:207 comedi_device_detach+0x67/0xb0 drivers/comedi/drivers.c:215 comedi_device_attach+0x43d/0x900 drivers/comedi/drivers.c:1011 do_devconfig_ioctl+0x1b1/0x710 drivers/comedi/comedi_fops.c:872 comedi_unlocked_ioctl+0x165d/0x2ee0 drivers/comedi/comedi_fops.c:2178 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8eba78f7c9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8ebb6b9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8eba9e5fa0 RCX: 00007f8eba78f7c9 RDX: 0000200000000280 RSI: 0000000040946400 RDI: 0000000000000003 RBP: 00007f8eba813f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8eba9e6038 R14: 00007f8eba9e5fa0 R15: 00007fffc2646238 Modules linked in: CR2: ffffffff9c318c40 ---[ end trace 0000000000000000 ]--- RIP: 0010:variable_test_bit arch/x86/include/asm/bitops.h:222 [inline] RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:233 [inline] RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline] RIP: 0010:__lock_acquire+0x4de/0x22f0 kernel/locking/lockdep.c:5207 Code: 5c 24 08 85 c0 4c 8b 4c 24 10 4c 8b 54 24 18 74 0e 8b 05 55 e4 ed 0e 85 c0 0f 84 8e 06 00 00 90 31 c9 e9 1f fe ff ff 4d 63 c9 <4c> 0f a3 0d 4a 0c 19 14 0f 82 62 ff ff ff 90 e8 2e 37 0a 03 85 c0 RSP: 0018:ffffc90004627778 EFLAGS: 00010046 RAX: 0000000000000001 RBX: ffff88805a37d528 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffff88805a37d528 RDI: ffff88805a37c980 RBP: ffff88805a37c980 R08: 0000000000000000 R09: 0000000033faaf3d R10: ffff88805a37d4b0 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f8ebb6b96c0(0000) GS:ffff8880d6a69000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffff9c318c40 CR3: 000000003d9fc000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 5c pop %rsp 1: 24 08 and $0x8,%al 3: 85 c0 test %eax,%eax 5: 4c 8b 4c 24 10 mov 0x10(%rsp),%r9 a: 4c 8b 54 24 18 mov 0x18(%rsp),%r10 f: 74 0e je 0x1f 11: 8b 05 55 e4 ed 0e mov 0xeede455(%rip),%eax # 0xeede46c 17: 85 c0 test %eax,%eax 19: 0f 84 8e 06 00 00 je 0x6ad 1f: 90 nop 20: 31 c9 xor %ecx,%ecx 22: e9 1f fe ff ff jmp 0xfffffe46 27: 4d 63 c9 movslq %r9d,%r9 * 2a: 4c 0f a3 0d 4a 0c 19 bt %r9,0x14190c4a(%rip) # 0x14190c7c <-- trapping instruction 31: 14 32: 0f 82 62 ff ff ff jb 0xffffff9a 38: 90 nop 39: e8 2e 37 0a 03 call 0x30a376c 3e: 85 c0 test %eax,%eax