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 C69643BB9EB for ; Mon, 27 Apr 2026 12:49: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=1777294145; cv=none; b=OfGXMvucclmqBy4xHm5cEbsAUEesN7KikHsM60if5hnc+CvgCj6VoZzfyo/7OZxiPce/0kbBt2RbQCPMerA1ML5THJN59FUD/W1ml3OoiqeyiYIXffmcstP2N10CIeRtnGvGJwSPYzm6mV5eLmpLgxWafThsF15qKWUJgNfvFGE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777294145; c=relaxed/simple; bh=Nn5rYcn8ZTf1g/D5MSOCFpMvMQtFOQhO2o9nkk62jDo=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=skTpca/QKmMMXIGypvysqyABPzXBO/hBZnEBzz+CnsThZRaYUq7D87vsOjb3z12dHBbZtzDqrU1rY4WkknPJgAEhoq3RmMeC/Rx0O7zRWM/t5LYw9x6eUX23MAxv8kYydRwhBH0dBQE+9v53Jrf771G9ZGOAnK5OFN4xuDBuURw= 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-68e924f632bso17255079eaf.0 for ; Mon, 27 Apr 2026 05:49:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777294142; x=1777898942; 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=hUtOsxpyP9e7kPaqpnslkrn9G4K4U044dV2QlHKxw/w=; b=K3peK7d5BN5M7zwvQtCd6VDfWNbLJ0HkLgX6tAhA4PuIkdkFKpWGdLvC5wXJojmrDY cG7wIvTjJwfh8hnUYkZlT5RASQm501be77ANl6khUxnrNKhF8D11JUrGuHtIO9l0ZL6S hTE0rlfQfsUh1FQ8AKhbzLNH/aidZxSCWM2aRh1dF935uVE2MCt/Bw+5glQ3+j8fBDDO VZffUP0Fu2D/6Wk2vBSysbrXcUzNYwh0rU4bjOYSTSwnaK9AK5QJ98c2eQK3Sx529nwL IKfXKUiJRJW+VVYiKvUb8y+Gzxp2ffzKN0crblHYDUhI0Nmd2rMhhfNdzdRccsX5rTk2 bybw== X-Forwarded-Encrypted: i=1; AFNElJ8kvEgP9fpGZvxbQm9qxVrTdY6JLrBJ6uFEyAjzJEV2VBRjKpkC9nEw4bKhT+cYxIrR4oqxOGCtwySkxUA=@vger.kernel.org X-Gm-Message-State: AOJu0Yw9HMl6rgBD8NTm3xObesnoeYQ+jokUZ2dyWwaaqWlk28OuRilM y500WOGHYP35PKIvhaWHP239nV4ukQ6IpBB/dYZVejC4bmO7+eGHJp9Jz5A22jWW/PdHewiLEPU 280JVh9CdAZWgM2GQsZTLMudSHL45RWF5qiZzy+R7gshVkljp3YusgwHi0cM= 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:1b19:b0:696:1862:b107 with SMTP id 006d021491bc7-6961862b12bmr11275694eaf.53.1777294142225; Mon, 27 Apr 2026 05:49:02 -0700 (PDT) Date: Mon, 27 Apr 2026 05:49:02 -0700 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69ef5b3e.a00a0220.316485.000d.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: ffff88805fe30000 claimed: 4, size: 1, data: ffff888046630000, __hid_input_report after psu raw event, hid: ffff88805fe30000 claimed: 4, __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 ffff88805d993108 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+0x2ff/0x660 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 5930: 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+0x5ec/0x810 drivers/hid/hid-core.c:2827 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:2973 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 Freed by task 5930: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/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:2689 [inline] slab_free mm/slub.c:6246 [inline] kfree+0x1c5/0x6c0 mm/slub.c:6561 hidraw_disconnect+0x4f/0x60 drivers/hid/hidraw.c:662 hid_disconnect drivers/hid/hid-core.c:2368 [inline] hid_hw_stop+0x101/0x1e0 drivers/hid/hid-core.c:2413 corsairpsu_probe+0x327/0x3c0 drivers/hwmon/corsair-psu.c:826 __hid_device_probe drivers/hid/hid-core.c:2789 [inline] hid_device_probe+0x5ec/0x810 drivers/hid/hid-core.c:2827 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:2973 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 ffff88805d993000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 264 bytes inside of freed 512-byte region [ffff88805d993000, ffff88805d993200) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5d990 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 6438, tgid 6438 (syz-executor), ts 146028154099, free_ts 138107673454 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] mca_alloc net/ipv6/mcast.c:871 [inline] __ipv6_dev_mc_inc+0x44f/0xa50 net/ipv6/mcast.c:961 ipv6_add_dev+0xe9f/0x1410 net/ipv6/addrconf.c:475 addrconf_notify+0x771/0x1050 net/ipv6/addrconf.c:3662 notifier_call_chain+0x1ad/0x3d0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2288 [inline] call_netdevice_notifiers net/core/dev.c:2302 [inline] register_netdevice+0x18d5/0x1ed0 net/core/dev.c:11466 register_netdev+0x40/0x60 net/core/dev.c:11544 sit_init_net+0x228/0x5d0 net/ipv6/sit.c:1860 ops_init+0x35c/0x5c0 net/core/net_namespace.c:137 setup_net+0x118/0x340 net/core/net_namespace.c:446 page last free pid 6296 tgid 6296 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 __slab_free+0x252/0x2a0 mm/slub.c:5608 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4569 [inline] slab_alloc_node mm/slub.c:4898 [inline] __do_kmalloc_node mm/slub.c:5294 [inline] __kmalloc_node_track_caller_noprof+0x323/0x7e0 mm/slub.c:5403 kmemdup_noprof+0x2b/0x70 mm/util.c:138 kmemdup_noprof include/linux/fortify-string.h:763 [inline] neigh_sysctl_register+0xae/0xa90 net/core/neighbour.c:3861 addrconf_sysctl_register+0xb3/0x1c0 net/ipv6/addrconf.c:7379 ipv6_add_dev+0xd82/0x1410 net/ipv6/addrconf.c:460 addrconf_notify+0x771/0x1050 net/ipv6/addrconf.c:3662 notifier_call_chain+0x1ad/0x3d0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2288 [inline] call_netdevice_notifiers net/core/dev.c:2302 [inline] register_netdevice+0x18d5/0x1ed0 net/core/dev.c:11466 veth_newlink+0x67b/0xb70 drivers/net/veth.c:1889 rtnl_newlink_create+0x329/0xb70 net/core/rtnetlink.c:3863 __rtnl_newlink net/core/rtnetlink.c:3994 [inline] rtnl_newlink+0x166a/0x1bb0 net/core/rtnetlink.c:4109 Memory state around the buggy address: ffff88805d993000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805d993080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88805d993100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805d993180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805d993200: 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=131d92ce580000 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=12fe4506580000