================================================================== BUG: KASAN: use-after-free in instrument_atomic_read_write include/linux/instrumented.h:101 [inline] BUG: KASAN: use-after-free in atomic64_try_cmpxchg_acquire include/asm-generic/atomic-instrumented.h:1515 [inline] BUG: KASAN: use-after-free in atomic_long_try_cmpxchg_acquire include/asm-generic/atomic-long.h:443 [inline] BUG: KASAN: use-after-free in __mutex_trylock_fast kernel/locking/mutex.c:173 [inline] BUG: KASAN: use-after-free in mutex_lock+0x7f/0xe0 kernel/locking/mutex.c:298 Write of size 8 at addr ffff88811a1fe040 by task syz.8.1524/5685 CPU: 0 PID: 5685 Comm: syz.8.1524 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x169/0x1d8 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0xe2/0x130 mm/kasan/report.c:452 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:101 [inline] atomic64_try_cmpxchg_acquire include/asm-generic/atomic-instrumented.h:1515 [inline] atomic_long_try_cmpxchg_acquire include/asm-generic/atomic-long.h:443 [inline] __mutex_trylock_fast kernel/locking/mutex.c:173 [inline] mutex_lock+0x7f/0xe0 kernel/locking/mutex.c:298 steam_input_open+0x91/0x160 drivers/hid/hid-steam.c:297 input_open_device+0x14c/0x2a0 drivers/input/input.c:635 evdev_open_device drivers/input/evdev.c:400 [inline] evdev_open+0x4d2/0x5e0 drivers/input/evdev.c:487 chrdev_open+0x597/0x670 fs/char_dev.c:414 do_dentry_open+0x793/0x1090 fs/open.c:819 vfs_open+0x73/0x80 fs/open.c:942 do_open fs/namei.c:3391 [inline] path_openat+0x27ad/0x3160 fs/namei.c:3509 do_filp_open+0x1b3/0x3e0 fs/namei.c:3536 do_sys_openat2+0x14c/0x6d0 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_openat fs/open.c:1249 [inline] __se_sys_openat fs/open.c:1244 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1244 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f00181be510 Code: 48 89 44 24 20 75 93 44 89 54 24 0c e8 49 94 02 00 44 8b 54 24 0c 89 da 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 38 44 89 c7 89 44 24 0c e8 9c 94 02 00 8b 44 RSP: 002b:00007f0016c06b70 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f00181be510 RDX: 0000000000000000 RSI: 00007f0016c06c10 RDI: 00000000ffffff9c RBP: 00007f0016c06c10 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: cccccccccccccccd R13: 00007f0018407128 R14: 00007f0018407090 R15: 00007ffe7a045698 Allocated by task 0: (stack is not available) Freed by task 571: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4a/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:362 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1600 [inline] slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1626 slab_free mm/slub.c:3208 [inline] kfree+0xc0/0x270 mm/slub.c:4196 release_nodes+0x753/0x7d0 drivers/base/devres.c:524 devres_release_all+0x7c/0xa0 drivers/base/devres.c:545 __device_release_driver drivers/base/dd.c:1190 [inline] device_release_driver_internal+0x4cb/0x750 drivers/base/dd.c:1221 device_release_driver+0x19/0x20 drivers/base/dd.c:1244 bus_remove_device+0x2dd/0x340 drivers/base/bus.c:535 device_del+0x696/0xed0 drivers/base/core.c:3452 hid_remove_device drivers/hid/hid-core.c:2512 [inline] hid_destroy_device+0x6a/0x110 drivers/hid/hid-core.c:2531 usbhid_disconnect+0x9f/0xc0 drivers/hid/usbhid/hid-core.c:1448 usb_unbind_interface+0x212/0x8c0 drivers/usb/core/driver.c:459 __device_release_driver drivers/base/dd.c:-1 [inline] device_release_driver_internal+0x4bc/0x750 drivers/base/dd.c:1221 device_release_driver+0x19/0x20 drivers/base/dd.c:1244 bus_remove_device+0x2dd/0x340 drivers/base/bus.c:535 device_del+0x696/0xed0 drivers/base/core.c:3452 usb_disable_device+0x3a8/0x750 drivers/usb/core/message.c:1411 usb_disconnect+0x31e/0x850 drivers/usb/core/hub.c:2310 hub_port_connect drivers/usb/core/hub.c:5338 [inline] hub_port_connect_change drivers/usb/core/hub.c:5639 [inline] port_event drivers/usb/core/hub.c:5805 [inline] hub_event+0x1a88/0x42c0 drivers/usb/core/hub.c:5887 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 worker_thread+0xa6a/0x13b0 kernel/workqueue.c:2447 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the object at ffff88811a1fe000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 64 bytes inside of 512-byte region [ffff88811a1fe000, ffff88811a1fe200) The buggy address belongs to the page: page:ffffea0004687f00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11a1fc head:ffffea0004687f00 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 ffffea0004793700 0000000200000002 ffff888100043080 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 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 3918, ts 184215794771, free_ts 172959940883 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x2235/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x268/0x5f0 mm/page_alloc.c:5370 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2a6/0x450 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] __kmalloc+0x201/0x330 mm/slub.c:4034 kmalloc include/linux/slab.h:557 [inline] kzalloc include/linux/slab.h:664 [inline] new_dir fs/proc/proc_sysctl.c:958 [inline] get_subdir fs/proc/proc_sysctl.c:1003 [inline] __register_sysctl_table+0xa38/0x1250 fs/proc/proc_sysctl.c:1352 register_net_sysctl+0x2c/0x40 net/sysctl_net.c:121 __addrconf_sysctl_register+0x26e/0x3d0 net/ipv6/addrconf.c:7062 addrconf_sysctl_register+0x147/0x1a0 net/ipv6/addrconf.c:7109 ipv6_add_dev+0xbaf/0x10a0 net/ipv6/addrconf.c:450 addrconf_notify+0x582/0xe90 net/ipv6/addrconf.c:3571 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:410 call_netdevice_notifiers_info net/core/dev.c:2054 [inline] call_netdevice_notifiers_extack net/core/dev.c:2066 [inline] call_netdevice_notifiers+0x111/0x190 net/core/dev.c:2080 register_netdevice+0x1043/0x13c0 net/core/dev.c:10087 page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] __free_pages_ok+0x7fc/0x820 mm/page_alloc.c:1629 free_the_page mm/page_alloc.c:5431 [inline] __free_pages+0xdd/0x380 mm/page_alloc.c:5440 __free_slab+0xcf/0x190 mm/slub.c:1899 free_slab mm/slub.c:1914 [inline] discard_slab mm/slub.c:1920 [inline] unfreeze_partials+0x15f/0x190 mm/slub.c:2415 put_cpu_partial+0xc1/0x180 mm/slub.c:2451 __slab_free+0x2c9/0x3a0 mm/slub.c:3100 do_slab_free mm/slub.c:3196 [inline] ___cache_free+0x111/0x130 mm/slub.c:3215 qlink_free+0x50/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x160 mm/kasan/quarantine.c:283 ____kasan_kmalloc mm/kasan/common.c:475 [inline] __kasan_krealloc+0xaa/0x1b0 mm/kasan/common.c:577 kasan_krealloc include/linux/kasan.h:274 [inline] __do_krealloc mm/slab_common.c:1099 [inline] krealloc+0xce/0x110 mm/slab_common.c:1136 push_jmp_history kernel/bpf/verifier.c:1787 [inline] is_state_visited kernel/bpf/verifier.c:9872 [inline] do_check+0x7ed1/0xdf40 kernel/bpf/verifier.c:10073 do_check_common+0x8e3/0x1160 kernel/bpf/verifier.c:12064 do_check_main kernel/bpf/verifier.c:12127 [inline] bpf_check+0x9308/0xd680 kernel/bpf/verifier.c:12682 bpf_prog_load+0xf5a/0x1420 kernel/bpf/syscall.c:2234 Memory state around the buggy address: ffff88811a1fdf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811a1fdf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88811a1fe000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88811a1fe080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88811a1fe100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== hid 0003:28DE:1102.004B: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.004B: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.004B: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.004B: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.004B: No HID_FEATURE_REPORT submitted - nothing to read