From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) (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 70A9E3F076F for ; Tue, 28 Apr 2026 12:03:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777377793; cv=none; b=bJ6i3evudh3fYaECpQ79z2NU7TGdawT1CjD1zVzQSZgMtnG1twofQHtiMdnAYZnHsgZjOq3QrpeUtjvDJn/4SVpBbRS86KUm/xOmagqrZfSZrCL2KjVgrf/yIuKFaULISkOYMa+My3ByGbsuszeXxj8OGoyemPa276Pct/z3cUA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777377793; c=relaxed/simple; bh=Pc4HhHtPVpCza4txvXGuAyzYYHSGtB7gwWR8dMEse0w=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=c603do6tEdrbgZlSSpAl8avJhO3tx5Sp/vqrjS9cb3KbJVQt2EJ1/r5wh05w00cVeALL+v9+mNlpvGnvBqxoRLprRA8vEErbDxQuvzs5t2uBzH0kFL0zaP5FlQRaEZu2nMf4lapxluVjGh065ZpKS5IcN/NaTOuxp+JbsJnnf3k= 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.216.70 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-pj1-f70.google.com with SMTP id 98e67ed59e1d1-35daf3d3030so12004408a91.1 for ; Tue, 28 Apr 2026 05:03:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777377783; x=1777982583; 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=bOCsvEI8Jyi478QicQYGHUAxTH5D/RaSAs26yS+JZhc=; b=G83M21O9C8kvd3eNJcpNttQuTldeQTtw+MxckVBvVfMPualyd6aRzONan54oJ+r8Bn FuAQpTnxIrHFHf/aURD49M338NYOcogpB7gQ5qw87OQDZB/5SbwmgiuAKfH2trU05VHM iT3dnS5DeMd/yXxEN9QckQgOSESnU6Fy1UJRluAxrUXw3Bxx4zP7CZTZeiajbRVfQf2S G9rq4YXaECjmiZJHQ9YbnKRUpOPnF51YmzXRfbiEIPuxxr14LIquGk0iCCGFBIVG6nZ/ oymoZsDzQ5nQQ95rvYUCLRDWWUfy0bsJiUaE1C08KlicARgrShtNlQYfTIJJc3hJsQ4Y h9iw== X-Forwarded-Encrypted: i=1; AFNElJ8RKWjId/f4fBlf9uKVQLnJzET7Ee8AKgLfeuC4nLD7u3a5mfGaBtm98qMN/hwR4WIk2iPv8DGVJiS8PvM=@vger.kernel.org X-Gm-Message-State: AOJu0YyjlyJTjwWGwX4wOP13HYUEdr+YippyZqZMKPv4IYbSlpY7BODF nCcmiE6TOBoyoqjjgzatmNDVSgJzeIqaluC5iNUmqQYNUwQQFenNLXcv+tt66C9/coFCV73llmE 7IemPkWEk9VGEzbr16/GS/MAwtbfRsFegxkBd2kfzTEEVZlM+jHUjiLcF3hM= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a17:90b:1fc4:b0:35c:cba:3453 with SMTP id 98e67ed59e1d1-36492054900mr3052959a91.22.1777377782758; Tue, 28 Apr 2026 05:03:02 -0700 (PDT) Date: Tue, 28 Apr 2026 05:03:02 -0700 In-Reply-To: <20260428113359.2216-1-hdanton@sina.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69f0a1f6.170a0220.d4955.000b.GAE@google.com> Subject: Re: [syzbot] [input?] [usb?] KASAN: slab-use-after-free Read in hidraw_report_event From: syzbot To: hdanton@sina.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 usbhid_power =========================================================[ 164.792757][ T6670] ================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read include/linux/instrumented.h:82 [inline] BUG: KASAN: slab-use-after-free in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] BUG: KASAN: slab-use-after-free in usbhid_power+0x56/0x170 drivers/hid/usbhid/hid-core.c:1283 Read of size 8 at addr ffff88805a2e6988 by task syz.3.20/6670 CPU: 0 UID: 0 PID: 6670 Comm: syz.3.20 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 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200 instrument_atomic_read include/linux/instrumented.h:82 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] usbhid_power+0x56/0x170 drivers/hid/usbhid/hid-core.c:1283 hid_hw_power include/linux/hid.h:1239 [inline] hidraw_open+0x24d/0x8a0 drivers/hid/hidraw.c:302 chrdev_open+0x4d0/0x5f0 fs/char_dev.c:411 do_dentry_open+0x83d/0x13e0 fs/open.c:947 vfs_open+0x3b/0x350 fs/open.c:1079 do_open fs/namei.c:4699 [inline] path_openat+0x2e43/0x38a0 fs/namei.c:4858 do_file_open+0x23e/0x4a0 fs/namei.c:4887 do_sys_openat2+0x113/0x200 fs/open.c:1364 do_sys_open fs/open.c:1370 [inline] __do_sys_openat fs/open.c:1386 [inline] __se_sys_openat fs/open.c:1381 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1381 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6b2f1ad60e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f6b2e84db28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f6b2e84e6c0 RCX: 00007f6b2f1ad60e RDX: 0000000000000002 RSI: 00007f6b2e84dc00 RDI: ffffffffffffff9c RBP: 00007f6b2e84dc00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd R13: 00007f6b2f466038 R14: 00007f6b2f465fa0 R15: 00007fff63a84eb8 Allocated by task 16: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366 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] kmem_cache_alloc_node_noprof+0x22a/0x6e0 mm/slub.c:4950 kmalloc_reserve net/core/skbuff.c:613 [inline] __alloc_skb+0x27d/0x7d0 net/core/skbuff.c:713 skb_copy+0x188/0x800 net/core/skbuff.c:2182 mac80211_hwsim_tx_frame_no_nl+0xe82/0x1650 drivers/net/wireless/virtual/mac80211_hwsim.c:1991 mac80211_hwsim_tx_frame+0x1b5/0x200 drivers/net/wireless/virtual/mac80211_hwsim.c:2400 mac80211_hwsim_beacon_tx+0x3e8/0x870 drivers/net/wireless/virtual/mac80211_hwsim.c:2501 __iterate_interfaces+0x2ab/0x590 net/mac80211/util.c:772 ieee80211_iterate_active_interfaces_atomic+0xdb/0x180 net/mac80211/util.c:808 mac80211_hwsim_beacon+0xbb/0x180 drivers/net/wireless/virtual/mac80211_hwsim.c:2531 __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 Freed by task 1510: 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 skb_kfree_head net/core/skbuff.c:1075 [inline] skb_free_head net/core/skbuff.c:1087 [inline] skb_release_data+0x828/0xa60 net/core/skbuff.c:1114 skb_release_all net/core/skbuff.c:1189 [inline] __kfree_skb+0x5d/0x210 net/core/skbuff.c:1203 ieee80211_iface_work+0xbdb/0x1390 net/mac80211/iface.c:1851 cfg80211_wiphy_work+0x2cf/0x460 net/wireless/core.c:513 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 ffff88805a2e6700 which belongs to the cache skbuff_small_head of size 704 The buggy address is located 648 bytes inside of freed 704-byte region [ffff88805a2e6700, ffff88805a2e69c0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5a2e4 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 ffff88801dac5c80 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800130013 00000000f5000000 0000000000000000 head: 0080000000000040 ffff88801dac5c80 dead000000000100 dead000000000122 head: 0000000000000000 0000000800130013 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 6675, tgid 6675 (udevd), ts 163875825764, free_ts 163818248807 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] kmem_cache_alloc_node_noprof+0x4f4/0x6e0 mm/slub.c:4950 kmalloc_reserve net/core/skbuff.c:613 [inline] __alloc_skb+0x27d/0x7d0 net/core/skbuff.c:713 netlink_sendmsg+0x5d4/0xb40 net/netlink/af_netlink.c:1869 sock_sendmsg_nosec+0x112/0x150 net/socket.c:797 __sock_sendmsg net/socket.c:812 [inline] ____sys_sendmsg+0x55c/0x870 net/socket.c:2716 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2770 __sys_sendmsg net/socket.c:2802 [inline] __do_sys_sendmsg net/socket.c:2807 [inline] __se_sys_sendmsg net/socket.c:2805 [inline] __x64_sys_sendmsg+0x1c3/0x2a0 net/socket.c:2805 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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 usb_unbind_interface+0x26e/0x910 drivers/usb/core/driver.c:458 device_remove drivers/base/dd.c:621 [inline] __device_release_driver drivers/base/dd.c:1352 [inline] device_release_driver_internal+0x4d9/0x870 drivers/base/dd.c:1375 bus_remove_device+0x45a/0x570 drivers/base/bus.c:657 device_del+0x52b/0x900 drivers/base/core.c:3895 usb_disable_device+0x3d4/0x8d0 drivers/usb/core/message.c:1478 usb_disconnect+0x315/0x970 drivers/usb/core/hub.c:2345 hub_port_connect drivers/usb/core/hub.c:5407 [inline] hub_port_connect_change drivers/usb/core/hub.c:5707 [inline] port_event drivers/usb/core/hub.c:5871 [inline] hub_event+0x1cf9/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+0xbee/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: ffff88805a2e6880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805a2e6900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88805a2e6980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff88805a2e6a00: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ffff88805a2e6a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== Tested on: commit: 39704f00 Add linux-next specific files for 20260427 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=161652ce580000 kernel config: https://syzkaller.appspot.com/x/.config?x=dea2372337a7c0e 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=146a7236580000