loop2: detected capacity change from 0 to 1024 ================================================================== BUG: KASAN: slab-out-of-bounds in reiserfs_xattr_get+0xe6/0x570 fs/reiserfs/xattr.c:675 Read of size 8 at addr ffff88804c3bad98 by task syz-executor.2/28655 CPU: 0 PID: 28655 Comm: syz-executor.2 Not tainted 6.5.0-rc4-syzkaller-00051-g7bafbd4027ae #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x175/0x1b0 mm/kasan/report.c:588 reiserfs_xattr_get+0xe6/0x570 fs/reiserfs/xattr.c:675 reiserfs_get_acl+0x7e/0x650 fs/reiserfs/xattr_acl.c:215 __get_acl+0x288/0x470 fs/posix_acl.c:160 check_acl+0x3a/0x150 fs/namei.c:309 acl_permission_check fs/namei.c:354 [inline] generic_permission+0x362/0x550 fs/namei.c:407 do_inode_permission fs/namei.c:461 [inline] inode_permission+0x233/0x460 fs/namei.c:528 may_open+0x2d6/0x440 fs/namei.c:3264 do_open fs/namei.c:3634 [inline] path_openat+0x265a/0x3180 fs/namei.c:3793 do_filp_open+0x234/0x490 fs/namei.c:3820 do_sys_openat2+0x13e/0x1d0 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] __x64_sys_openat+0x247/0x290 fs/open.c:1433 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f64f6e7b6e0 Code: 48 89 44 24 20 75 93 44 89 54 24 0c e8 09 82 02 00 44 8b 54 24 0c 89 da 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 38 44 89 c7 89 44 24 0c e8 5c 82 02 00 8b 44 RSP: 002b:00007f64f7c24e70 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000010000 RCX: 00007f64f6e7b6e0 RDX: 0000000000010000 RSI: 0000000020000080 RDI: 00000000ffffff9c RBP: 0000000020000080 R08: 0000000000000000 R09: 0000000000010000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000020000080 R13: 00007f64f7c24f40 R14: 0000000000000692 R15: 0000000020000280 Allocated by task 28655: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:383 kmalloc include/linux/slab.h:582 [inline] kzalloc include/linux/slab.h:703 [inline] hfsplus_fill_super+0x138/0x1c90 fs/hfsplus/super.c:387 mount_bdev+0x276/0x3b0 fs/super.c:1391 legacy_get_tree+0xef/0x190 fs/fs_context.c:611 vfs_get_tree+0x8c/0x270 fs/super.c:1519 do_new_mount+0x28f/0xae0 fs/namespace.c:3335 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3861 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Last potentially related work creation: kasan_save_stack+0x3f/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xad/0xc0 mm/kasan/generic.c:492 kvfree_call_rcu+0xf8/0x790 kernel/rcu/tree.c:3368 neigh_periodic_work+0x3c9/0xcb0 net/core/neighbour.c:994 process_one_work+0x92c/0x12c0 kernel/workqueue.c:2597 worker_thread+0xa63/0x1210 kernel/workqueue.c:2748 kthread+0x2b8/0x350 kernel/kthread.c:389 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Second to last potentially related work creation: kasan_save_stack+0x3f/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xad/0xc0 mm/kasan/generic.c:492 kvfree_call_rcu+0xf8/0x790 kernel/rcu/tree.c:3368 neigh_periodic_work+0x3c9/0xcb0 net/core/neighbour.c:994 process_one_work+0x92c/0x12c0 kernel/workqueue.c:2597 worker_thread+0xa63/0x1210 kernel/workqueue.c:2748 kthread+0x2b8/0x350 kernel/kthread.c:389 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 The buggy address belongs to the object at ffff88804c3ba800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 704 bytes to the right of allocated 728-byte region [ffff88804c3ba800, ffff88804c3baad8) The buggy address belongs to the physical page: page:ffffea000130ee00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4c3b8 head:ffffea000130ee00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000010200 ffff888012841dc0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 5146, tgid 5146 (kworker/1:8), ts 121000061868, free_ts 24186977533 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1570 prep_new_page mm/page_alloc.c:1577 [inline] get_page_from_freelist+0x31e8/0x3370 mm/page_alloc.c:3221 __alloc_pages+0x255/0x670 mm/page_alloc.c:4477 alloc_slab_page+0x6a/0x160 mm/slub.c:1862 allocate_slab mm/slub.c:2009 [inline] new_slab+0x84/0x2f0 mm/slub.c:2062 ___slab_alloc+0xade/0x1100 mm/slub.c:3215 __slab_alloc mm/slub.c:3314 [inline] __slab_alloc_node mm/slub.c:3367 [inline] slab_alloc_node mm/slub.c:3460 [inline] __kmem_cache_alloc_node+0x1af/0x270 mm/slub.c:3509 __do_kmalloc_node mm/slab_common.c:984 [inline] __kmalloc+0xa8/0x230 mm/slab_common.c:998 kmalloc include/linux/slab.h:586 [inline] kzalloc include/linux/slab.h:703 [inline] neigh_alloc net/core/neighbour.c:486 [inline] ___neigh_create+0x64a/0x23b0 net/core/neighbour.c:640 ip6_finish_output2+0x1529/0x1560 net/ipv6/ip6_output.c:126 __ip6_finish_output net/ipv6/ip6_output.c:196 [inline] ip6_finish_output+0x6b0/0xa80 net/ipv6/ip6_output.c:207 dst_output include/net/dst.h:458 [inline] NF_HOOK include/linux/netfilter.h:303 [inline] ndisc_send_skb+0xb08/0x1390 net/ipv6/ndisc.c:508 ndisc_send_ns+0xcc/0x160 net/ipv6/ndisc.c:666 addrconf_dad_work+0xb10/0x16b0 net/ipv6/addrconf.c:4181 process_one_work+0x92c/0x12c0 kernel/workqueue.c:2597 worker_thread+0xa63/0x1210 kernel/workqueue.c:2748 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1161 [inline] free_unref_page_prepare+0x903/0xa30 mm/page_alloc.c:2348 free_unref_page+0x37/0x3f0 mm/page_alloc.c:2443 free_contig_range+0x9e/0x150 mm/page_alloc.c:6395 destroy_args+0x102/0x9a0 mm/debug_vm_pgtable.c:1029 debug_vm_pgtable+0x42a/0x4b0 mm/debug_vm_pgtable.c:1410 do_one_initcall+0x23d/0x7d0 init/main.c:1232 do_initcall_level+0x157/0x210 init/main.c:1294 do_initcalls+0x3f/0x80 init/main.c:1310 kernel_init_freeable+0x43b/0x5d0 init/main.c:1546 kernel_init+0x1d/0x2a0 init/main.c:1437 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Memory state around the buggy address: ffff88804c3bac80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88804c3bad00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88804c3bad80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88804c3bae00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88804c3bae80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================