hfsplus: xattr searching failed hfsplus: xattr searching failed audit: type=1800 audit(1677058892.665:4): pid=9610 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="loop3" ino=26 res=0 BUG: unable to handle kernel paging request at fffffffffffffffb IP: hfsplus_bnode_put+0x43/0x3e0 fs/hfsplus/bnode.c:629 PGD 8e6b067 P4D 8e6b067 PUD 8e6d067 PMD 0 Oops: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 9610 Comm: syz-executor.3 Not tainted 4.14.305-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 task: ffff88804ae06340 task.stack: ffff88804ae08000 RIP: 0010:hfsplus_bnode_put+0x43/0x3e0 fs/hfsplus/bnode.c:629 RSP: 0018:ffff88804ae0f550 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff88804ae0f688 RCX: ffffc90008ef5000 RDX: 1fffffffffffffff RSI: ffffffff81d3b564 RDI: fffffffffffffffb RBP: fffffffffffffffb R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000000 R11: ffff88804ae06340 R12: ffff8880a8821d8c R13: 0000000000000073 R14: ffff8880a91bd290 R15: ffff88804ae0f688 FS: 00007fc41f7ab700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffffffffffffb CR3: 000000009a03b000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfsplus_brec_find+0xb6/0x460 fs/hfsplus/bfind.c:174 __hfsplus_ext_read_extent fs/hfsplus/extents.c:164 [inline] __hfsplus_ext_cache_extent fs/hfsplus/extents.c:191 [inline] hfsplus_ext_read_extent+0x441/0x9e0 fs/hfsplus/extents.c:218 hfsplus_file_extend+0x616/0xef0 fs/hfsplus/extents.c:456 hfsplus_get_block+0x15b/0x820 fs/hfsplus/extents.c:245 __block_write_begin_int+0x35c/0x11d0 fs/buffer.c:2038 __block_write_begin fs/buffer.c:2088 [inline] block_write_begin+0x58/0x270 fs/buffer.c:2147 cont_write_begin+0x4a3/0x740 fs/buffer.c:2497 hfsplus_write_begin+0x87/0x130 fs/hfsplus/inode.c:53 cont_expand_zero fs/buffer.c:2424 [inline] cont_write_begin+0x296/0x740 fs/buffer.c:2487 hfsplus_write_begin+0x87/0x130 fs/hfsplus/inode.c:53 generic_cont_expand_simple+0xe1/0x130 fs/buffer.c:2388 hfsplus_setattr+0x139/0x310 fs/hfsplus/inode.c:258 notify_change+0x56b/0xd10 fs/attr.c:315 do_truncate+0xff/0x1a0 fs/open.c:63 do_sys_ftruncate.constprop.0+0x3a3/0x480 fs/open.c:205 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7fc4212390f9 RSP: 002b:00007fc41f7ab168 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007fc421358f80 RCX: 00007fc4212390f9 RDX: 0000000000000000 RSI: 0000000000200004 RDI: 0000000000000005 RBP: 00007fc421294ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe39b1919f R14: 00007fc41f7ab300 R15: 0000000000022000 Code: ed 0f 84 71 01 00 00 e8 4c a1 81 ff 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 2f 03 00 00 4c 8d 6d 78 <4c> 8b 65 00 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 RIP: hfsplus_bnode_put+0x43/0x3e0 fs/hfsplus/bnode.c:629 RSP: ffff88804ae0f550 CR2: fffffffffffffffb ---[ end trace a39b278cb4970171 ]--- ---------------- Code disassembly (best guess): 0: ed in (%dx),%eax 1: 0f 84 71 01 00 00 je 0x178 7: e8 4c a1 81 ff callq 0xff81a158 c: 48 89 ea mov %rbp,%rdx f: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 16: fc ff df 19: 48 c1 ea 03 shr $0x3,%rdx 1d: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 21: 0f 85 2f 03 00 00 jne 0x356 27: 4c 8d 6d 78 lea 0x78(%rbp),%r13 * 2b: 4c 8b 65 00 mov 0x0(%rbp),%r12 <-- trapping instruction 2f: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 36: fc ff df 39: 4c 89 ea mov %r13,%rdx 3c: 48 c1 ea 03 shr $0x3,%rdx