================================================================== BUG: KASAN: slab-use-after-free in consumer_filter kernel/events/uprobes.c:1133 [inline] BUG: KASAN: slab-use-after-free in filter_chain kernel/events/uprobes.c:1143 [inline] BUG: KASAN: slab-use-after-free in uprobe_mmap+0xee9/0x13c0 kernel/events/uprobes.c:1628 Read of size 8 at addr ffff888074c3f528 by task syz.0.3386/17631 CPU: 0 UID: 0 PID: 17631 Comm: syz.0.3386 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 consumer_filter kernel/events/uprobes.c:1133 [inline] filter_chain kernel/events/uprobes.c:1143 [inline] uprobe_mmap+0xee9/0x13c0 kernel/events/uprobes.c:1628 __mmap_complete+0x421/0x4b0 mm/vma.c:2628 __mmap_region mm/vma.c:2783 [inline] mmap_region+0x119f/0x2310 mm/vma.c:2860 do_mmap+0xc3b/0x10c0 mm/mmap.c:560 vm_mmap_pgoff+0x272/0x4e0 mm/util.c:581 ksys_mmap_pgoff+0x4dc/0x760 mm/mmap.c:606 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa80c99e0d9 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:00007fa80d7fb028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fa80cc25fa0 RCX: 00007fa80c99e0d9 RDX: 0000000000000005 RSI: 0000000000001000 RDI: 0000200000800000 RBP: 00007fa80ca35024 R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000000012 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa80cc26038 R14: 00007fa80cc25fa0 R15: 00007ffde400f0d8 Allocated by task 17494: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x331/0x660 mm/slub.c:5489 _kmalloc_noprof include/linux/slab.h:988 [inline] _kzalloc_noprof include/linux/slab.h:1309 [inline] shrinker_alloc+0x59/0xb10 mm/shrinker.c:695 alloc_super fs/super.c:401 [inline] sget_fc+0xe29/0x1a40 fs/super.c:889 sget_dev fs/super.c:1486 [inline] get_tree_bdev_flags+0x212/0x4f0 fs/super.c:1873 vfs_get_tree+0x92/0x2a0 fs/super.c:1947 fc_mount fs/namespace.c:1198 [inline] do_new_mount_fc fs/namespace.c:3772 [inline] do_new_mount+0x319/0xdc0 fs/namespace.c:3848 do_mount fs/namespace.c:4181 [inline] __do_sys_mount fs/namespace.c:4397 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4374 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 23: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2677 [inline] slab_free mm/slub.c:6377 [inline] kfree+0x1c5/0x640 mm/slub.c:6692 rcu_do_batch kernel/rcu/tree.c:2645 [inline] rcu_core+0x794/0x10b0 kernel/rcu/tree.c:2897 handle_softirqs+0x226/0x860 kernel/softirq.c:645 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1108 smpboot_thread_fn+0x565/0xa70 kernel/smpboot.c:160 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 __call_rcu_common kernel/rcu/tree.c:3159 [inline] call_rcu+0xee/0x8b0 kernel/rcu/tree.c:3279 deactivate_locked_super+0x98/0x110 fs/super.c:602 cleanup_mnt+0x3d3/0x460 fs/namespace.c:1317 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x204/0x770 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline] do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888074c3f500 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 40 bytes inside of freed 192-byte region [ffff888074c3f500, ffff888074c3f5c0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888074c3f500 pfn:0x74c3f flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff88813fe3f3c0 ffffea0000a26390 ffffea0000a7a650 raw: ffff888074c3f500 000000080010000e 00000000f5000000 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 0xd2c00(GFP_NOIO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1208, tgid 1208 (kworker/1:2), ts 93342458378, free_ts 93328344938 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1859 prep_new_page mm/page_alloc.c:1867 [inline] get_page_from_freelist+0x21fe/0x2270 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5304 alloc_slab_page mm/slub.c:3266 [inline] allocate_slab+0x79/0x5e0 mm/slub.c:3380 new_slab mm/slub.c:3426 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7310 refill_sheaf mm/slub.c:2804 [inline] __pcs_replace_empty_main+0x2c3/0x6b0 mm/slub.c:4675 alloc_from_pcs mm/slub.c:4773 [inline] slab_alloc_node mm/slub.c:4905 [inline] __do_kmalloc_node mm/slub.c:5333 [inline] __kmalloc_noprof+0x489/0x720 mm/slub.c:5359 _kmalloc_noprof include/linux/slab.h:992 [inline] usb_alloc_urb+0x46/0x150 drivers/usb/core/urb.c:75 usb_internal_control_msg drivers/usb/core/message.c:110 [inline] usb_control_msg+0x118/0x3e0 drivers/usb/core/message.c:167 get_port_status drivers/usb/core/hub.c:607 [inline] hub_ext_port_status+0x114/0x810 drivers/usb/core/hub.c:624 hub_port_wait_reset drivers/usb/core/hub.c:-1 [inline] hub_port_reset+0x73f/0x1810 drivers/usb/core/hub.c:3101 hub_port_init+0xf48/0x28c0 drivers/usb/core/hub.c:5064 hub_port_connect drivers/usb/core/hub.c:5504 [inline] hub_port_connect_change drivers/usb/core/hub.c:5715 [inline] port_event drivers/usb/core/hub.c:5879 [inline] hub_event+0x24e8/0x4d30 drivers/usb/core/hub.c:5961 process_one_work kernel/workqueue.c:3322 [inline] process_scheduled_works+0xa88/0x14c0 kernel/workqueue.c:3405 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3486 kthread+0x38b/0x480 kernel/kthread.c:436 page last free pid 5606 tgid 5606 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0xc22/0xd20 mm/page_alloc.c:2950 rcu_do_batch kernel/rcu/tree.c:2645 [inline] rcu_core+0x794/0x10b0 kernel/rcu/tree.c:2897 handle_softirqs+0x226/0x860 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:767 irq_exit_rcu+0x9/0x30 kernel/softirq.c:784 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 Memory state around the buggy address: ffff888074c3f400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888074c3f480: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc >ffff888074c3f500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888074c3f580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888074c3f600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================