================================================================== 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+0x85/0xf0 kernel/locking/mutex.c:298 Write of size 8 at addr ffff88812b5a5040 by task udevd/564 CPU: 0 PID: 564 Comm: udevd Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 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+0x100/0x140 mm/kasan/report.c:452 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: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+0x85/0xf0 kernel/locking/mutex.c:298 steam_input_open+0x91/0x170 drivers/hid/hid-steam.c:297 input_open_device+0x15e/0x2b0 drivers/input/input.c:635 evdev_open_device drivers/input/evdev.c:405 [inline] evdev_open+0x499/0x590 drivers/input/evdev.c:492 chrdev_open+0x585/0x5f0 fs/char_dev.c:414 do_dentry_open+0x7a5/0x10a0 fs/open.c:819 vfs_open+0x73/0x80 fs/open.c:944 do_open fs/namei.c:3441 [inline] path_openat+0x26c3/0x3040 fs/namei.c:3559 do_filp_open+0x1df/0x400 fs/namei.c:3586 do_sys_openat2+0x19f/0x750 fs/open.c:1219 do_sys_open fs/open.c:1235 [inline] __do_sys_openat fs/open.c:1251 [inline] __se_sys_openat fs/open.c:1246 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1246 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f66e444f407 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:00007ffed66aa830 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f66e4361880 RCX: 00007f66e444f407 RDX: 0000000000080000 RSI: 000055888ca65cb0 RDI: ffffffffffffff9c RBP: 000055888ca62310 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000055886aff90c8 R13: 000055886aff90ce R14: 00007ffed66aae30 R15: 000055886afffbcc Allocated by task 305: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:430 [inline] ____kasan_kmalloc mm/kasan/common.c:509 [inline] __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x19f/0x330 mm/slub.c:4038 kmalloc include/linux/slab.h:560 [inline] kzalloc include/linux/slab.h:667 [inline] fib6_info_alloc+0x34/0xe0 net/ipv6/ip6_fib.c:154 ip6_route_info_create+0x4c7/0x1450 net/ipv6/route.c:3675 ip6_route_add+0x27/0x130 net/ipv6/route.c:3771 addrconf_add_mroute net/ipv6/addrconf.c:2534 [inline] addrconf_add_dev+0x385/0x4c0 net/ipv6/addrconf.c:2552 inet6_addr_add+0x1b2/0x970 net/ipv6/addrconf.c:2999 inet6_rtm_newaddr+0x6e1/0x9c0 net/ipv6/addrconf.c:4977 rtnetlink_rcv_msg+0x9e9/0xca0 net/core/rtnetlink.c:5622 netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2508 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5640 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x86c/0xa30 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x949/0xb70 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg net/socket.c:664 [inline] __sys_sendto+0x467/0x620 net/socket.c:2007 __do_sys_sendto net/socket.c:2019 [inline] __se_sys_sendto net/socket.c:2015 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2015 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 396: 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+0x7ca/0x840 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+0x540/0x7c0 drivers/base/dd.c:1221 device_release_driver+0x19/0x20 drivers/base/dd.c:1244 bus_remove_device+0x2df/0x340 drivers/base/bus.c:535 device_del+0x62e/0xe60 drivers/base/core.c:3453 hid_remove_device drivers/hid/hid-core.c:2563 [inline] hid_destroy_device+0x6a/0x110 drivers/hid/hid-core.c:2582 usbhid_disconnect+0x9f/0xc0 drivers/hid/usbhid/hid-core.c:1463 usb_unbind_interface+0x212/0x8a0 drivers/usb/core/driver.c:459 __device_release_driver drivers/base/dd.c:-1 [inline] device_release_driver_internal+0x531/0x7c0 drivers/base/dd.c:1221 device_release_driver+0x19/0x20 drivers/base/dd.c:1244 bus_remove_device+0x2df/0x340 drivers/base/bus.c:535 device_del+0x62e/0xe60 drivers/base/core.c:3453 usb_disable_device+0x3a8/0x750 drivers/usb/core/message.c:1470 usb_disconnect+0x32d/0x870 drivers/usb/core/hub.c:2315 hub_port_connect drivers/usb/core/hub.c:5343 [inline] hub_port_connect_change drivers/usb/core/hub.c:5644 [inline] port_event drivers/usb/core/hub.c:5810 [inline] hub_event+0x19c2/0x4220 drivers/usb/core/hub.c:5892 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 process_scheduled_works kernel/workqueue.c:2363 [inline] worker_thread+0xd1c/0x13c0 kernel/workqueue.c:2449 kthread+0x324/0x3b0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 __call_rcu kernel/rcu/tree.c:2980 [inline] call_rcu+0x11a/0x1090 kernel/rcu/tree.c:3054 fib6_info_release include/net/ip6_fib.h:346 [inline] ip6_route_info_create+0xa44/0x1450 net/ipv6/route.c:3757 ip6_route_add+0x27/0x130 net/ipv6/route.c:3771 addrconf_add_mroute net/ipv6/addrconf.c:2534 [inline] addrconf_add_dev+0x385/0x4c0 net/ipv6/addrconf.c:2552 inet6_addr_add+0x1b2/0x970 net/ipv6/addrconf.c:2999 inet6_rtm_newaddr+0x6e1/0x9c0 net/ipv6/addrconf.c:4977 rtnetlink_rcv_msg+0x9e9/0xca0 net/core/rtnetlink.c:5622 netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2508 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5640 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x86c/0xa30 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x949/0xb70 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg net/socket.c:664 [inline] __sys_sendto+0x467/0x620 net/socket.c:2007 __do_sys_sendto net/socket.c:2019 [inline] __se_sys_sendto net/socket.c:2015 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2015 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff88812b5a5000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 64 bytes inside of 512-byte region [ffff88812b5a5000, ffff88812b5a5200) The buggy address belongs to the page: page:ffffea0004ad6900 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12b5a4 head:ffffea0004ad6900 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 ffffea0004ade700 0000000600000006 ffff888100043080 raw: 0000000000000000 0000000080100010 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 305, ts 22975117493, free_ts 22951856960 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384 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+0x2f8/0x4c0 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_track_caller+0x1e4/0x310 mm/slub.c:4541 __kmalloc_reserve net/core/skbuff.c:144 [inline] __alloc_skb+0xdc/0x520 net/core/skbuff.c:212 alloc_skb include/linux/skbuff.h:1126 [inline] nlmsg_new include/net/netlink.h:953 [inline] inet6_ifa_notify net/ipv6/addrconf.c:5541 [inline] __ipv6_ifa_notify+0x200/0xe70 net/ipv6/addrconf.c:6164 ipv6_ifa_notify+0x85/0xc0 net/ipv6/addrconf.c:6217 inet6_addr_add+0x5df/0x970 net/ipv6/addrconf.c:3043 inet6_rtm_newaddr+0x6e1/0x9c0 net/ipv6/addrconf.c:4977 rtnetlink_rcv_msg+0x9e9/0xca0 net/core/rtnetlink.c:5622 netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2508 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5640 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x86c/0xa30 net/netlink/af_netlink.c:1340 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_pcp_prepare mm/page_alloc.c:1421 [inline] free_unref_page_prepare+0x2b7/0x2d0 mm/page_alloc.c:3336 free_unref_page mm/page_alloc.c:3391 [inline] free_the_page mm/page_alloc.c:5443 [inline] __free_pages+0x146/0x390 mm/page_alloc.c:5454 __vunmap+0x801/0x980 mm/vmalloc.c:2307 __vfree mm/vmalloc.c:2356 [inline] vfree+0x61/0x90 mm/vmalloc.c:2387 kcov_put kernel/kcov.c:405 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:507 __fput+0x2dc/0x730 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x127/0x190 kernel/task_work.c:189 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0xa7c/0x24e0 kernel/exit.c:879 do_group_exit+0x149/0x310 kernel/exit.c:993 get_signal+0xfb1/0x1300 kernel/signal.c:2806 arch_do_signal_or_restart+0xe7/0x11b0 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop+0xa2/0xe0 kernel/entry/common.c:172 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:202 syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:277 do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56 Memory state around the buggy address: ffff88812b5a4f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88812b5a4f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88812b5a5000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88812b5a5080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88812b5a5100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== hid 0003:28DE:1102.0013: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0013: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0013: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0013: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0013: No HID_FEATURE_REPORT submitted - nothing to read