================================================================== 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+0x80/0x1a0 kernel/locking/mutex.c:295 Write of size 8 at addr ffff88813025a050 by task udevd/473 CPU: 0 PID: 473 Comm: udevd Not tainted 6.1.141-syzkaller-1169940-g36d69f6a49eb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0xee/0x150 lib/dump_stack.c:106 print_address_description+0x71/0x210 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:427 kasan_report+0x122/0x150 mm/kasan/report.c:531 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x280/0x290 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+0x80/0x1a0 kernel/locking/mutex.c:295 steam_input_open+0x91/0x160 drivers/hid/hid-steam.c:297 input_open_device+0x17b/0x300 drivers/input/input.c:650 evdev_open_device drivers/input/evdev.c:400 [inline] evdev_open+0x4b1/0x5c0 drivers/input/evdev.c:487 chrdev_open+0x5a5/0x680 fs/char_dev.c:414 do_dentry_open+0x88e/0x1260 fs/open.c:884 vfs_open+0x73/0x80 fs/open.c:1015 do_open fs/namei.c:3625 [inline] path_openat+0x2681/0x2f50 fs/namei.c:3782 do_filp_open+0x1c1/0x3c0 fs/namei.c:3809 do_sys_openat2+0x185/0x7e0 fs/open.c:1341 do_sys_open fs/open.c:1357 [inline] __do_sys_openat fs/open.c:1373 [inline] __se_sys_openat fs/open.c:1368 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1368 x64_sys_call+0x783/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f31174a7407 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:00007ffce141fbf0 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f3117c98880 RCX: 00007f31174a7407 RDX: 0000000000080000 RSI: 00005572202e77a0 RDI: ffffffffffffff9c RBP: 00005572202c8530 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 00005571ea1560c8 R13: 00005571ea1560ce R14: 00007ffce14201f0 R15: 00005571ea15cbcc Allocated by task 352: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_alloc_info+0x25/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:379 [inline] __kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:388 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+0x11b/0xb50 drivers/hid/hid-steam.c:741 hid_device_probe+0x268/0x390 drivers/hid/hid-core.c:2626 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2cb/0x960 drivers/base/dd.c:639 __driver_probe_device+0x198/0x280 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+0x183/0x210 drivers/base/bus.c:429 __device_attach+0x2a2/0x400 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+0xb4d/0xef0 drivers/base/core.c:3698 hid_add_device+0x38f/0x540 drivers/hid/hid-core.c:2778 usbhid_probe+0xbb6/0xfa0 drivers/hid/usbhid/hid-core.c:1424 usb_probe_interface+0x610/0xaf0 drivers/usb/core/driver.c:397 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2cb/0x960 drivers/base/dd.c:639 __driver_probe_device+0x198/0x280 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+0x183/0x210 drivers/base/bus.c:429 __device_attach+0x2a2/0x400 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+0xb4d/0xef0 drivers/base/core.c:3698 usb_set_configuration+0x19c2/0x1f10 drivers/usb/core/message.c:2165 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x159/0x270 drivers/usb/core/driver.c:294 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2cb/0x960 drivers/base/dd.c:639 __driver_probe_device+0x198/0x280 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+0x183/0x210 drivers/base/bus.c:429 __device_attach+0x2a2/0x400 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+0xb4d/0xef0 drivers/base/core.c:3698 usb_new_device+0xa70/0x1520 drivers/usb/core/hub.c:2656 hub_port_connect drivers/usb/core/hub.c:5566 [inline] hub_port_connect_change drivers/usb/core/hub.c:5706 [inline] port_event drivers/usb/core/hub.c:5866 [inline] hub_event+0x2a5d/0x4680 drivers/usb/core/hub.c:5948 process_one_work+0x71f/0xc40 kernel/workqueue.c:2299 worker_thread+0xa29/0x11f0 kernel/workqueue.c:2446 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Freed by task 352: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x31/0x50 mm/kasan/generic.c:516 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:241 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:249 kasan_slab_free include/linux/kasan.h:178 [inline] slab_free_hook mm/slub.c:1745 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1771 slab_free mm/slub.c:3686 [inline] __kmem_cache_free+0xb7/0x1b0 mm/slub.c:3702 kfree+0x6f/0xf0 mm/slab_common.c:990 release_nodes+0xf9/0x230 drivers/base/devres.c:503 devres_release_all+0x149/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+0x581/0x820 drivers/base/dd.c:1309 device_release_driver+0x19/0x20 drivers/base/dd.c:1332 bus_remove_device+0x2ee/0x350 drivers/base/bus.c:531 device_del+0x6a4/0xeb0 drivers/base/core.c:3886 hid_remove_device drivers/hid/hid-core.c:2826 [inline] hid_destroy_device+0x6a/0x110 drivers/hid/hid-core.c:2845 usbhid_disconnect+0x9f/0xc0 drivers/hid/usbhid/hid-core.c:1451 usb_unbind_interface+0x223/0x8d0 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+0x508/0x820 drivers/base/dd.c:1309 device_release_driver+0x19/0x20 drivers/base/dd.c:1332 bus_remove_device+0x2ee/0x350 drivers/base/bus.c:531 device_del+0x6a4/0xeb0 drivers/base/core.c:3886 usb_disable_device+0x3a8/0x750 drivers/usb/core/message.c:1414 usb_disconnect+0x31e/0x860 drivers/usb/core/hub.c:2311 hub_port_connect drivers/usb/core/hub.c:5405 [inline] hub_port_connect_change drivers/usb/core/hub.c:5706 [inline] port_event drivers/usb/core/hub.c:5866 [inline] hub_event+0x1bd5/0x4680 drivers/usb/core/hub.c:5948 process_one_work+0x71f/0xc40 kernel/workqueue.c:2299 worker_thread+0xa29/0x11f0 kernel/workqueue.c:2446 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 ffff88813025a000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 80 bytes inside of 512-byte region [ffff88813025a000, ffff88813025a200) The buggy address belongs to the physical page: page:ffffea0004c09600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x130258 head:ffffea0004c09600 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 480, tgid 480 (kworker/1:6), ts 56445842166, free_ts 53801002953 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2637 prep_new_page+0x1c/0x110 mm/page_alloc.c:2644 get_page_from_freelist+0x2c7b/0x2cf0 mm/page_alloc.c:4539 __alloc_pages+0x19e/0x3a0 mm/page_alloc.c:5850 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1 allocate_slab mm/slub.c:1962 [inline] new_slab+0x98/0x3d0 mm/slub.c:2015 ___slab_alloc+0x6f6/0xb50 mm/slub.c:3203 __slab_alloc+0x5e/0xa0 mm/slub.c:3302 slab_alloc_node mm/slub.c:3387 [inline] __kmem_cache_alloc_node+0x203/0x2c0 mm/slub.c:3462 __do_kmalloc_node mm/slab_common.c:937 [inline] __kmalloc_node_track_caller+0xa0/0x1e0 mm/slab_common.c:958 kmalloc_reserve net/core/skbuff.c:449 [inline] __alloc_skb+0x236/0x4b0 net/core/skbuff.c:518 alloc_skb include/linux/skbuff.h:1290 [inline] nlmsg_new include/net/netlink.h:991 [inline] inet6_ifa_notify net/ipv6/addrconf.c:5571 [inline] __ipv6_ifa_notify+0x1e8/0xdc0 net/ipv6/addrconf.c:6229 ipv6_ifa_notify net/ipv6/addrconf.c:6281 [inline] addrconf_dad_completed+0x175/0xe80 net/ipv6/addrconf.c:4285 addrconf_dad_work+0xc25/0x14b0 net/ipv6/addrconf.c:-1 process_one_work+0x71f/0xc40 kernel/workqueue.c:2299 worker_thread+0xa29/0x11f0 kernel/workqueue.c:2446 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1545 [inline] free_pcp_prepare mm/page_alloc.c:1619 [inline] free_unref_page_prepare+0x742/0x750 mm/page_alloc.c:3581 free_unref_page+0x8f/0x530 mm/page_alloc.c:3677 free_the_page mm/page_alloc.c:830 [inline] __free_pages+0x67/0x100 mm/page_alloc.c:5939 __vunmap+0x9af/0xb70 mm/vmalloc.c:2729 __vfree mm/vmalloc.c:2778 [inline] vfree+0x61/0x90 mm/vmalloc.c:2809 kcov_put kernel/kcov.c:437 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:533 __fput+0x1fc/0x8f0 fs/file_table.c:320 ____fput+0x15/0x20 fs/file_table.c:348 task_work_run+0x1db/0x240 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0xa1d/0x2650 kernel/exit.c:877 do_group_exit+0x210/0x2d0 kernel/exit.c:1027 get_signal+0x13b5/0x1520 kernel/signal.c:2889 arch_do_signal_or_restart+0xb0/0x1030 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x7a/0xb0 kernel/entry/common.c:174 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303 Memory state around the buggy address: ffff888130259f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888130259f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88813025a000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88813025a080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88813025a100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== hid 0003:28DE:1102.0001: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0001: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0001: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0001: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0001: No HID_FEATURE_REPORT submitted - nothing to read