R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 3501 at block/genhd.c:546 device_add_disk+0x988/0xc50 block/genhd.c:544 Modules linked in: CPU: 0 PID: 3501 Comm: syz-executor230 Not tainted 5.15.118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:device_add_disk+0x988/0xc50 block/genhd.c:546 Code: 4c 89 e8 48 c1 e8 03 0f b6 04 28 84 c0 0f 85 56 01 00 00 41 8b 75 00 48 c7 c7 a0 80 ee 8c e8 2f b9 39 00 eb 05 e8 08 9c 90 fd <0f> 0b bd 01 00 00 00 89 e8 48 81 c4 88 00 00 00 5b 41 5c 41 5d 41 RSP: 0018:ffffc90002c1fd20 EFLAGS: 00010293 RAX: ffffffff83ef5e48 RBX: 0000000000000007 RCX: ffff8880131a8000 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000103 RBP: dffffc0000000000 R08: ffffffff83ef5e0d R09: ffffed102810cbd0 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff888075703000 R14: 1ffff1100eae0600 R15: ffff888140865e40 FS: 00005555571bf300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f76677919a0 CR3: 0000000071ac7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: add_disk include/linux/genhd.h:212 [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+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f7667762069 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc7764ba08 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f7667762069 RDX: 00000000fdfdffff RSI: 0000000000004c80 RDI: 0000000000000003 RBP: 00007ffc7764ba20 R08: 0000000000000002 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000