el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:131 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:150 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3452! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 6857 Comm: syz.2.124 Not tainted 6.10.0-rc7-syzkaller-gc912bf709078 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : btrfs_free_tree_block+0xbf4/0xc00 fs/btrfs/extent-tree.c:3452 lr : btrfs_free_tree_block+0xbf4/0xc00 fs/btrfs/extent-tree.c:3452 sp : ffff80009f366e20 x29: ffff80009f366f20 x28: ffff700013e6cdcc x27: ffff0000caebf000 x26: ffff0000c727eb40 x25: ffff0000caebf064 x24: 00000000fffffff4 x23: 0000000000000001 x22: 0000000000000005 x21: ffff80008ea8e298 x20: ffff0000dbe1eb90 x19: dfff800000000000 x18: 1fffe000367b11de x17: ffff80008f0fd000 x16: ffff80008032d32c x15: 0000000000000001 x14: 1ffff00011f381ee x13: 0000000000000000 x12: 0000000000000003 x11: 0000000000000000 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000d63e3c80 x7 : ffff80008005dba0 x6 : ffff80008005dd9c x5 : ffff0000e0bafd50 x4 : ffff80009f3669c0 x3 : 0000000000000000 x2 : 0000000000000006 x1 : 00000000fffffff4 x0 : 0000000000000000 Call trace: btrfs_free_tree_block+0xbf4/0xc00 fs/btrfs/extent-tree.c:3452 btrfs_force_cow_block+0xea8/0x1a58 fs/btrfs/ctree.c:623 btrfs_cow_block+0x318/0xa28 fs/btrfs/ctree.c:746 btrfs_search_slot+0xba0/0x2a08 btrfs_insert_empty_items+0xa4/0x17c fs/btrfs/ctree.c:4295 btrfs_insert_empty_item fs/btrfs/ctree.h:650 [inline] insert_with_overflow+0x138/0x398 fs/btrfs/dir-item.c:35 btrfs_insert_xattr_item+0x1a0/0x370 fs/btrfs/dir-item.c:78 btrfs_setxattr+0x2a4/0x748 fs/btrfs/xattr.c:136 btrfs_setxattr_trans+0xf8/0x2a8 fs/btrfs/xattr.c:262 btrfs_xattr_handler_set_security+0x104/0x144 fs/btrfs/xattr.c:429 __vfs_setxattr+0x3d8/0x400 fs/xattr.c:200 __vfs_setxattr_noperm+0x110/0x578 fs/xattr.c:234 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:295 vfs_setxattr+0x1a8/0x344 fs/xattr.c:321 do_setxattr fs/xattr.c:629 [inline] setxattr+0x208/0x29c fs/xattr.c:652 path_setxattr+0x17c/0x258 fs/xattr.c:671 __do_sys_lsetxattr fs/xattr.c:694 [inline] __se_sys_lsetxattr fs/xattr.c:690 [inline] __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:690 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:131 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:150 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Code: 5281aee3 957545d8 d4210000 978ee28a (d4210000) ---[ end trace 0000000000000000 ]---