loop3: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: slab-out-of-bounds in reiserfs_xattr_get+0xe3/0x580 fs/reiserfs/xattr.c:674 Read of size 8 at addr ffff8880797a1198 by task syz-executor.3/30056 CPU: 0 PID: 30056 Comm: syz-executor.3 Not tainted 6.1.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:284 print_report+0x107/0x220 mm/kasan/report.c:395 kasan_report+0x139/0x170 mm/kasan/report.c:495 reiserfs_xattr_get+0xe3/0x580 fs/reiserfs/xattr.c:674 reiserfs_get_acl+0x7a/0x650 fs/reiserfs/xattr_acl.c:214 get_acl+0x157/0x260 fs/posix_acl.c:153 check_acl+0x35/0x150 fs/namei.c:306 acl_permission_check fs/namei.c:351 [inline] generic_permission+0x388/0x4e0 fs/namei.c:404 do_inode_permission fs/namei.c:458 [inline] inode_permission+0x22c/0x450 fs/namei.c:525 may_open+0x2a4/0x400 fs/namei.c:3185 do_open fs/namei.c:3555 [inline] path_openat+0x24b4/0x2e00 fs/namei.c:3713 do_filp_open+0x275/0x500 fs/namei.c:3740 do_sys_openat2+0x13b/0x500 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1be123e2e4 Code: 84 00 00 00 00 00 44 89 54 24 0c e8 96 f9 ff ff 44 8b 54 24 0c 44 89 e2 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 34 44 89 c7 89 44 24 0c e8 c8 f9 ff ff 8b 44 RSP: 002b:00007f1be20a3f10 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000005df7 RCX: 00007f1be123e2e4 RDX: 0000000000010000 RSI: 0000000020005e40 RDI: 00000000ffffff9c RBP: 0000000020005e40 R08: 0000000000000000 R09: 0000000020005e00 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000010000 R13: 0000000020005e40 R14: 00007f1be20a3fe0 R15: 0000000020000140 Allocated by task 19325: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:371 [inline] __kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:380 kmalloc include/linux/slab.h:553 [inline] kzalloc include/linux/slab.h:689 [inline] smk_fetch+0x91/0x140 security/smack/smack_lsm.c:291 smack_d_instantiate+0x741/0xa10 security/smack/smack_lsm.c:3460 security_d_instantiate+0xa5/0x100 security/security.c:2063 d_instantiate+0x51/0x90 fs/dcache.c:2034 shmem_mknod+0x173/0x1b0 mm/shmem.c:2925 lookup_open fs/namei.c:3413 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x12e2/0x2e00 fs/namei.c:3710 do_filp_open+0x275/0x500 fs/namei.c:3740 do_sys_openat2+0x13b/0x500 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Freed by task 19325: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:511 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1724 [inline] slab_free_freelist_hook+0x12e/0x1a0 mm/slub.c:1750 slab_free mm/slub.c:3661 [inline] __kmem_cache_free+0x71/0x110 mm/slub.c:3674 smk_fetch+0x108/0x140 security/smack/smack_lsm.c:303 smack_d_instantiate+0x741/0xa10 security/smack/smack_lsm.c:3460 security_d_instantiate+0xa5/0x100 security/security.c:2063 d_instantiate+0x51/0x90 fs/dcache.c:2034 shmem_mknod+0x173/0x1b0 mm/shmem.c:2925 lookup_open fs/namei.c:3413 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x12e2/0x2e00 fs/namei.c:3710 do_filp_open+0x275/0x500 fs/namei.c:3740 do_sys_openat2+0x13b/0x500 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb0/0xc0 mm/kasan/generic.c:481 kvfree_call_rcu+0x118/0x8c0 kernel/rcu/tree.c:3343 br_multicast_gc net/bridge/br_multicast.c:775 [inline] br_multicast_gc_work+0x253/0x2b0 net/bridge/br_multicast.c:3850 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 The buggy address belongs to the object at ffff8880797a1000 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 152 bytes to the right of 256-byte region [ffff8880797a1000, ffff8880797a1100) The buggy address belongs to the physical page: page:ffffea0001e5e800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x797a0 head:ffffea0001e5e800 order:1 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 dead000000000100 dead000000000122 ffff888012841b40 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 19325, tgid 19325 (udevd), ts 1057831456265, free_ts 1040942615089 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x72b/0x7a0 mm/page_alloc.c:4288 __alloc_pages+0x259/0x560 mm/page_alloc.c:5555 alloc_slab_page+0x70/0xf0 mm/slub.c:1794 allocate_slab+0x5e/0x4b0 mm/slub.c:1939 new_slab mm/slub.c:1992 [inline] ___slab_alloc+0x7f4/0xeb0 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] __kmem_cache_alloc_node+0x252/0x310 mm/slub.c:3437 kmalloc_trace+0x26/0x60 mm/slab_common.c:1045 kmalloc include/linux/slab.h:553 [inline] kzalloc include/linux/slab.h:689 [inline] smk_fetch+0x91/0x140 security/smack/smack_lsm.c:291 smack_d_instantiate+0x741/0xa10 security/smack/smack_lsm.c:3460 security_d_instantiate+0xa5/0x100 security/security.c:2063 d_splice_alias+0x6e/0x3b0 fs/dcache.c:3146 __lookup_slow+0x286/0x3e0 fs/namei.c:1685 lookup_slow+0x53/0x70 fs/namei.c:1702 walk_component+0x2e1/0x410 fs/namei.c:1993 lookup_last fs/namei.c:2450 [inline] path_lookupat+0x17d/0x450 fs/namei.c:2474 filename_lookup+0x285/0x660 fs/namei.c:2503 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare+0x80c/0x8f0 mm/page_alloc.c:1509 free_unref_page_prepare mm/page_alloc.c:3387 [inline] free_unref_page+0x7d/0x630 mm/page_alloc.c:3483 kasan_depopulate_vmalloc_pte+0x66/0x80 mm/kasan/shadow.c:372 apply_to_pte_range mm/memory.c:2640 [inline] apply_to_pmd_range mm/memory.c:2684 [inline] apply_to_pud_range mm/memory.c:2720 [inline] apply_to_p4d_range mm/memory.c:2756 [inline] __apply_to_page_range+0x964/0xc70 mm/memory.c:2790 kasan_release_vmalloc+0x96/0xb0 mm/kasan/shadow.c:486 __purge_vmap_area_lazy+0xcfa/0x18a0 mm/vmalloc.c:1770 drain_vmap_area_work+0x3c/0xd0 mm/vmalloc.c:1799 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Memory state around the buggy address: ffff8880797a1080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880797a1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880797a1180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880797a1200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880797a1280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================