R13: 00007fff7b9acc7f R14: 00007fa016a46300 R15: 0000000000022000 ---[ end trace 4b6332a5a8263b9f ]--- stack segment: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 4461 Comm: syz-executor.5 Tainted: G W 5.4.197-syzkaller-00110-g2bde2e268ec7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 RIP: 0010:kill_device drivers/base/core.c:3022 [inline] RIP: 0010:device_del+0x9f/0xf40 drivers/base/core.c:3049 Code: 74 08 4c 89 e7 e8 b1 5c 10 ff 48 89 5c 24 10 41 bf c8 00 00 00 4d 03 3c 24 4c 89 fd 48 c1 ed 03 48 b8 00 00 00 00 00 fc ff df <8a> 44 05 00 84 c0 0f 85 17 0e 00 00 41 0f b6 1f 89 de 83 e6 01 31 RSP: 0018:ffff8881db447cb8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff11035ec141b RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff8881db447c78 RBP: 0000000000000019 R08: dffffc0000000000 R09: ffffed103b688f90 R10: ffffed103b688f90 R11: 1ffff1103b688f8f R12: ffff8881af60a0d8 R13: ffff8881af60a070 R14: ffff8881af60a110 R15: 00000000000000c8 FS: 00007fa016a46700(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f31a5ae19d0 CR3: 00000001ee01d000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: del_gendisk+0x93f/0xb60 block/genhd.c:835 loop_remove+0x42/0xa0 drivers/block/loop.c:2189 loop_control_ioctl+0x547/0x600 drivers/block/loop.c:2288 do_vfs_ioctl+0x6d1/0x15b0 fs/ioctl.c:47 ksys_ioctl fs/ioctl.c:742 [inline] __do_sys_ioctl fs/ioctl.c:749 [inline] __se_sys_ioctl fs/ioctl.c:747 [inline] __x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:747 do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fa017912209 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa016a46168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fa017a25100 RCX: 00007fa017912209 RDX: 0000000000000000 RSI: 0000000000004c81 RDI: 0000000000000006 RBP: 00007fa01796c161 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff7b9acc7f R14: 00007fa016a46300 R15: 0000000000022000 Modules linked in: ---[ end trace 4b6332a5a8263ba0 ]--- RIP: 0010:kill_device drivers/base/core.c:3022 [inline] RIP: 0010:device_del+0x9f/0xf40 drivers/base/core.c:3049 Code: 74 08 4c 89 e7 e8 b1 5c 10 ff 48 89 5c 24 10 41 bf c8 00 00 00 4d 03 3c 24 4c 89 fd 48 c1 ed 03 48 b8 00 00 00 00 00 fc ff df <8a> 44 05 00 84 c0 0f 85 17 0e 00 00 41 0f b6 1f 89 de 83 e6 01 31 RSP: 0018:ffff8881db447cb8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff11035ec141b RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff8881db447c78 RBP: 0000000000000019 R08: dffffc0000000000 R09: ffffed103b688f90 R10: ffffed103b688f90 R11: 1ffff1103b688f8f R12: ffff8881af60a0d8 R13: ffff8881af60a070 R14: ffff8881af60a110 R15: 00000000000000c8 FS: 00007fa016a46700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f31a6a7df50 CR3: 00000001ee01d000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 74 08 je 0xa 2: 4c 89 e7 mov %r12,%rdi 5: e8 b1 5c 10 ff callq 0xff105cbb a: 48 89 5c 24 10 mov %rbx,0x10(%rsp) f: 41 bf c8 00 00 00 mov $0xc8,%r15d 15: 4d 03 3c 24 add (%r12),%r15 19: 4c 89 fd mov %r15,%rbp 1c: 48 c1 ed 03 shr $0x3,%rbp 20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 27: fc ff df * 2a: 8a 44 05 00 mov 0x0(%rbp,%rax,1),%al <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 17 0e 00 00 jne 0xe4d 36: 41 0f b6 1f movzbl (%r15),%ebx 3a: 89 de mov %ebx,%esi 3c: 83 e6 01 and $0x1,%esi 3f: 31 .byte 0x31