loop1: 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 ffff888053a53598 by task syz-executor.1/27371 CPU: 0 PID: 27371 Comm: syz-executor.1 Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description+0x65/0x4b0 mm/kasan/report.c:317 print_report+0x108/0x220 mm/kasan/report.c:433 kasan_report+0xfb/0x130 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:152 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:3691 do_filp_open+0x275/0x500 fs/namei.c:3718 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:0x7f83b243d654 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:00007f83b3627f10 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00007f83b243d654 RDX: 0000000000010000 RSI: 0000000020000100 RDI: 00000000ffffff9c RBP: 0000000020000100 R08: 0000000000000000 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000010000 R13: 0000000020000100 R14: 00007f83b3627fe0 R15: 0000000020004d80 Allocated by task 3645: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:437 [inline] ____kasan_kmalloc+0xdc/0x110 mm/kasan/common.c:516 kasan_kmalloc include/linux/kasan.h:234 [inline] __kmalloc+0x226/0x370 mm/slub.c:4429 kmalloc include/linux/slab.h:605 [inline] kzalloc include/linux/slab.h:733 [inline] fib_create_info+0xa5a/0x2410 net/ipv4/fib_semantics.c:1449 fib_table_insert+0x21f/0x1f20 net/ipv4/fib_trie.c:1236 fib_magic+0x451/0x650 net/ipv4/fib_frontend.c:1098 fib_add_ifaddr+0x143/0x5c0 net/ipv4/fib_frontend.c:1120 fib_inetaddr_event+0x12b/0x2e0 net/ipv4/fib_frontend.c:1434 notifier_call_chain kernel/notifier.c:87 [inline] blocking_notifier_call_chain+0x108/0x1b0 kernel/notifier.c:382 __inet_insert_ifa+0x9ae/0xbc0 net/ipv4/devinet.c:554 inet_rtm_newaddr+0x1036/0x1920 net/ipv4/devinet.c:960 rtnetlink_rcv_msg+0x7b8/0xe90 net/core/rtnetlink.c:6091 netlink_rcv_skb+0x1f0/0x460 net/netlink/af_netlink.c:2540 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x7e7/0x9c0 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x9b3/0xcd0 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg net/socket.c:734 [inline] __sys_sendto+0x46d/0x5f0 net/socket.c:2117 __do_sys_sendto net/socket.c:2129 [inline] __se_sys_sendto net/socket.c:2125 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2125 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 The buggy address belongs to the object at ffff888053a53400 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 152 bytes to the right of 256-byte region [ffff888053a53400, ffff888053a53500) The buggy address belongs to the physical page: page:ffffea00014e9480 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x53a52 head:ffffea00014e9480 order:1 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 dead000000000100 dead000000000122 ffff888012041b40 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 3746, tgid 3746 (syz-executor.5), ts 145569920404, free_ts 143830725426 prep_new_page mm/page_alloc.c:2532 [inline] get_page_from_freelist+0x72b/0x7a0 mm/page_alloc.c:4283 __alloc_pages+0x259/0x560 mm/page_alloc.c:5549 alloc_slab_page+0x70/0xf0 mm/slub.c:1829 allocate_slab+0x5e/0x520 mm/slub.c:1974 new_slab mm/slub.c:2034 [inline] ___slab_alloc+0x42e/0xce0 mm/slub.c:3036 __slab_alloc mm/slub.c:3123 [inline] slab_alloc_node mm/slub.c:3214 [inline] slab_alloc mm/slub.c:3256 [inline] kmem_cache_alloc_trace+0x25f/0x310 mm/slub.c:3287 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:733 [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_new+0x61/0x110 fs/dcache.c:2053 ext4_add_nondir+0x200/0x260 fs/ext4/namei.c:2769 ext4_symlink+0x925/0xb40 fs/ext4/namei.c:3399 vfs_symlink+0x246/0x3d0 fs/namei.c:4378 do_symlinkat+0x209/0x610 fs/namei.c:4407 __do_sys_symlinkat fs/namei.c:4424 [inline] __se_sys_symlinkat fs/namei.c:4421 [inline] __x64_sys_symlinkat+0x95/0xa0 fs/namei.c:4421 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1449 [inline] free_pcp_prepare+0x812/0x900 mm/page_alloc.c:1499 free_unref_page_prepare mm/page_alloc.c:3380 [inline] free_unref_page+0x7d/0x630 mm/page_alloc.c:3476 qlist_free_all+0x2b/0x70 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x169/0x180 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:447 kasan_slab_alloc include/linux/kasan.h:224 [inline] slab_post_alloc_hook mm/slab.h:727 [inline] slab_alloc_node mm/slub.c:3248 [inline] kmem_cache_alloc_node_trace+0x1ca/0x360 mm/slub.c:3312 kmalloc_node include/linux/slab.h:618 [inline] kzalloc_node include/linux/slab.h:744 [inline] alloc_worker kernel/workqueue.c:1840 [inline] create_worker+0x116/0x630 kernel/workqueue.c:1937 maybe_create_worker kernel/workqueue.c:2107 [inline] manage_workers kernel/workqueue.c:2159 [inline] worker_thread+0x50a/0x1330 kernel/workqueue.c:2408 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: ffff888053a53480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc ffff888053a53500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888053a53580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888053a53600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888053a53680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 07 ==================================================================