================================================================== BUG: KASAN: slab-use-after-free in rose_get_neigh+0x549/0x640 net/rose/rose_route.c:692 Read of size 1 at addr ffff88807fc59830 by task syz.5.2448/16867 CPU: 1 UID: 0 PID: 16867 Comm: syz.5.2448 Not tainted 6.15.0-rc6-syzkaller-00208-g3c21441eeffc #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xc3/0x670 mm/kasan/report.c:521 kasan_report+0xe0/0x110 mm/kasan/report.c:634 rose_get_neigh+0x549/0x640 net/rose/rose_route.c:692 rose_connect+0x2d4/0x1540 net/rose/af_rose.c:816 __sys_connect_file+0x141/0x1a0 net/socket.c:2038 __sys_connect+0x14d/0x170 net/socket.c:2057 __do_sys_connect net/socket.c:2063 [inline] __se_sys_connect net/socket.c:2060 [inline] __x64_sys_connect+0x72/0xb0 net/socket.c:2060 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f147ed8e969 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:00007f147fb90038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f147efb5fa0 RCX: 00007f147ed8e969 RDX: 0000000000000040 RSI: 00002000000002c0 RDI: 0000000000000005 RBP: 00007f147ee10ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f147efb5fa0 R15: 00007ffe21ec1068 Allocated by task 16328: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:394 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] loopback_open+0xa04/0x13a0 sound/drivers/aloop.c:1251 snd_pcm_open_substream+0xa5d/0x17f0 sound/core/pcm_native.c:2753 snd_pcm_oss_open_file sound/core/oss/pcm_oss.c:2439 [inline] snd_pcm_oss_open+0x735/0x1400 sound/core/oss/pcm_oss.c:2520 soundcore_open+0x40c/0x580 sound/sound_core.c:594 chrdev_open+0x231/0x6a0 fs/char_dev.c:414 do_dentry_open+0x741/0x1c10 fs/open.c:956 vfs_open+0x82/0x3f0 fs/open.c:1086 do_open fs/namei.c:3880 [inline] path_openat+0x1e5e/0x2d40 fs/namei.c:4039 do_filp_open+0x20b/0x470 fs/namei.c:4066 do_sys_openat2+0x11b/0x1d0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x174/0x210 fs/open.c:1455 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 16328: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x51/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2380 [inline] slab_free mm/slub.c:4642 [inline] kfree+0x2b6/0x4d0 mm/slub.c:4841 free_cable+0x37b/0x4b0 sound/drivers/aloop.c:1059 loopback_close+0x12e/0x180 sound/drivers/aloop.c:1341 snd_pcm_release_substream.part.0+0x114/0x340 sound/core/pcm_native.c:2719 snd_pcm_release_substream+0x5b/0x70 sound/core/pcm_native.c:2712 snd_pcm_oss_release_file sound/core/oss/pcm_oss.c:2398 [inline] snd_pcm_oss_release_file sound/core/oss/pcm_oss.c:2390 [inline] snd_pcm_oss_release+0x135/0x310 sound/core/oss/pcm_oss.c:2577 __fput+0x402/0xb70 fs/file_table.c:465 task_work_run+0x150/0x240 kernel/task_work.c:227 get_signal+0x1d1/0x26d0 kernel/signal.c:2807 arch_do_signal_or_restart+0x8f/0x7d0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x260 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88807fc59800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 48 bytes inside of freed 512-byte region [ffff88807fc59800, ffff88807fc59a00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807fc5b000 pfn:0x7fc58 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff88801b441c80 ffffea00017c6310 ffffea00010c1910 raw: ffff88807fc5b000 000000000010000d 00000000f5000000 0000000000000000 head: 00fff00000000240 ffff88801b441c80 ffffea00017c6310 ffffea00010c1910 head: ffff88807fc5b000 000000000010000d 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea0001ff1601 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 3471, tgid 3471 (kworker/u8:7), ts 73371006727, free_ts 73346674820 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1718 prep_new_page mm/page_alloc.c:1726 [inline] get_page_from_freelist+0x135c/0x3920 mm/page_alloc.c:3688 __alloc_frozen_pages_noprof+0x263/0x23a0 mm/page_alloc.c:4970 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2301 alloc_slab_page mm/slub.c:2450 [inline] allocate_slab mm/slub.c:2618 [inline] new_slab+0x244/0x340 mm/slub.c:2672 ___slab_alloc+0xd9c/0x1940 mm/slub.c:3858 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3948 __slab_alloc_node mm/slub.c:4023 [inline] slab_alloc_node mm/slub.c:4184 [inline] __do_kmalloc_node mm/slub.c:4326 [inline] __kmalloc_noprof+0x2f2/0x510 mm/slub.c:4339 kmalloc_noprof include/linux/slab.h:909 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] fib6_info_alloc+0x40/0x160 net/ipv6/ip6_fib.c:155 ip6_route_info_create+0x33f/0x18e0 net/ipv6/route.c:3802 addrconf_f6i_alloc+0x391/0x670 net/ipv6/route.c:4631 ipv6_add_addr+0x531/0x1fe0 net/ipv6/addrconf.c:1121 addrconf_add_linklocal+0x2a5/0x500 net/ipv6/addrconf.c:3310 addrconf_addr_gen+0x36d/0x3c0 net/ipv6/addrconf.c:3441 addrconf_dev_config net/ipv6/addrconf.c:3487 [inline] addrconf_init_auto_addrs+0x4b9/0x8f0 net/ipv6/addrconf.c:3571 addrconf_notify+0x6e2/0x19e0 net/ipv6/addrconf.c:3744 page last free pid 5810 tgid 5810 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0x69d/0xff0 mm/page_alloc.c:2725 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4147 [inline] slab_alloc_node mm/slub.c:4196 [inline] __kmalloc_cache_noprof+0x1f1/0x3e0 mm/slub.c:4353 kmalloc_noprof include/linux/slab.h:905 [inline] netdevice_queue_work drivers/infiniband/core/roce_gid_mgmt.c:664 [inline] netdevice_event+0x365/0x9d0 drivers/infiniband/core/roce_gid_mgmt.c:823 notifier_call_chain+0xbc/0x410 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:2176 call_netdevice_notifiers_extack net/core/dev.c:2214 [inline] call_netdevice_notifiers net/core/dev.c:2228 [inline] netif_set_mac_address+0x378/0x4a0 net/core/dev.c:9589 dev_set_mac_address+0xba/0x250 net/core/dev_api.c:335 bond_set_mac_address+0x377/0x7d0 drivers/net/bonding/bond_main.c:4902 netif_set_mac_address+0x30c/0x4a0 net/core/dev.c:9584 do_setlink.constprop.0+0x9f1/0x44b0 net/core/rtnetlink.c:3103 rtnl_changelink net/core/rtnetlink.c:3769 [inline] __rtnl_newlink net/core/rtnetlink.c:3928 [inline] rtnl_newlink+0x1446/0x2000 net/core/rtnetlink.c:4065 rtnetlink_rcv_msg+0x95b/0xe90 net/core/rtnetlink.c:6955 netlink_rcv_skb+0x16a/0x440 net/netlink/af_netlink.c:2534 Memory state around the buggy address: ffff88807fc59700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807fc59780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807fc59800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807fc59880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807fc59900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================