loop6: detected capacity change from 0 to 64 hfs: hfs: Invalid key length: 94 ------------[ cut here ]------------ kernel BUG at fs/hfs/inode.c:447! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5615 Comm: syz.6.274 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 RIP: 0010:hfs_write_inode+0x964/0x970 fs/hfs/inode.c:447 Code: 8f ff e9 13 fe ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 5e fe ff ff 4c 89 f7 e8 a6 07 8f ff e9 51 fe ff ff e8 9c 9f 4a ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 55 41 57 41 56 41 54 53 48 89 RSP: 0018:ffffc9000319f840 EFLAGS: 00010287 RAX: ffffffff822d2b84 RBX: ffff8880789a9b98 RCX: 0000000000080000 RDX: ffffc90016030000 RSI: 000000000000e873 RDI: 000000000000e874 RBP: ffffc9000319f9d0 R08: ffff888025823b80 R09: 0000000000000003 R10: 0000000000000004 R11: 0000000000000002 R12: dffffc0000000000 R13: 1ffff92000633f0c R14: 0000000000000000 R15: ffff8880789a9b58 FS: 00007fa8198cb6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa81152a000 CR3: 0000000062d8a000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: write_inode fs/fs-writeback.c:1495 [inline] __writeback_single_inode+0x6c3/0xda0 fs/fs-writeback.c:1705 writeback_single_inode+0x221/0x8b0 fs/fs-writeback.c:1760 write_inode_now+0x217/0x280 fs/fs-writeback.c:2801 hfs_file_fsync+0xa3/0x140 fs/hfs/inode.c:680 generic_write_sync include/linux/fs.h:2989 [inline] generic_file_write_iter+0x157/0x1b0 mm/filemap.c:3948 call_write_iter include/linux/fs.h:2172 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x712/0xd00 fs/read_write.c:594 ksys_pwrite64 fs/read_write.c:701 [inline] __do_sys_pwrite64 fs/read_write.c:711 [inline] __se_sys_pwrite64 fs/read_write.c:708 [inline] __x64_sys_pwrite64+0x194/0x220 fs/read_write.c:708 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fa81b663ba9 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:00007fa8198cb038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007fa81b8aafa0 RCX: 00007fa81b663ba9 RDX: 0000000000000051 RSI: 0000200000000980 RDI: 000000000000000c RBP: 00007fa81b6e6e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000e7c R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa81b8ab038 R14: 00007fa81b8aafa0 R15: 00007fffb58a53e8 Modules linked in: ---[ end trace baaddf1b7ae0e2d9 ]--- RIP: 0010:hfs_write_inode+0x964/0x970 fs/hfs/inode.c:447 Code: 8f ff e9 13 fe ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 5e fe ff ff 4c 89 f7 e8 a6 07 8f ff e9 51 fe ff ff e8 9c 9f 4a ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 55 41 57 41 56 41 54 53 48 89 RSP: 0018:ffffc9000319f840 EFLAGS: 00010287 RAX: ffffffff822d2b84 RBX: ffff8880789a9b98 RCX: 0000000000080000 RDX: ffffc90016030000 RSI: 000000000000e873 RDI: 000000000000e874 RBP: ffffc9000319f9d0 R08: ffff888025823b80 R09: 0000000000000003 R10: 0000000000000004 R11: 0000000000000002 R12: dffffc0000000000 R13: 1ffff92000633f0c R14: 0000000000000000 R15: ffff8880789a9b58 FS: 00007fa8198cb6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9617e84f98 CR3: 0000000062d8a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400