loop4: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: slab-out-of-bounds in reiserfs_xattr_get+0xe6/0x570 fs/reiserfs/xattr.c:674 Read of size 8 at addr ffff88802bb4dd98 by task syz-executor.4/19466 CPU: 0 PID: 19466 Comm: syz-executor.4 Not tainted 6.2.0-syzkaller-12944-ge492250d5252 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/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:319 [inline] print_report+0x163/0x540 mm/kasan/report.c:430 kasan_report+0x143/0x170 mm/kasan/report.c:536 reiserfs_xattr_get+0xe6/0x570 fs/reiserfs/xattr.c:674 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:307 acl_permission_check fs/namei.c:352 [inline] generic_permission+0x362/0x550 fs/namei.c:405 do_inode_permission fs/namei.c:459 [inline] inode_permission+0x233/0x460 fs/namei.c:526 may_open+0x2d6/0x440 fs/namei.c:3188 do_open fs/namei.c:3558 [inline] path_openat+0x2652/0x3170 fs/namei.c:3715 do_filp_open+0x234/0x490 fs/namei.c:3742 do_sys_openat2+0x13f/0x500 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_openat fs/open.c:1380 [inline] __se_sys_openat fs/open.c:1375 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1375 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:0x7f1db763e284 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:00007f1db844ff10 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000005f42 RCX: 00007f1db763e284 RDX: 0000000000010000 RSI: 0000000020000000 RDI: 00000000ffffff9c RBP: 0000000020000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000010000 R13: 0000000020000000 R14: 00007f1db844ffe0 R15: 00000000200001c0 Allocated by task 5115: 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 kasan_kmalloc include/linux/kasan.h:196 [inline] __do_kmalloc_node mm/slab_common.c:967 [inline] __kmalloc+0xb3/0x1a0 mm/slab_common.c:980 kmalloc include/linux/slab.h:584 [inline] kzalloc include/linux/slab.h:720 [inline] fib_create_info+0xa3b/0x2510 net/ipv4/fib_semantics.c:1454 fib_table_insert+0x1f6/0x1f20 net/ipv4/fib_trie.c:1236 fib_magic net/ipv4/fib_frontend.c:1101 [inline] fib_add_ifaddr+0xf50/0x1730 net/ipv4/fib_frontend.c:1145 fib_netdev_event+0x649/0x760 net/ipv4/fib_frontend.c:1483 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xd4/0x170 kernel/notifier.c:455 __dev_notify_flags+0x359/0x650 dev_change_flags+0xf0/0x1a0 net/core/dev.c:8604 do_setlink+0xe93/0x2ae0 net/core/rtnetlink.c:2833 __rtnl_newlink net/core/rtnetlink.c:3623 [inline] rtnl_newlink+0x172d/0x2010 net/core/rtnetlink.c:3670 rtnetlink_rcv_msg+0x825/0xf40 net/core/rtnetlink.c:6174 netlink_rcv_skb+0x1df/0x430 net/netlink/af_netlink.c:2574 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x7c3/0x990 net/netlink/af_netlink.c:1365 netlink_sendmsg+0xa2a/0xd60 net/netlink/af_netlink.c:1942 sock_sendmsg_nosec net/socket.c:722 [inline] sock_sendmsg net/socket.c:745 [inline] __sys_sendto+0x475/0x630 net/socket.c:2145 __do_sys_sendto net/socket.c:2157 [inline] __se_sys_sendto net/socket.c:2153 [inline] __x64_sys_sendto+0xde/0xf0 net/socket.c:2153 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 The buggy address belongs to the object at ffff88802bb4dc00 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 160 bytes to the right of allocated 248-byte region [ffff88802bb4dc00, ffff88802bb4dcf8) The buggy address belongs to the physical page: page:ffffea0000aed300 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2bb4c head:ffffea0000aed300 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffff888012441b40 dead000000000100 dead000000000122 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5100, tgid 5100 (syz-executor.2), ts 153218222285, free_ts 153020698578 prep_new_page mm/page_alloc.c:2552 [inline] get_page_from_freelist+0x37e0/0x3970 mm/page_alloc.c:4325 __alloc_pages+0x291/0x7f0 mm/page_alloc.c:5591 alloc_slab_page+0x6a/0x160 mm/slub.c:1851 allocate_slab mm/slub.c:1998 [inline] new_slab+0x84/0x2f0 mm/slub.c:2051 ___slab_alloc+0xa85/0x10a0 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+0x1b8/0x2a0 mm/slub.c:3491 __do_kmalloc_node mm/slab_common.c:966 [inline] __kmalloc+0xa2/0x1a0 mm/slab_common.c:980 kmalloc include/linux/slab.h:584 [inline] kzalloc include/linux/slab.h:720 [inline] fib_create_info+0xa3b/0x2510 net/ipv4/fib_semantics.c:1454 fib_table_insert+0x1f6/0x1f20 net/ipv4/fib_trie.c:1236 fib_magic net/ipv4/fib_frontend.c:1101 [inline] fib_add_ifaddr+0x483/0x1730 net/ipv4/fib_frontend.c:1123 fib_inetaddr_event+0x12f/0x2c0 net/ipv4/fib_frontend.c:1437 notifier_call_chain kernel/notifier.c:87 [inline] blocking_notifier_call_chain+0x108/0x1b0 kernel/notifier.c:382 __inet_insert_ifa+0x9cf/0xbd0 net/ipv4/devinet.c:555 inet_rtm_newaddr+0x8d7/0x18e0 net/ipv4/devinet.c:961 rtnetlink_rcv_msg+0x825/0xf40 net/core/rtnetlink.c:6174 netlink_rcv_skb+0x1df/0x430 net/netlink/af_netlink.c:2574 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1453 [inline] free_pcp_prepare mm/page_alloc.c:1503 [inline] free_unref_page_prepare+0xf0e/0xf70 mm/page_alloc.c:3387 free_unref_page+0x37/0x3f0 mm/page_alloc.c:3482 discard_slab mm/slub.c:2098 [inline] __unfreeze_partials+0x1b1/0x1f0 mm/slub.c:2637 put_cpu_partial+0x116/0x180 mm/slub.c:2713 qlist_free_all+0x22/0x60 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x15a/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x23/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x68/0x3a0 mm/slab.h:769 slab_alloc_node mm/slub.c:3452 [inline] __kmem_cache_alloc_node+0x14c/0x2a0 mm/slub.c:3491 kmalloc_trace+0x2a/0x60 mm/slab_common.c:1061 kmalloc include/linux/slab.h:580 [inline] kzalloc include/linux/slab.h:720 [inline] nsim_fib6_rt_create drivers/net/netdevsim/fib.c:547 [inline] nsim_fib6_rt_insert drivers/net/netdevsim/fib.c:752 [inline] nsim_fib6_event drivers/net/netdevsim/fib.c:856 [inline] nsim_fib_event drivers/net/netdevsim/fib.c:889 [inline] nsim_fib_event_work+0x19c2/0x4130 drivers/net/netdevsim/fib.c:1492 process_one_work+0x915/0x13a0 kernel/workqueue.c:2390 process_scheduled_works kernel/workqueue.c:2453 [inline] worker_thread+0xd20/0x1210 kernel/workqueue.c:2539 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Memory state around the buggy address: ffff88802bb4dc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc ffff88802bb4dd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88802bb4dd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88802bb4de00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802bb4de80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc ==================================================================