loop3: detected capacity change from 0 to 1024 ================================================================== BUG: KASAN: slab-out-of-bounds in reiserfs_xattr_get+0xe3/0x580 fs/reiserfs/xattr.c:674 Read of size 8 at addr ffff888079ee5d98 by task syz-executor.3/8972 CPU: 1 PID: 8972 Comm: syz-executor.3 Not tainted 6.2.0-rc5-syzkaller-00205-gc96618275234 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:306 print_report+0x107/0x220 mm/kasan/report.c:417 kasan_report+0x139/0x170 mm/kasan/report.c:517 reiserfs_xattr_get+0xe3/0x580 fs/reiserfs/xattr.c:674 reiserfs_get_acl+0x7a/0x650 fs/reiserfs/xattr_acl.c:215 __get_acl+0x241/0x330 fs/posix_acl.c:159 check_acl+0x35/0x150 fs/namei.c:306 acl_permission_check fs/namei.c:351 [inline] generic_permission+0x39d/0x500 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+0x2472/0x2de0 fs/namei.c:3714 do_filp_open+0x275/0x500 fs/namei.c:3741 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:0x7fba0d23e254 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:00007fba0df9cf10 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000000000000063b RCX: 00007fba0d23e254 RDX: 0000000000010000 RSI: 0000000020000640 RDI: 00000000ffffff9c RBP: 0000000020000640 R08: 0000000000000000 R09: 0000000000810408 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000010000 R13: 0000000020000640 R14: 00007fba0df9cfe0 R15: 0000000020000180 Allocated by task 8972: 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:580 [inline] kzalloc include/linux/slab.h:720 [inline] hfsplus_fill_super+0x134/0x1c60 fs/hfsplus/super.c:387 mount_bdev+0x26c/0x3a0 fs/super.c:1359 legacy_get_tree+0xea/0x180 fs/fs_context.c:610 vfs_get_tree+0x88/0x270 fs/super.c:1489 do_new_mount+0x289/0xad0 fs/namespace.c:3145 do_mount fs/namespace.c:3488 [inline] __do_sys_mount fs/namespace.c:3697 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3674 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:488 insert_work+0x54/0x3e0 kernel/workqueue.c:1358 __queue_work+0xaaa/0xd60 kernel/workqueue.c:1517 queue_work_on+0x137/0x240 kernel/workqueue.c:1545 ops_exit_list net/core/net_namespace.c:169 [inline] cleanup_net+0x758/0xc60 net/core/net_namespace.c:606 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:308 Second to 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:488 kvfree_call_rcu+0x118/0x8c0 kernel/rcu/tree.c:3376 cgroup_migrate_finish+0x206/0x420 kernel/cgroup/cgroup.c:2713 cgroup_attach_task+0x5f7/0x740 kernel/cgroup/cgroup.c:2912 cgroup_attach_task_all+0xaa/0x120 kernel/cgroup/cgroup-v1.c:70 kvm_vm_worker_thread+0x350/0x4e0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:6127 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 The buggy address belongs to the object at ffff888079ee5800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 408 bytes to the right of 1024-byte region [ffff888079ee5800, ffff888079ee5c00) The buggy address belongs to the physical page: page:ffffea0001e7b800 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888079ee4000 pfn:0x79ee0 head:ffffea0001e7b800 order:3 compound_mapcount:0 subpages_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffff888012841dc0 ffffea0001f6d600 dead000000000002 raw: ffff888079ee4000 000000008010000b 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 0xd2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 15, tgid 15 (ksoftirqd/0), ts 131888512410, free_ts 131888000674 prep_new_page mm/page_alloc.c:2531 [inline] get_page_from_freelist+0x72b/0x7a0 mm/page_alloc.c:4283 __alloc_pages+0x259/0x560 mm/page_alloc.c:5549 alloc_slab_page+0xbd/0x190 mm/slub.c:1851 allocate_slab+0x5e/0x3c0 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0x7f4/0xeb0 mm/slub.c:3193 __slab_alloc mm/slub.c:3292 [inline] __slab_alloc_node mm/slub.c:3345 [inline] slab_alloc_node mm/slub.c:3442 [inline] __kmem_cache_alloc_node+0x25b/0x340 mm/slub.c:3491 __do_kmalloc_node mm/slab_common.c:967 [inline] __kmalloc_node_track_caller+0x9c/0x190 mm/slab_common.c:988 kmalloc_reserve net/core/skbuff.c:492 [inline] __alloc_skb+0x12c/0x2c0 net/core/skbuff.c:565 alloc_skb include/linux/skbuff.h:1270 [inline] __tcp_send_ack+0x98/0x5f0 net/ipv4/tcp_output.c:3957 tcp_rcv_established+0x1240/0x1a10 net/ipv4/tcp_input.c:5980 tcp_v4_do_rcv+0x479/0xac0 net/ipv4/tcp_ipv4.c:1721 tcp_v4_rcv+0x2831/0x3120 net/ipv4/tcp_ipv4.c:2142 ip_protocol_deliver_rcu+0x5d5/0xd40 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x269/0x480 net/ipv4/ip_input.c:233 dst_input include/net/dst.h:454 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:580 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:630 [inline] ip_sublist_rcv+0xa8b/0xb70 net/ipv4/ip_input.c:638 ip_list_rcv+0x443/0x490 net/ipv4/ip_input.c:673 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1446 [inline] free_pcp_prepare+0x751/0x780 mm/page_alloc.c:1496 free_unref_page_prepare mm/page_alloc.c:3369 [inline] free_unref_page+0x19/0x4c0 mm/page_alloc.c:3464 skb_free_frag include/linux/skbuff.h:3193 [inline] skb_free_head net/core/skbuff.c:820 [inline] skb_release_data+0x5d9/0x710 net/core/skbuff.c:851 skb_release_all net/core/skbuff.c:916 [inline] __kfree_skb+0x5b/0x1d0 net/core/skbuff.c:930 tcp_eat_recv_skb net/ipv4/tcp.c:1639 [inline] tcp_recvmsg_locked+0x14b2/0x25f0 net/ipv4/tcp.c:2634 tcp_recvmsg+0x22b/0x8b0 net/ipv4/tcp.c:2680 inet_recvmsg+0x13a/0x250 net/ipv4/af_inet.c:861 sock_recvmsg_nosec net/socket.c:995 [inline] sock_recvmsg net/socket.c:1013 [inline] sock_read_iter+0x3fa/0x530 net/socket.c:1086 call_read_iter include/linux/fs.h:2183 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x7cf/0xbc0 fs/read_write.c:470 ksys_read+0x19b/0x2c0 fs/read_write.c:613 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 Memory state around the buggy address: ffff888079ee5c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888079ee5d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888079ee5d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888079ee5e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888079ee5e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================