loop0: detected capacity change from 0 to 4096 MTD: Attempt to mount non-MTD device "/dev/loop0" ------------[ cut here ]------------ kernel BUG at fs/buffer.c:1582! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5318 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:folio_set_bh+0x1dc/0x1e0 fs/buffer.c:1582 Code: 4c 89 e2 e8 d6 30 79 02 e9 42 ff ff ff e8 5c aa 75 ff 48 89 df 48 c7 c6 e0 24 7a 8b e8 8d 85 dd fe 90 0f 0b e8 45 aa 75 ff 90 <0f> 0b 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f RSP: 0018:ffffc9000ecaf940 EFLAGS: 00010293 RAX: ffffffff824a691b RBX: ffffea0001306b80 RCX: ffff88801f4ea480 RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000000000001000 RBP: dffffc0000000000 R08: ffffea0001306b87 R09: 1ffffd4000260d70 R10: dffffc0000000000 R11: fffff94000260d71 R12: 0000000000000000 R13: 0000000000001000 R14: ffff888042c9ed98 R15: 0000000000001000 FS: 00007f17f41cb6c0(0000) GS:ffff88808d730000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f31d02e8100 CR3: 0000000011765000 CR4: 0000000000352ef0 Call Trace: folio_alloc_buffers+0x3a0/0x640 fs/buffer.c:946 grow_dev_folio fs/buffer.c:1075 [inline] grow_buffers fs/buffer.c:1116 [inline] __getblk_slow fs/buffer.c:1134 [inline] bdev_getblk+0x286/0x660 fs/buffer.c:1461 __bread_gfp+0x89/0x3c0 fs/buffer.c:1515 sb_bread include/linux/buffer_head.h:346 [inline] romfs_blk_read fs/romfs/storage.c:114 [inline] romfs_dev_read+0x22b/0x350 fs/romfs/storage.c:229 romfs_fill_super+0x20e/0x720 fs/romfs/super.c:486 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1698 vfs_get_tree+0x92/0x2b0 fs/super.c:1758 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3642 [inline] do_new_mount+0x302/0xa10 fs/namespace.c:3718 do_mount fs/namespace.c:4041 [inline] __do_sys_mount fs/namespace.c:4229 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4206 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f17f338f6c9 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:00007f17f41cb038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f17f35e5fa0 RCX: 00007f17f338f6c9 RDX: 0000200000000000 RSI: 0000200000000080 RDI: 0000200000000040 RBP: 00007f17f3411f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000017 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f17f35e6038 R14: 00007f17f35e5fa0 R15: 00007ffc41521e88 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_set_bh+0x1dc/0x1e0 fs/buffer.c:1582 Code: 4c 89 e2 e8 d6 30 79 02 e9 42 ff ff ff e8 5c aa 75 ff 48 89 df 48 c7 c6 e0 24 7a 8b e8 8d 85 dd fe 90 0f 0b e8 45 aa 75 ff 90 <0f> 0b 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f RSP: 0018:ffffc9000ecaf940 EFLAGS: 00010293 RAX: ffffffff824a691b RBX: ffffea0001306b80 RCX: ffff88801f4ea480 RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000000000001000 RBP: dffffc0000000000 R08: ffffea0001306b87 R09: 1ffffd4000260d70 R10: dffffc0000000000 R11: fffff94000260d71 R12: 0000000000000000 R13: 0000000000001000 R14: ffff888042c9ed98 R15: 0000000000001000 FS: 00007f17f41cb6c0(0000) GS:ffff88808d730000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f17f35b8558 CR3: 0000000011765000 CR4: 0000000000352ef0