RDX: 0000000000000000 RSI: 0000000000004c80 RDI: 0000000000000005 RBP: 00007fb12a2101d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffe6bbc968f R14: 00007fb12a210300 R15: 0000000000022000 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5263 at block/genhd.c:537 device_add_disk+0x60b/0xfc0 block/genhd.c:537 Modules linked in: CPU: 0 PID: 5263 Comm: syz-executor.1 Not tainted 5.15.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:device_add_disk+0x60b/0xfc0 block/genhd.c:537 Code: 8e ec 07 00 00 8b 5d 00 bf 03 01 00 00 89 de e8 3b 2e ad fd 81 fb 03 01 00 00 0f 85 69 fd ff ff e9 22 fd ff ff e8 e5 26 ad fd <0f> 0b 41 bc 01 00 00 00 e9 6a fd ff ff e8 d3 26 ad fd 0f 0b 41 bc RSP: 0018:ffffc90004acfdb8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000007 RCX: ffffc9000ab62000 RDX: 0000000000040000 RSI: ffffffff83c9b12b RDI: 0000000000000003 RBP: ffff88801b5a2000 R08: 0000000000000103 R09: ffff8880b9c32a0b R10: ffffffff83c9ae3c R11: 0000000000000000 R12: 00000000ffffffea R13: ffff88801b5a2080 R14: ffff88801b5a2008 R15: ffff888097286a00 FS: 00007fb12a210700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb12a20ff78 CR3: 0000000021544000 CR4: 0000000000350ef0 Call Trace: add_disk include/linux/genhd.h:221 [inline] loop_add+0x753/0x960 drivers/block/loop.c:2397 loop_control_ioctl+0x130/0x4a0 drivers/block/loop.c:2512 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fb12ccbba39 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb12a210188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fb12cdbf020 RCX: 00007fb12ccbba39 RDX: 0000000000000000 RSI: 0000000000004c80 RDI: 0000000000000005 RBP: 00007fb12a2101d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffe6bbc968f R14: 00007fb12a210300 R15: 0000000000022000