RBP: 00007f1bd174d120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f1bd24eaf80 R15: 00007ffcac0cb998 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 3905 at block/genhd.c:543 device_add_disk+0x746/0xd10 block/genhd.c:541 Modules linked in: CPU: 0 PID: 3905 Comm: syz-executor.0 Not tainted 5.15.170-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:device_add_disk+0x746/0xd10 block/genhd.c:543 Code: 04 4c 89 f0 48 c1 e8 03 0f b6 04 28 84 c0 0f 85 b6 04 00 00 41 8b 36 48 c7 c7 e0 68 ef 8c e8 11 ab 39 00 eb 05 e8 8a f8 8d fd <0f> 0b bd 01 00 00 00 89 e8 48 83 c4 70 5b 41 5c 41 5d 41 5e 41 5f RSP: 0018:ffffc90003277d38 EFLAGS: 00010293 RAX: ffffffff83f27b36 RBX: 0000000000000007 RCX: ffff8880203d5940 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000103 RBP: dffffc0000000000 R08: ffffffff83f27afc R09: ffffed1028b7c300 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff11003e2c394 R13: ffff888145be1780 R14: ffff88801f161c00 R15: 1ffff11028b7c2ff FS: 00007f1bd174d6c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d02e988131 CR3: 000000001dbc6000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: add_disk include/linux/genhd.h:200 [inline] loop_add+0x5f2/0x880 drivers/block/loop.c:2430 loop_control_ioctl+0x115/0x700 drivers/block/loop.c:2545 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f1bd23cbb29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1bd174d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f1bd24eaf80 RCX: 00007f1bd23cbb29 RDX: 00000000fdfdffff RSI: 0000000000004c80 RDI: 0000000000000003 RBP: 00007f1bd174d120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f1bd24eaf80 R15: 00007ffcac0cb998