================================================================== BUG: KASAN: use-after-free in consumer_filter kernel/events/uprobes.c:877 [inline] BUG: KASAN: use-after-free in filter_chain kernel/events/uprobes.c:888 [inline] BUG: KASAN: use-after-free in uprobe_mmap+0xb76/0x1130 kernel/events/uprobes.c:1395 Read of size 8 at addr ffff8880760f2528 by task syz.5.3677/20098 CPU: 0 PID: 20098 Comm: syz.5.3677 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 consumer_filter kernel/events/uprobes.c:877 [inline] filter_chain kernel/events/uprobes.c:888 [inline] uprobe_mmap+0xb76/0x1130 kernel/events/uprobes.c:1395 __mmap_region mm/mmap.c:2873 [inline] mmap_region+0x1701/0x1c50 mm/mmap.c:2924 do_mmap+0x9ce/0x10d0 mm/mmap.c:1444 vm_mmap_pgoff+0x1c1/0x2d0 mm/util.c:520 ksys_mmap_pgoff+0x4bf/0x720 mm/mmap.c:1490 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f3f799a9559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3f7a8b2028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f3f79c25fa0 RCX: 00007f3f799a9559 RDX: 0000000000000005 RSI: 0000000000001000 RDI: 0000200000800000 RBP: 00007f3f79a38136 R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000000012 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3f79c26038 R14: 00007f3f79c25fa0 R15: 00007ffe550e7828 Allocated by task 19678: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384 kmalloc include/linux/slab.h:563 [inline] addr_event+0xc3/0x470 drivers/infiniband/core/roce_gid_mgmt.c:840 inet6addr_event+0x9c/0xc0 drivers/infiniband/core/roce_gid_mgmt.c:883 notifier_call_chain kernel/notifier.c:87 [inline] atomic_notifier_call_chain+0x17a/0x2b0 kernel/notifier.c:225 ipv6_add_addr+0xcd2/0xfc0 net/ipv6/addrconf.c:1182 inet6_addr_add+0x43e/0x9c0 net/ipv6/addrconf.c:3028 inet6_rtm_newaddr+0x6c9/0x8f0 net/ipv6/addrconf.c:4988 rtnetlink_rcv_msg+0x863/0xfb0 net/core/rtnetlink.c:6166 netlink_rcv_skb+0x1ef/0x440 net/netlink/af_netlink.c:2516 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x7ad/0x920 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x8ad/0xbd0 net/netlink/af_netlink.c:1877 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] __sys_sendto+0x497/0x650 net/socket.c:2153 __do_sys_sendto net/socket.c:2165 [inline] __se_sys_sendto net/socket.c:2161 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2161 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 8233: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x126/0x1f0 mm/kasan/common.c:237 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1735 [inline] slab_free_freelist_hook+0x133/0x1b0 mm/slub.c:1761 slab_free mm/slub.c:3694 [inline] __kmem_cache_free+0xb6/0x200 mm/slub.c:3707 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 insert_work+0x54/0x3c0 kernel/workqueue.c:1361 __queue_work+0xae2/0xee0 kernel/workqueue.c:1520 queue_work_on+0x124/0x1f0 kernel/workqueue.c:1548 inet6addr_event+0x9c/0xc0 drivers/infiniband/core/roce_gid_mgmt.c:883 notifier_call_chain kernel/notifier.c:87 [inline] atomic_notifier_call_chain+0x17a/0x2b0 kernel/notifier.c:225 ipv6_add_addr+0xcd2/0xfc0 net/ipv6/addrconf.c:1182 inet6_addr_add+0x43e/0x9c0 net/ipv6/addrconf.c:3028 inet6_rtm_newaddr+0x6c9/0x8f0 net/ipv6/addrconf.c:4988 rtnetlink_rcv_msg+0x863/0xfb0 net/core/rtnetlink.c:6166 netlink_rcv_skb+0x1ef/0x440 net/netlink/af_netlink.c:2516 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x7ad/0x920 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x8ad/0xbd0 net/netlink/af_netlink.c:1877 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] __sys_sendto+0x497/0x650 net/socket.c:2153 __do_sys_sendto net/socket.c:2165 [inline] __se_sys_sendto net/socket.c:2161 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2161 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Second to last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 insert_work+0x54/0x3c0 kernel/workqueue.c:1361 __queue_work+0xae2/0xee0 kernel/workqueue.c:1520 queue_work_on+0x124/0x1f0 kernel/workqueue.c:1548 inet6addr_event+0x9c/0xc0 drivers/infiniband/core/roce_gid_mgmt.c:883 notifier_call_chain kernel/notifier.c:87 [inline] atomic_notifier_call_chain+0x17a/0x2b0 kernel/notifier.c:225 addrconf_ifdown+0xe94/0x1a30 net/ipv6/addrconf.c:3938 addrconf_notify+0x405/0xf60 net/ipv6/addrconf.c:-1 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:455 call_netdevice_notifiers_extack net/core/dev.c:2052 [inline] call_netdevice_notifiers net/core/dev.c:2066 [inline] dev_close_many+0x2a2/0x400 net/core/dev.c:1614 dev_close+0x154/0x210 net/core/dev.c:1636 cfg80211_shutdown_all_interfaces+0xab/0x1c0 net/wireless/core.c:282 cfg80211_rfkill_set_block+0x29/0x40 net/wireless/core.c:314 rfkill_set_block+0x1c1/0x3c0 net/rfkill/core.c:360 rfkill_fop_write+0x453/0x560 net/rfkill/core.c:1318 vfs_write+0x2dc/0x9a0 fs/read_write.c:582 ksys_write+0x14d/0x260 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff8880760f2500 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 40 bytes inside of 192-byte region [ffff8880760f2500, ffff8880760f25c0) The buggy address belongs to the physical page: page:ffffea0001d83c80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x760f2 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0000a87e80 dead000000000002 ffff888018441a00 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 4278, tgid 4278 (syz-executor), ts 90733634056, free_ts 90634030564 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560 prep_new_page mm/page_alloc.c:2567 [inline] get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658 __alloc_pages_node include/linux/gfp.h:237 [inline] alloc_slab_page+0x4f/0x180 mm/slub.c:1807 allocate_slab mm/slub.c:1950 [inline] new_slab+0x87/0x2d0 mm/slub.c:2003 ___slab_alloc+0xbc5/0x1240 mm/slub.c:3161 __slab_alloc mm/slub.c:3247 [inline] slab_alloc_node mm/slub.c:3332 [inline] __kmem_cache_alloc_node+0x126/0x270 mm/slub.c:3405 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc_node+0xa2/0x240 mm/slab_common.c:943 kmalloc_array_node include/linux/slab.h:676 [inline] kcalloc_node include/linux/slab.h:681 [inline] memcg_alloc_slab_cgroups+0x81/0x120 mm/memcontrol.c:2889 memcg_slab_post_alloc_hook mm/slab.h:533 [inline] slab_post_alloc_hook+0xba/0x490 mm/slab.h:750 slab_alloc_node mm/slub.c:3366 [inline] slab_alloc mm/slub.c:3374 [inline] __kmem_cache_alloc_lru mm/slub.c:3381 [inline] kmem_cache_alloc+0x18b/0x2f0 mm/slub.c:3390 vm_area_dup+0x23/0x1a0 kernel/fork.c:468 dup_mmap kernel/fork.c:647 [inline] dup_mm kernel/fork.c:1556 [inline] copy_mm+0xb08/0x16e0 kernel/fork.c:1605 copy_process+0x1952/0x4070 kernel/fork.c:2362 kernel_clone+0x24b/0x900 kernel/fork.c:2769 __do_sys_clone kernel/fork.c:2910 [inline] __se_sys_clone kernel/fork.c:2894 [inline] __x64_sys_clone+0x1a7/0x220 kernel/fork.c:2894 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1487 [inline] free_pcp_prepare mm/page_alloc.c:1537 [inline] free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414 free_unref_page_list+0xbb/0x8e0 mm/page_alloc.c:3555 release_pages+0x20d1/0x2340 mm/swap.c:1035 tlb_batch_pages_flush mm/mmu_gather.c:60 [inline] tlb_flush_mmu_free mm/mmu_gather.c:255 [inline] tlb_flush_mmu+0x105/0x220 mm/mmu_gather.c:262 tlb_finish_mmu+0xf0/0x220 mm/mmu_gather.c:394 exit_mmap+0x388/0x970 mm/mmap.c:3305 __mmput+0x118/0x3a0 kernel/fork.c:1214 exit_mm+0x24d/0x350 kernel/exit.c:572 do_exit+0x958/0x2570 kernel/exit.c:874 do_group_exit+0x229/0x2e0 kernel/exit.c:1030 __do_sys_exit_group kernel/exit.c:1041 [inline] __se_sys_exit_group kernel/exit.c:1039 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1039 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff8880760f2400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880760f2480: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc >ffff8880760f2500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880760f2580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8880760f2600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================