From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f71.google.com (mail-oo1-f71.google.com [209.85.161.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F1043CCFC4 for ; Mon, 27 Apr 2026 14:09:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777298944; cv=none; b=L2bjcIq51Tq7x/qOgJnsUbXE/XYgD2RB+/aNMVc+/elBpmysTcCLlfOD7pDBY4TiRDbU/jOmxfdrH87eIaTaYCI6HtR3Q6zNeG/tNhvyG3/qnAf4VTmRFGq5pR1+JN6HIMCbT/0aiQdGnNOPjlLsekiUEDyo+8IEI2F1NpP4+yI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777298944; c=relaxed/simple; bh=o62K1naYlrhtdZCfuQEnca3hpgwk4PeKHS0ZerHli0A=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=rofsw9Q3JVK8K2ttDW7al9KDyNFrCS+j+tKrea0RsBJPjdKn3jJ1F8moyttUlXIBtZUglWgdxGNGX/vFtVKOxsGK7+9tn9fMY2Z1tSTX0ngvGM8MbPY/s2Rf5kkP6vpDlEfudsR44dLgkJnWSkIGnipYqtOvqFEc6doKttXoR9U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.161.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oo1-f71.google.com with SMTP id 006d021491bc7-6948d83a548so18582799eaf.0 for ; Mon, 27 Apr 2026 07:09:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777298942; x=1777903742; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=I9RGYqlRSndSrFepuyMm24+bHEeXO68IqXnh/LBclRM=; b=m1Bu3BVMT1wYnrQCsueJBCrVe2VvqF3CZixaLzLgQVraU0KA0Swg6OT3Cq35P6GNaR AdZNxi3crqnYE6vcUXqbGHxjnzbiMS7q2yFt56DldprJHHdv2gHQy/KUdAmUpu7fsT6W iepd9p5EdObqLVeCEuwMfLqcNNGLDV+mi6t732lMmsnM1IZO9Pq8Fxyp4Q6YFTlKwvto zUjglxrFbWx8Yuz/lNmr7a8JfgeSLjh1PrI5IlAT4WetwcTbZjbRnbQT3a2ypTiB/H2I 7Z4ck/pq1MRJe3YDUEflCbsUTTIM8VjBAFBXQHEljRXd0DdJXWxaI8Q/6uJzoRKsIySS 5prg== X-Forwarded-Encrypted: i=1; AFNElJ+4t6BUk/0MibTQBu/aDoZNi4I3q06VJfX6wQPVZtDurvzTaOXiELxkqqJJ8hDeKpCtgmjPAMYwj8JDdAk=@vger.kernel.org X-Gm-Message-State: AOJu0Yz5R56XzZ495bgNo7XVLdOtQr0eFtUQkwfRmRqnb5zH0oo839eh M/VrSlfJKkz7BKeg+g6INe/SFVEC5U/MdTXuNVy8ugsQzQF1YuuPWrZKrY95EO8xcK0l6GITIzd sfgR7JS8s4F7br5ZcoiVu5d7J+YN+jyyhVGIxU0zPPs5uw0TcrMNuiB9UnKY= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6820:8586:20b0:696:2cf3:3bc5 with SMTP id 006d021491bc7-6962cf34929mr4351162eaf.31.1777298942187; Mon, 27 Apr 2026 07:09:02 -0700 (PDT) Date: Mon, 27 Apr 2026 07:09:02 -0700 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69ef6dfe.050a0220.1eaaa4.0001.GAE@google.com> Subject: Re: [syzbot] [input?] [usb?] KASAN: slab-use-after-free Read in hidraw_report_event From: syzbot To: eadavis@qq.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: KASAN: slab-use-after-free Read in hidraw_report_event before psu raw event, hid: ffff8880398f0000 claimed: 4, size: 1, data: ffff88803b938000, lk (ffff8880398f18e0) cnt: 0, __hid_input_report ================================================================== BUG: KASAN: slab-use-after-free in rt_spin_lock+0x83/0x400 kernel/locking/spinlock_rt.c:56 Read of size 1 at addr ffff888042804908 by task ktimers/1/30 CPU: 1 UID: 0 PID: 30 Comm: ktimers/1 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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 __kasan_check_byte+0x2a/0x40 mm/kasan/common.c:574 kasan_check_byte include/linux/kasan.h:402 [inline] lock_acquire+0x84/0x350 kernel/locking/lockdep.c:5844 rt_spin_lock+0x83/0x400 kernel/locking/spinlock_rt.c:56 spin_lock include/linux/spinlock_rt.h:45 [inline] hidraw_report_event+0x5d/0x3a0 drivers/hid/hidraw.c:577 hid_report_raw_event+0x311/0x1730 drivers/hid/hid-core.c:2076 __hid_input_report drivers/hid/hid-core.c:2157 [inline] hid_input_report+0x2ea/0x630 drivers/hid/hid-core.c:2180 hid_irq_in+0x47e/0x6d0 drivers/hid/usbhid/hid-core.c:286 __usb_hcd_giveback_urb+0x3b3/0x5e0 drivers/usb/core/hcd.c:1657 dummy_timer+0x8a9/0x47d0 drivers/usb/gadget/udc/dummy_hcd.c:2005 __run_hrtimer kernel/time/hrtimer.c:1930 [inline] __hrtimer_run_queues+0x405/0xb10 kernel/time/hrtimer.c:1994 hrtimer_run_softirq+0x18f/0x260 kernel/time/hrtimer.c:2011 handle_softirqs+0x1de/0x6d0 kernel/softirq.c:626 __do_softirq kernel/softirq.c:660 [inline] run_ktimerd+0x69/0x100 kernel/softirq.c:1155 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 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 Allocated by task 6609: 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+0x3a6/0x690 mm/slub.c:5415 kmalloc_noprof include/linux/slab.h:950 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] hidraw_connect+0x57/0x430 drivers/hid/hidraw.c:606 hid_connect+0x5bf/0x19d0 drivers/hid/hid-core.c:2283 hid_hw_start+0xa8/0x120 drivers/hid/hid-core.c:2393 corsairpsu_probe+0xd9/0x3c0 drivers/hwmon/corsair-psu.c:782 __hid_device_probe drivers/hid/hid-core.c:2789 [inline] hid_device_probe+0x65b/0x8e0 drivers/hid/hid-core.c:2831 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x267/0xaf0 drivers/base/dd.c:709 __driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871 driver_probe_device+0x4f/0x240 drivers/base/dd.c:901 __device_attach_driver+0x279/0x430 drivers/base/dd.c:1029 bus_for_each_drv+0x25b/0x2f0 drivers/base/bus.c:500 __device_attach+0x2c8/0x450 drivers/base/dd.c:1101 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156 bus_probe_device+0x12d/0x220 drivers/base/bus.c:613 device_add+0x7e9/0xbb0 drivers/base/core.c:3706 hid_add_device+0x272/0x3e0 drivers/hid/hid-core.c:2977 usbhid_probe+0xbb3/0x1080 drivers/hid/usbhid/hid-core.c:1448 usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x267/0xaf0 drivers/base/dd.c:709 __driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871 driver_probe_device+0x4f/0x240 drivers/base/dd.c:901 __device_attach_driver+0x279/0x430 drivers/base/dd.c:1029 bus_for_each_drv+0x25b/0x2f0 drivers/base/bus.c:500 __device_attach+0x2c8/0x450 drivers/base/dd.c:1101 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156 bus_probe_device+0x12d/0x220 drivers/base/bus.c:613 device_add+0x7e9/0xbb0 drivers/base/core.c:3706 usb_set_configuration+0x1a87/0x2110 drivers/usb/core/message.c:2268 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250 usb_probe_device+0x1c4/0x3b0 drivers/usb/core/driver.c:291 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x267/0xaf0 drivers/base/dd.c:709 __driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871 driver_probe_device+0x4f/0x240 drivers/base/dd.c:901 __device_attach_driver+0x279/0x430 drivers/base/dd.c:1029 bus_for_each_drv+0x25b/0x2f0 drivers/base/bus.c:500 __device_attach+0x2c8/0x450 drivers/base/dd.c:1101 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156 bus_probe_device+0x12d/0x220 drivers/base/bus.c:613 device_add+0x7e9/0xbb0 drivers/base/core.c:3706 usb_new_device+0x9f8/0x16e0 drivers/usb/core/hub.c:2695 hub_port_connect drivers/usb/core/hub.c:5567 [inline] hub_port_connect_change drivers/usb/core/hub.c:5707 [inline] port_event drivers/usb/core/hub.c:5871 [inline] hub_event+0x2a49/0x4f60 drivers/usb/core/hub.c:5953 process_one_work+0x9a3/0x1710 kernel/workqueue.c:3312 process_scheduled_works kernel/workqueue.c:3403 [inline] worker_thread+0xba8/0x11e0 kernel/workqueue.c:3489 kthread+0x388/0x470 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 The buggy address belongs to the object at ffff888042804800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 264 bytes inside of freed 512-byte region [ffff888042804800, ffff888042804a00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x42804 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x80000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0080000000000040 ffff88813fe14c80 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 head: 0080000000000040 ffff88813fe14c80 dead000000000100 dead000000000122 head: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 head: 0080000000000002 ffffffffffffff01 00000000ffffffff 00000000ffffffff head: 0000000000000000 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 5897, tgid 5897 (syz-executor), ts 92047685272, free_ts 91305001513 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x22d/0x280 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x27d6/0x2850 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226 alloc_slab_page mm/slub.c:3278 [inline] allocate_slab+0x77/0x660 mm/slub.c:3467 new_slab mm/slub.c:3525 [inline] refill_objects+0x33c/0x3d0 mm/slub.c:7251 refill_sheaf mm/slub.c:2816 [inline] __pcs_replace_empty_main+0x373/0x720 mm/slub.c:4651 alloc_from_pcs mm/slub.c:4749 [inline] slab_alloc_node mm/slub.c:4883 [inline] __kmalloc_cache_noprof+0x44e/0x690 mm/slub.c:5410 kmalloc_noprof include/linux/slab.h:950 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] rxrpc_alloc_peer+0x7d/0x340 net/rxrpc/peer_object.c:229 rxrpc_service_prealloc_one+0x1f4/0xe20 net/rxrpc/call_accept.c:73 afs_charge_preallocation+0x394/0x4e0 fs/afs/rxrpc.c:758 afs_open_socket+0x33c/0x3f0 fs/afs/rxrpc.c:112 afs_net_init+0x6ce/0x8f0 fs/afs/main.c:116 ops_init+0x35c/0x5c0 net/core/net_namespace.c:137 setup_net+0x118/0x340 net/core/net_namespace.c:446 copy_net_ns+0x50e/0x730 net/core/net_namespace.c:579 create_new_namespaces+0x3e7/0x6a0 kernel/nsproxy.c:132 page last free pid 32 tgid 32 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0xf9b/0x10f0 mm/page_alloc.c:2943 kasan_depopulate_vmalloc_pte+0x6d/0x90 mm/kasan/shadow.c:484 apply_to_pte_range mm/memory.c:3322 [inline] apply_to_pmd_range mm/memory.c:3366 [inline] apply_to_pud_range mm/memory.c:3402 [inline] apply_to_p4d_range mm/memory.c:3438 [inline] __apply_to_page_range+0xbdc/0x1420 mm/memory.c:3474 __kasan_release_vmalloc+0xa2/0xd0 mm/kasan/shadow.c:602 kasan_release_vmalloc include/linux/kasan.h:593 [inline] kasan_release_vmalloc_node mm/vmalloc.c:2284 [inline] purge_vmap_node+0x220/0x960 mm/vmalloc.c:2306 __purge_vmap_area_lazy+0x779/0xb40 mm/vmalloc.c:2396 drain_vmap_area_work+0x27/0x40 mm/vmalloc.c:2430 process_one_work+0x9a3/0x1710 kernel/workqueue.c:3312 process_scheduled_works kernel/workqueue.c:3403 [inline] worker_thread+0xba8/0x11e0 kernel/workqueue.c:3489 kthread+0x388/0x470 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 Memory state around the buggy address: ffff888042804800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888042804880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888042804900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888042804980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888042804a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== Tested on: commit: 7080e32d Add linux-next specific files for 20260424 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=14d46b6c580000 kernel config: https://syzkaller.appspot.com/x/.config?x=d941ac7f11ceb230 dashboard link: https://syzkaller.appspot.com/bug?extid=9eebf5f6544c5e873858 compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8 patch: https://syzkaller.appspot.com/x/patch.diff?x=1086916a580000