XFS (loop2): Metadata I/O Error (0x4) detected at xfs_fs_goingdown+0x71/0x150 (fs/xfs/xfs_fsops.c:472).  Shutting down filesystem.
XFS (loop2): Please unmount the filesystem and rectify the problem(s)
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
CPU: 0 UID: 0 PID: 12821 Comm: syz.2.1203 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:pcl818_ai_cancel+0x69/0x3f0
Code: 8b 1b 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 89 d8 35 f9 48 8b 03 48 89 04 24 49 83 c4 28 4c 89 e0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 e7 e8 68 d8 35 f9 4d 8b 24 24 48 83 c3
RSP: 0018:ffffc900060b7a60 EFLAGS: 00010206
RAX: 0000000000000005 RBX: ffff8881245aee80 RCX: 0000000000080000
RDX: ffffc9000ad49000 RSI: 00000000000003bc RDI: 00000000000003bd
RBP: 0000000000000001 R08: ffff88810f4b692f R09: 1ffff11021e96d25
R10: dffffc0000000000 R11: ffffffff88ed2250 R12: 0000000000000028
R13: dffffc0000000000 R14: ffff88810f4b6800 R15: dffffc0000000000
FS:  00007f30d4df36c0(0000) GS:ffff8880b8615000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000000 CR3: 00000001228c4000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 pcl818_detach+0x66/0xd0
 comedi_device_detach_locked+0x178/0x750
 comedi_unlocked_ioctl+0xcde/0x1020
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f30d3f8eba9
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:00007f30d4df3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f30d41d5fa0 RCX: 00007f30d3f8eba9
RDX: 0000000000000000 RSI: 0000000040946400 RDI: 000000000000000b
RBP: 00007f30d4011e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f30d41d6038 R14: 00007f30d41d5fa0 R15: 00007fff5c67a4d8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:pcl818_ai_cancel+0x69/0x3f0
Code: 8b 1b 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 89 d8 35 f9 48 8b 03 48 89 04 24 49 83 c4 28 4c 89 e0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 e7 e8 68 d8 35 f9 4d 8b 24 24 48 83 c3
RSP: 0018:ffffc900060b7a60 EFLAGS: 00010206
RAX: 0000000000000005 RBX: ffff8881245aee80 RCX: 0000000000080000
RDX: ffffc9000ad49000 RSI: 00000000000003bc RDI: 00000000000003bd
RBP: 0000000000000001 R08: ffff88810f4b692f R09: 1ffff11021e96d25
R10: dffffc0000000000 R11: ffffffff88ed2250 R12: 0000000000000028
R13: dffffc0000000000 R14: ffff88810f4b6800 R15: dffffc0000000000
FS:  00007f30d4df36c0(0000) GS:ffff8880b8615000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c40d899 CR3: 00000001228c4000 CR4: 00000000000006f0
