================================================================== BUG: KASAN: slab-out-of-bounds in reiserfs_xattr_get+0xd0/0x96c fs/reiserfs/xattr.c:675 Read of size 8 at addr ffff0000c7563598 by task syz-executor.4/4139 CPU: 0 PID: 4139 Comm: syz-executor.4 Not tainted 6.5.0-rc5-syzkaller-g6f09e57d8cf6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x174/0x514 mm/kasan/report.c:475 kasan_report+0xd8/0x138 mm/kasan/report.c:588 __asan_report_load8_noabort+0x20/0x2c mm/kasan/report_generic.c:381 reiserfs_xattr_get+0xd0/0x96c fs/reiserfs/xattr.c:675 reiserfs_get_acl+0x94/0x624 fs/reiserfs/xattr_acl.c:215 __get_acl+0x26c/0x474 fs/posix_acl.c:160 get_inode_acl+0x34/0x44 fs/posix_acl.c:185 check_acl+0x40/0x184 fs/namei.c:309 acl_permission_check fs/namei.c:354 [inline] generic_permission+0x2f8/0x498 fs/namei.c:407 reiserfs_permission+0x74/0xa8 fs/reiserfs/xattr.c:957 do_inode_permission fs/namei.c:461 [inline] inode_permission+0x1d0/0x3b4 fs/namei.c:528 may_open+0x290/0x3bc fs/namei.c:3264 do_open fs/namei.c:3634 [inline] path_openat+0x1e04/0x27f8 fs/namei.c:3793 do_filp_open+0x1bc/0x3cc fs/namei.c:3820 do_sys_openat2+0x124/0x1b8 fs/open.c:1407 do_sys_open fs/open.c:1422 [inline] __do_sys_openat fs/open.c:1438 [inline] __se_sys_openat fs/open.c:1433 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1433 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x58/0x16c arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Allocated by task 4139: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x7c mm/kasan/common.c:52 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:511 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:196 [inline] kmalloc_trace+0x70/0x88 mm/slab_common.c:1081 kmalloc include/linux/slab.h:582 [inline] kzalloc include/linux/slab.h:703 [inline] hfs_fill_super+0x114/0x13b4 fs/hfs/super.c:386 mount_bdev+0x24c/0x328 fs/super.c:1391 hfs_mount+0x44/0x58 fs/hfs/super.c:456 legacy_get_tree+0xd4/0x16c fs/fs_context.c:611 vfs_get_tree+0x90/0x274 fs/super.c:1519 do_new_mount+0x25c/0x8c8 fs/namespace.c:3335 path_mount+0x590/0xe04 fs/namespace.c:3662 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount fs/namespace.c:3861 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3861 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x58/0x16c arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Last potentially related work creation: kasan_save_stack+0x40/0x6c mm/kasan/common.c:45 __kasan_record_aux_stack+0xcc/0xe8 mm/kasan/generic.c:492 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:502 __call_rcu_common kernel/rcu/tree.c:2649 [inline] call_rcu+0x104/0xaf4 kernel/rcu/tree.c:2763 pwq_unbound_release_workfn+0x214/0x258 process_one_work+0x800/0x1480 kernel/workqueue.c:2597 worker_thread+0x8e0/0xfe8 kernel/workqueue.c:2748 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:853 Second to last potentially related work creation: kasan_save_stack+0x40/0x6c mm/kasan/common.c:45 __kasan_record_aux_stack+0xcc/0xe8 mm/kasan/generic.c:492 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:502 kvfree_call_rcu+0xac/0x674 kernel/rcu/tree.c:3368 neigh_destroy+0x474/0x6b4 net/core/neighbour.c:910 neigh_release include/net/neighbour.h:447 [inline] neigh_cleanup_and_release+0x138/0x37c net/core/neighbour.c:103 neigh_periodic_work+0x488/0xae0 net/core/neighbour.c:994 process_one_work+0x800/0x1480 kernel/workqueue.c:2597 worker_thread+0x8e0/0xfe8 kernel/workqueue.c:2748 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:853 The buggy address belongs to the object at ffff0000c7563000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 880 bytes to the right of allocated 552-byte region [ffff0000c7563000, ffff0000c7563228) The buggy address belongs to the physical page: page:000000007d281b3d refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107560 head:000000007d281b3d order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000010200 ffff0000c0001dc0 fffffc0004925c00 dead000000000002 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000c7563480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000c7563500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000c7563580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000c7563600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000c7563680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================