EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. loop0: detected capacity change from 1024 to 1023 ================================================================== BUG: KASAN: slab-out-of-bounds in ext4_read_inline_data fs/ext4/inline.c:209 [inline] BUG: KASAN: slab-out-of-bounds in ext4_read_inline_dir+0x48b/0xdf0 fs/ext4/inline.c:1483 Read of size 836 at addr ffff888048c69205 by task syz.0.368/8972 CPU: 0 UID: 0 PID: 8972 Comm: syz.0.368 Not tainted 6.11.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:119 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 kasan_check_range+0x282/0x290 mm/kasan/generic.c:189 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105 ext4_read_inline_data fs/ext4/inline.c:209 [inline] ext4_read_inline_dir+0x48b/0xdf0 fs/ext4/inline.c:1483 ext4_readdir+0x3bb/0x3500 fs/ext4/dir.c:158 iterate_dir+0x57a/0x810 fs/readdir.c:108 __do_sys_getdents64 fs/readdir.c:407 [inline] __se_sys_getdents64+0x20d/0x4f0 fs/readdir.c:392 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f319457cef9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3195324038 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f3194735f80 RCX: 00007f319457cef9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007f31945ef046 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3194735f80 R15: 00007fff45764c08 Allocated by task 8501: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4162 [inline] __kmalloc_node_track_caller_noprof+0x225/0x440 mm/slub.c:4181 kmemdup_noprof+0x2a/0x60 mm/util.c:133 __addrconf_sysctl_register+0xb1/0x3a0 net/ipv6/addrconf.c:7198 addrconf_sysctl_register+0x167/0x1c0 net/ipv6/addrconf.c:7264 ipv6_add_dev+0xcf6/0x1220 net/ipv6/addrconf.c:456 addrconf_notify+0x6a7/0x1020 net/ipv6/addrconf.c:3653 notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2032 [inline] call_netdevice_notifiers net/core/dev.c:2046 [inline] register_netdevice+0x167f/0x1b00 net/core/dev.c:10477 macvlan_common_newlink+0x1189/0x1930 drivers/net/macvlan.c:1534 rtnl_newlink_create net/core/rtnetlink.c:3510 [inline] __rtnl_newlink net/core/rtnetlink.c:3730 [inline] rtnl_newlink+0x1591/0x20a0 net/core/rtnetlink.c:3743 rtnetlink_rcv_msg+0x73f/0xcf0 net/core/rtnetlink.c:6647 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 __sys_sendto+0x3a4/0x4f0 net/socket.c:2204 __do_sys_sendto net/socket.c:2216 [inline] __se_sys_sendto net/socket.c:2212 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2212 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888048c68000 which belongs to the cache kmalloc-cg-4k of size 4096 The buggy address is located 1197 bytes to the right of allocated 3416-byte region [ffff888048c68000, ffff888048c68d58) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x48c68 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888024206481 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff88801a84f500 ffffea0000a9b800 dead000000000002 raw: 0000000000000000 0000000000040004 00000001fdffffff ffff888024206481 head: 00fff00000000040 ffff88801a84f500 ffffea0000a9b800 dead000000000002 head: 0000000000000000 0000000000040004 00000001fdffffff ffff888024206481 head: 00fff00000000003 ffffea0001231a01 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 7020, tgid 7020 (syz-executor), ts 198943325059, free_ts 197151482249 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1500 prep_new_page mm/page_alloc.c:1508 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3446 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4702 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x5f/0x120 mm/slub.c:2325 allocate_slab+0x5a/0x2f0 mm/slub.c:2488 new_slab mm/slub.c:2541 [inline] ___slab_alloc+0xcd1/0x14b0 mm/slub.c:3727 __slab_alloc+0x58/0xa0 mm/slub.c:3817 __slab_alloc_node mm/slub.c:3870 [inline] slab_alloc_node mm/slub.c:4029 [inline] __kmalloc_cache_noprof+0x1d5/0x2c0 mm/slub.c:4188 kmalloc_noprof include/linux/slab.h:681 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] snmp6_alloc_dev net/ipv6/addrconf.c:359 [inline] ipv6_add_dev+0x570/0x1220 net/ipv6/addrconf.c:409 addrconf_notify+0x6a7/0x1020 net/ipv6/addrconf.c:3653 notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2032 [inline] call_netdevice_notifiers net/core/dev.c:2046 [inline] register_netdevice+0x167f/0x1b00 net/core/dev.c:10477 veth_newlink+0x855/0xce0 drivers/net/veth.c:1860 rtnl_newlink_create net/core/rtnetlink.c:3510 [inline] __rtnl_newlink net/core/rtnetlink.c:3730 [inline] rtnl_newlink+0x1591/0x20a0 net/core/rtnetlink.c:3743 rtnetlink_rcv_msg+0x73f/0xcf0 net/core/rtnetlink.c:6647 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2550 page last free pid 62 tgid 62 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1101 [inline] __free_pages_ok+0xb46/0xcb0 mm/page_alloc.c:1221 __folio_put+0x2c8/0x440 mm/swap.c:128 folio_put include/linux/mm.h:1490 [inline] free_large_kmalloc+0x105/0x1c0 mm/slub.c:4569 kfree+0x1c4/0x360 mm/slub.c:4592 batadv_hash_destroy+0x39/0x70 net/batman-adv/hash.c:33 batadv_tt_local_table_free+0x2ae/0x300 net/batman-adv/translation-table.c:1392 batadv_tt_free+0x6e/0x960 net/batman-adv/translation-table.c:3582 batadv_mesh_free+0x94/0x140 net/batman-adv/main.c:280 batadv_softif_free+0x15/0x20 net/batman-adv/soft-interface.c:1003 netdev_run_todo+0xe1a/0x1000 net/core/dev.c:10762 default_device_exit_batch+0xa14/0xa90 net/core/dev.c:11898 ops_exit_list net/core/net_namespace.c:178 [inline] cleanup_net+0x89d/0xcc0 net/core/net_namespace.c:640 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd10 kernel/workqueue.c:3389 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 Memory state around the buggy address: ffff888048c69100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888048c69180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888048c69200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888048c69280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888048c69300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================