REISERFS (device loop7): Created .reiserfs_priv - reserved for xattr storage. ================================================================== BUG: KASAN: slab-out-of-bounds in leaf_paste_entries+0x9f0/0xb38 fs/reiserfs/lbalance.c:1351 Read of size 2 at addr ffff0000fb4c3edc by task syz.7.1028/9365 CPU: 0 PID: 9365 Comm: syz.7.1028 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2026 Call trace: dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106 print_address_description+0x88/0x218 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:420 kasan_report+0xa8/0xfc mm/kasan/report.c:524 __asan_report_load_n_noabort+0x28/0x34 mm/kasan/report_generic.c:361 leaf_paste_entries+0x9f0/0xb38 fs/reiserfs/lbalance.c:1351 leaf_copy_dir_entries+0x4cc/0x780 fs/reiserfs/lbalance.c:119 leaf_copy_boundary_item+0x87c/0x19f4 fs/reiserfs/lbalance.c:-1 leaf_copy_items fs/reiserfs/lbalance.c:551 [inline] leaf_move_items+0x6c8/0xbd8 fs/reiserfs/lbalance.c:726 leaf_shift_left+0xc4/0x3ac fs/reiserfs/lbalance.c:750 balance_leaf_when_delete_left fs/reiserfs/do_balan.c:194 [inline] balance_leaf_when_delete fs/reiserfs/do_balan.c:272 [inline] balance_leaf+0xeb4/0xdee0 fs/reiserfs/do_balan.c:1393 do_balance+0x270/0x794 fs/reiserfs/do_balan.c:1888 reiserfs_cut_from_item+0x1160/0x1a34 fs/reiserfs/stree.c:1838 reiserfs_do_truncate+0x728/0xfd0 fs/reiserfs/stree.c:1973 reiserfs_truncate_file+0x3a4/0xb04 fs/reiserfs/inode.c:2310 reiserfs_setattr+0xad4/0x1014 fs/reiserfs/inode.c:3395 notify_change+0xb5c/0xe20 fs/attr.c:499 do_truncate+0x188/0x20c fs/open.c:65 handle_truncate fs/namei.c:3336 [inline] do_open fs/namei.c:3681 [inline] path_openat+0x21c8/0x27a0 fs/namei.c:3834 do_filp_open+0x198/0x38c fs/namei.c:3861 do_sys_openat2+0x134/0x3fc fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __arm64_sys_openat+0x11c/0x150 fs/open.c:1347 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Allocated by task 9238: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:53 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0xa0/0xb8 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc+0xd8/0x180 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] tomoyo_realpath_from_path+0xc4/0x508 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x1c4/0x540 security/tomoyo/file.c:723 tomoyo_file_ioctl+0x2c/0x3c security/tomoyo/tomoyo.c:336 security_file_ioctl+0x80/0xbc security/security.c:1572 __do_sys_ioctl fs/ioctl.c:864 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __arm64_sys_ioctl+0xa8/0x1c8 fs/ioctl.c:856 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Freed by task 9238: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:53 kasan_save_free_info+0x38/0x5c mm/kasan/generic.c:516 ____kasan_slab_free+0x148/0x1b0 mm/kasan/common.c:237 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:245 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1729 [inline] slab_free_freelist_hook+0x16c/0x1e8 mm/slub.c:1755 slab_free mm/slub.c:3687 [inline] __kmem_cache_free+0xbc/0x21c mm/slub.c:3700 kfree+0xd0/0x1a8 mm/slab_common.c:988 tomoyo_realpath_from_path+0x4c0/0x508 security/tomoyo/realpath.c:286 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x1c4/0x540 security/tomoyo/file.c:723 tomoyo_file_ioctl+0x2c/0x3c security/tomoyo/tomoyo.c:336 security_file_ioctl+0x80/0xbc security/security.c:1572 __do_sys_ioctl fs/ioctl.c:864 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __arm64_sys_ioctl+0xa8/0x1c8 fs/ioctl.c:856 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 The buggy address belongs to the object at ffff0000fb4c2000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 3804 bytes to the right of 4096-byte region [ffff0000fb4c2000, ffff0000fb4c3000) The buggy address belongs to the physical page: page:00000000de78a22a refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x13b4c0 head:00000000de78a22a order:3 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc00034a8000 dead000000000002 ffff0000c0002a80 raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000fb4c3d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000fb4c3e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000fb4c3e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000fb4c3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000fb4c3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== Unable to handle kernel write to read-only memory at virtual address ffff0000f8145ff0 KASAN: maybe wild-memory-access in range [0xfffc0007c0a2ff80-0xfffc0007c0a2ff87] Mem abort info: ESR = 0x000000009600004f EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x0f: level 3 permission fault Data abort info: ISV = 0, ISS = 0x0000004f CM = 0, WnR = 1 swapper pgtable: 4k pages, 48-bit VAs, pgdp=000000020dd64000 [ffff0000f8145ff0] pgd=180000023fff8003, p4d=180000023fff8003, pud=180000023f414003, pmd=180000023f253003, pte=00e0000138145787 Internal error: Oops: 000000009600004f [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 9365 Comm: syz.7.1028 Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2026 pstate: a2400005 (NzCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : __memcpy+0x1d8/0x250 arch/arm64/lib/memcpy.S:217 lr : memmove+0x74/0x90 mm/kasan/shadow.c:58 sp : ffff8000229661f0 x29: ffff8000229661f0 x28: ffff0000f9f70ff0 x27: 0000000000000002 x26: dfff800000000000 x25: ffff0000fb3c3ef0 x24: 00000000000ffff0 x23: 0000000000000020 x22: ffff800008cda484 x21: ffff0000fb4c3f00 x20: ffff0000fb4c3ee0 x19: fffffffffff00010 x18: 1fffe00033e6db7e x17: ffff8000153bd000 x16: ffff800011bb65f8 x15: ffff00019f36dbfc x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000000000 x5 : ffff0000f8146010 x4 : ffff0000f8145fb0 x3 : ffff800008cda484 x2 : fffffffffcc82090 x1 : ffff0000fb4c3ee0 x0 : ffff0000fb4c3f00 Call trace: __memcpy+0x1d8/0x250 arch/arm64/lib/memcpy.S:216 leaf_paste_entries+0x694/0xb38 fs/reiserfs/lbalance.c:1377 leaf_copy_dir_entries+0x4cc/0x780 fs/reiserfs/lbalance.c:119 leaf_copy_boundary_item+0x87c/0x19f4 fs/reiserfs/lbalance.c:-1 leaf_copy_items fs/reiserfs/lbalance.c:551 [inline] leaf_move_items+0x6c8/0xbd8 fs/reiserfs/lbalance.c:726 leaf_shift_left+0xc4/0x3ac fs/reiserfs/lbalance.c:750 balance_leaf_when_delete_left fs/reiserfs/do_balan.c:194 [inline] balance_leaf_when_delete fs/reiserfs/do_balan.c:272 [inline] balance_leaf+0xeb4/0xdee0 fs/reiserfs/do_balan.c:1393 do_balance+0x270/0x794 fs/reiserfs/do_balan.c:1888 reiserfs_cut_from_item+0x1160/0x1a34 fs/reiserfs/stree.c:1838 reiserfs_do_truncate+0x728/0xfd0 fs/reiserfs/stree.c:1973 reiserfs_truncate_file+0x3a4/0xb04 fs/reiserfs/inode.c:2310 reiserfs_setattr+0xad4/0x1014 fs/reiserfs/inode.c:3395 notify_change+0xb5c/0xe20 fs/attr.c:499 do_truncate+0x188/0x20c fs/open.c:65 handle_truncate fs/namei.c:3336 [inline] do_open fs/namei.c:3681 [inline] path_openat+0x21c8/0x27a0 fs/namei.c:3834 do_filp_open+0x198/0x38c fs/namei.c:3861 do_sys_openat2+0x134/0x3fc fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __arm64_sys_openat+0x11c/0x150 fs/open.c:1347 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Code: f1020042 54000169 a93f1ca6 a97f1c86 (a93e24a8) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: f1020042 subs x2, x2, #0x80 4: 54000169 b.ls 0x30 // b.plast 8: a93f1ca6 stp x6, x7, [x5, #-16] c: a97f1c86 ldp x6, x7, [x4, #-16] * 10: a93e24a8 stp x8, x9, [x5, #-32] <-- trapping instruction