================================================================== BUG: KASAN: use-after-free in instrument_atomic_read_write include/linux/instrumented.h:102 [inline] BUG: KASAN: use-after-free in atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:1779 [inline] BUG: KASAN: use-after-free in __mutex_trylock_fast kernel/locking/mutex.c:176 [inline] BUG: KASAN: use-after-free in mutex_lock+0x86/0x1b0 kernel/locking/mutex.c:295 Write of size 8 at addr ffff888112a09050 by task udevd/421 CPU: 1 PID: 421 Comm: udevd Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/25/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x249/0x2a0 mm/kasan/generic.c:189 __kasan_check_write+0x14/0x20 mm/kasan/shadow.c:37 instrument_atomic_read_write include/linux/instrumented.h:102 [inline] atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:1779 [inline] __mutex_trylock_fast kernel/locking/mutex.c:176 [inline] mutex_lock+0x86/0x1b0 kernel/locking/mutex.c:295 steam_input_open+0x91/0x170 drivers/hid/hid-steam.c:297 input_open_device+0x184/0x310 drivers/input/input.c:650 evdev_open_device drivers/input/evdev.c:400 [inline] evdev_open+0x4b8/0x5e0 drivers/input/evdev.c:487 chrdev_open+0x593/0x600 fs/char_dev.c:414 do_dentry_open+0x885/0x11f0 fs/open.c:884 vfs_open+0x73/0x80 fs/open.c:1017 do_open fs/namei.c:3633 [inline] path_openat+0x2699/0x2f30 fs/namei.c:3790 do_filp_open+0x1ee/0x420 fs/namei.c:3817 do_sys_openat2+0x15e/0x820 fs/open.c:1343 do_sys_open fs/open.c:1359 [inline] __do_sys_openat fs/open.c:1375 [inline] __se_sys_openat fs/open.c:1370 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1370 x64_sys_call+0x783/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 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:0x7fe5ee4a7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007fff47f34f70 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fe5eebe8880 RCX: 00007fe5ee4a7407 RDX: 0000000000080000 RSI: 000055e312f52c00 RDI: ffffffffffffff9c RBP: 000055e312fb1020 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000055e2e0fe20c8 R13: 000055e2e0fe20ce R14: 00007fff47f35570 R15: 000055e2e0fe8bcc Allocated by task 24: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:380 [inline] __kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:389 kasan_kmalloc include/linux/kasan.h:212 [inline] __do_kmalloc_node mm/slab_common.c:938 [inline] __kmalloc_node_track_caller+0xb1/0x1e0 mm/slab_common.c:958 alloc_dr drivers/base/devres.c:116 [inline] devm_kmalloc+0x55/0x160 drivers/base/devres.c:833 devm_kzalloc include/linux/device.h:211 [inline] steam_probe+0x11a/0xb60 drivers/hid/hid-steam.c:741 hid_device_probe+0x267/0x3a0 drivers/hid/hid-core.c:2669 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2d7/0x9a0 drivers/base/dd.c:639 __driver_probe_device+0x193/0x270 drivers/base/dd.c:808 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966 bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429 __device_attach+0x2b0/0x420 drivers/base/dd.c:1038 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087 bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489 device_add+0xb0b/0xec0 drivers/base/core.c:3698 hid_add_device+0x3b8/0x580 drivers/hid/hid-core.c:2821 usbhid_probe+0xc12/0xff0 drivers/hid/usbhid/hid-core.c:1442 usb_probe_interface+0x621/0xb30 drivers/usb/core/driver.c:397 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2d7/0x9a0 drivers/base/dd.c:639 __driver_probe_device+0x193/0x270 drivers/base/dd.c:808 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966 bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429 __device_attach+0x2b0/0x420 drivers/base/dd.c:1038 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087 bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489 device_add+0xb0b/0xec0 drivers/base/core.c:3698 usb_set_configuration+0x1a01/0x1f70 drivers/usb/core/message.c:2223 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x154/0x260 drivers/usb/core/driver.c:294 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2d7/0x9a0 drivers/base/dd.c:639 __driver_probe_device+0x193/0x270 drivers/base/dd.c:808 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966 bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429 __device_attach+0x2b0/0x420 drivers/base/dd.c:1038 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087 bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489 device_add+0xb0b/0xec0 drivers/base/core.c:3698 usb_new_device+0x9f4/0x1500 drivers/usb/core/hub.c:2684 hub_port_connect drivers/usb/core/hub.c:5594 [inline] hub_port_connect_change drivers/usb/core/hub.c:5734 [inline] port_event drivers/usb/core/hub.c:5898 [inline] hub_event+0x27fb/0x4310 drivers/usb/core/hub.c:5980 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Freed by task 24: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:242 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:250 kasan_slab_free include/linux/kasan.h:178 [inline] slab_free_hook mm/slub.c:1750 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1776 slab_free mm/slub.c:3712 [inline] __kmem_cache_free+0xb7/0x1b0 mm/slub.c:3728 kfree+0x6f/0xf0 mm/slab_common.c:990 release_nodes+0xf9/0x230 drivers/base/devres.c:503 devres_release_all+0x148/0x1b0 drivers/base/devres.c:532 device_unbind_cleanup drivers/base/dd.c:530 [inline] __device_release_driver drivers/base/dd.c:1288 [inline] device_release_driver_internal+0x559/0x7e0 drivers/base/dd.c:1309 device_release_driver+0x19/0x20 drivers/base/dd.c:1332 bus_remove_device+0x2f0/0x350 drivers/base/bus.c:531 device_del+0x63c/0xe50 drivers/base/core.c:3886 hid_remove_device drivers/hid/hid-core.c:2869 [inline] hid_destroy_device+0x6a/0x110 drivers/hid/hid-core.c:2888 usbhid_disconnect+0x9f/0xc0 drivers/hid/usbhid/hid-core.c:1469 usb_unbind_interface+0x223/0x8b0 drivers/usb/core/driver.c:459 device_remove drivers/base/dd.c:550 [inline] __device_release_driver drivers/base/dd.c:1283 [inline] device_release_driver_internal+0x4e4/0x7e0 drivers/base/dd.c:1309 device_release_driver+0x19/0x20 drivers/base/dd.c:1332 bus_remove_device+0x2f0/0x350 drivers/base/bus.c:531 device_del+0x63c/0xe50 drivers/base/core.c:3886 usb_disable_device+0x3a8/0x750 drivers/usb/core/message.c:1472 usb_disconnect+0x32d/0x880 drivers/usb/core/hub.c:2339 hub_port_connect drivers/usb/core/hub.c:5433 [inline] hub_port_connect_change drivers/usb/core/hub.c:5734 [inline] port_event drivers/usb/core/hub.c:5898 [inline] hub_event+0x1a66/0x4310 drivers/usb/core/hub.c:5980 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 process_scheduled_works kernel/workqueue.c:2365 [inline] worker_thread+0xcc2/0x11d0 kernel/workqueue.c:2451 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff888112a09000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 80 bytes inside of 512-byte region [ffff888112a09000, ffff888112a09200) The buggy address belongs to the physical page: page:ffffea00044a8200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x112a08 head:ffffea00044a8200 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000122 ffff888100042f00 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 395, tgid 395 (kworker/1:3), ts 35152047429, free_ts 31533069078 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2672 prep_new_page+0x1c/0x110 mm/page_alloc.c:2679 get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4586 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5930 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1 allocate_slab mm/slub.c:1967 [inline] new_slab+0x98/0x3e0 mm/slub.c:2020 ___slab_alloc+0x70f/0xb70 mm/slub.c:3177 __slab_alloc+0x5e/0xa0 mm/slub.c:3263 slab_alloc_node mm/slub.c:3348 [inline] __kmem_cache_alloc_node+0x204/0x2d0 mm/slub.c:3423 __do_kmalloc_node mm/slab_common.c:937 [inline] __kmalloc_node_track_caller+0xa1/0x1e0 mm/slab_common.c:958 kmalloc_reserve net/core/skbuff.c:449 [inline] __alloc_skb+0x226/0x4a0 net/core/skbuff.c:518 alloc_skb include/linux/skbuff.h:1322 [inline] nlmsg_new include/net/netlink.h:987 [inline] inet6_ifa_notify net/ipv6/addrconf.c:5569 [inline] __ipv6_ifa_notify+0x200/0xe80 net/ipv6/addrconf.c:6227 ipv6_ifa_notify net/ipv6/addrconf.c:6279 [inline] addrconf_dad_completed+0x192/0xe80 net/ipv6/addrconf.c:4283 addrconf_dad_work+0xc1b/0x14a0 net/ipv6/addrconf.c:-1 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1580 [inline] free_pcp_prepare mm/page_alloc.c:1654 [inline] free_unref_page_prepare+0x80c/0x820 mm/page_alloc.c:3621 free_unref_page+0x93/0x530 mm/page_alloc.c:3719 free_the_page mm/page_alloc.c:863 [inline] __free_pages+0x67/0x100 mm/page_alloc.c:6020 __free_slab+0xc7/0x1a0 mm/slub.c:2044 free_slab mm/slub.c:2059 [inline] discard_slab mm/slub.c:2065 [inline] __unfreeze_partials+0x15a/0x190 mm/slub.c:2614 put_cpu_partial+0xa9/0x100 mm/slub.c:2690 __slab_free+0x1c4/0x280 mm/slub.c:3589 do_slab_free mm/slub.c:3666 [inline] ___cache_free+0xbf/0xd0 mm/slub.c:3722 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0xc6/0x140 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x14a/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x24/0x80 mm/kasan/common.c:311 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3382 [inline] slab_alloc mm/slub.c:3392 [inline] __kmem_cache_alloc_lru mm/slub.c:3399 [inline] kmem_cache_alloc+0x166/0x320 mm/slub.c:3408 getname_flags+0xba/0x510 fs/namei.c:139 vfs_fstatat fs/stat.c:266 [inline] __do_sys_newfstatat fs/stat.c:437 [inline] __se_sys_newfstatat+0x127/0x440 fs/stat.c:431 __x64_sys_newfstatat+0x9b/0xb0 fs/stat.c:431 Memory state around the buggy address: ffff888112a08f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888112a08f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888112a09000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888112a09080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888112a09100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== hid 0003:28DE:1102.0005: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0005: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0005: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0005: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0005: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0005: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0005: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0005: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0005: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0005: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0012: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0012: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0012: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0012: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0012: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0017: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0017: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0017: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0017: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0017: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0012: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0012: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0012: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0012: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0012: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0021: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0021: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0021: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0021: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0021: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0035: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0035: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0035: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0035: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0035: No HID_FEATURE_REPORT submitted - nothing to read