comedi comedi3: c6xdigio: I/O port conflict (0x4f2b,3) BUG: unable to handle page fault for address: ffffffff8b4cffd8 #PF: supervisor write access in kernel mode #PF: error_code(0x0003) - permissions violation PGD e385067 P4D e385067 PUD e386063 PMD b4001a1 Oops: Oops: 0003 [#1] SMP KASAN NOPTI CPU: 2 UID: 0 PID: 15139 Comm: syz.0.2550 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:arch_atomic64_try_cmpxchg arch/x86/include/asm/atomic64_64.h:101 [inline] RIP: 0010:raw_atomic64_try_cmpxchg_acquire include/linux/atomic/atomic-arch-fallback.h:4296 [inline] RIP: 0010:raw_atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-long.h:1482 [inline] RIP: 0010:atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:4458 [inline] RIP: 0010:rwsem_write_trylock kernel/locking/rwsem.c:268 [inline] RIP: 0010:__down_write_common kernel/locking/rwsem.c:1316 [inline] RIP: 0010:__down_write kernel/locking/rwsem.c:1326 [inline] RIP: 0010:down_write+0xcb/0x200 kernel/locking/rwsem.c:1591 Code: 48 89 df 48 c7 44 24 28 00 00 00 00 e8 fe 26 8e f6 be 08 00 00 00 48 8d 7c 24 28 e8 ef 26 8e f6 ba 01 00 00 00 48 8b 44 24 28 48 0f b1 13 0f 94 c0 5a 84 c0 0f 84 ed 00 00 00 48 c7 c0 44 a8 RSP: 0018:ffffc90003157670 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffffff8b4cffd8 RCX: ffffffff8b924ca1 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc90003157698 RBP: 1ffff9200062aecf R08: 0000000000000001 R09: fffff5200062aed3 R10: ffffc9000315769f R11: 63206964656d6f63 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880453bd000 FS: 0000000000000000(0000) GS:ffff8880976c4000(0063) knlGS:00000000f5485b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: ffffffff8b4cffd8 CR3: 000000001c71d000 CR4: 0000000000352ef0 Call Trace: kernfs_remove_by_name_ns+0x3d/0x110 fs/kernfs/dir.c:1712 sysfs_remove_file include/linux/sysfs.h:777 [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+0x12c/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:1010 do_devconfig_ioctl+0x1b1/0x710 drivers/comedi/comedi_fops.c:872 comedi_unlocked_ioctl+0x165d/0x2f00 drivers/comedi/comedi_fops.c:2173 comedi_compat_ioctl+0x1d0/0x990 drivers/comedi/comedi_fops.c:3244 __do_compat_sys_ioctl fs/ioctl.c:696 [inline] __se_compat_sys_ioctl fs/ioctl.c:639 [inline] __ia32_compat_sys_ioctl+0x23f/0x370 fs/ioctl.c:639 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7f84579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f548555c EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000040946400 RDX: 00000000800000c0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: CR2: ffffffff8b4cffd8 ---[ end trace 0000000000000000 ]--- RIP: 0010:arch_atomic64_try_cmpxchg arch/x86/include/asm/atomic64_64.h:101 [inline] RIP: 0010:raw_atomic64_try_cmpxchg_acquire include/linux/atomic/atomic-arch-fallback.h:4296 [inline] RIP: 0010:raw_atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-long.h:1482 [inline] RIP: 0010:atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:4458 [inline] RIP: 0010:rwsem_write_trylock kernel/locking/rwsem.c:268 [inline] RIP: 0010:__down_write_common kernel/locking/rwsem.c:1316 [inline] RIP: 0010:__down_write kernel/locking/rwsem.c:1326 [inline] RIP: 0010:down_write+0xcb/0x200 kernel/locking/rwsem.c:1591 Code: 48 89 df 48 c7 44 24 28 00 00 00 00 e8 fe 26 8e f6 be 08 00 00 00 48 8d 7c 24 28 e8 ef 26 8e f6 ba 01 00 00 00 48 8b 44 24 28 48 0f b1 13 0f 94 c0 5a 84 c0 0f 84 ed 00 00 00 48 c7 c0 44 a8 RSP: 0018:ffffc90003157670 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffffff8b4cffd8 RCX: ffffffff8b924ca1 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc90003157698 RBP: 1ffff9200062aecf R08: 0000000000000001 R09: fffff5200062aed3 R10: ffffc9000315769f R11: 63206964656d6f63 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880453bd000 FS: 0000000000000000(0000) GS:ffff8880976c4000(0063) knlGS:00000000f5485b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: ffffffff8b4cffd8 CR3: 000000001c71d000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 48 89 df mov %rbx,%rdi 3: 48 c7 44 24 28 00 00 movq $0x0,0x28(%rsp) a: 00 00 c: e8 fe 26 8e f6 call 0xf68e270f 11: be 08 00 00 00 mov $0x8,%esi 16: 48 8d 7c 24 28 lea 0x28(%rsp),%rdi 1b: e8 ef 26 8e f6 call 0xf68e270f 20: ba 01 00 00 00 mov $0x1,%edx 25: 48 8b 44 24 28 mov 0x28(%rsp),%rax * 2a: f0 48 0f b1 13 lock cmpxchg %rdx,(%rbx) <-- trapping instruction 2f: 0f 94 c0 sete %al 32: 5a pop %rdx 33: 84 c0 test %al,%al 35: 0f 84 ed 00 00 00 je 0x128 3b: 48 rex.W 3c: c7 .byte 0xc7 3d: c0 .byte 0xc0 3e: 44 rex.R 3f: a8 .byte 0xa8