================================================================== BUG: KFENCE: use-after-free write in arch_atomic64_try_cmpxchg arch/x86/include/asm/atomic64_64.h:190 [inline] BUG: KFENCE: use-after-free write in atomic64_try_cmpxchg_acquire include/asm-generic/atomic-instrumented.h:1517 [inline] BUG: KFENCE: use-after-free write in atomic_long_try_cmpxchg_acquire include/asm-generic/atomic-long.h:443 [inline] BUG: KFENCE: use-after-free write in __mutex_trylock_fast kernel/locking/mutex.c:173 [inline] BUG: KFENCE: use-after-free write in mutex_lock+0x91/0xe0 kernel/locking/mutex.c:298 Use-after-free write at 0xffff8881f7378e40 (in kfence-#20): arch_atomic64_try_cmpxchg arch/x86/include/asm/atomic64_64.h:190 [inline] atomic64_try_cmpxchg_acquire include/asm-generic/atomic-instrumented.h:1517 [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+0x91/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 kfence-#20 [0xffff8881f7378e00-0xffff8881f7378f3f, size=320, cache=kmalloc-512] allocated by task 20: alloc_dr drivers/base/devres.c:111 [inline] devm_kmalloc+0x51/0x200 drivers/base/devres.c:835 devm_kzalloc include/linux/device.h:218 [inline] steam_probe+0x129/0xb10 drivers/hid/hid-steam.c:741 hid_device_probe+0x287/0x380 drivers/hid/hid-core.c:2303 really_probe+0x386/0xa90 drivers/base/dd.c:558 driver_probe_device+0xe7/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x175/0x200 drivers/base/bus.c:433 __device_attach+0x29a/0x400 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8b4/0xbf0 drivers/base/core.c:3273 hid_add_device+0x356/0x4b0 drivers/hid/hid-core.c:2455 usbhid_probe+0xb2e/0xee0 drivers/hid/usbhid/hid-core.c:1418 usb_probe_interface+0x5ff/0xae0 drivers/usb/core/driver.c:397 really_probe+0x3d8/0xa90 drivers/base/dd.c:562 driver_probe_device+0xe7/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x175/0x200 drivers/base/bus.c:433 __device_attach+0x29a/0x400 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8b4/0xbf0 drivers/base/core.c:3273 usb_set_configuration+0x1a47/0x1f80 drivers/usb/core/message.c:2160 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x148/0x260 drivers/usb/core/driver.c:294 really_probe+0x3d8/0xa90 drivers/base/dd.c:562 driver_probe_device+0xe7/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x175/0x200 drivers/base/bus.c:433 __device_attach+0x29a/0x400 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8b4/0xbf0 drivers/base/core.c:3273 usb_new_device+0xcd1/0x1450 drivers/usb/core/hub.c:2626 hub_port_connect drivers/usb/core/hub.c:5469 [inline] hub_port_connect_change drivers/usb/core/hub.c:5609 [inline] port_event drivers/usb/core/hub.c:5759 [inline] hub_event+0x2679/0x4120 drivers/usb/core/hub.c:5841 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 freed by task 364: 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:2503 [inline] hid_destroy_device+0x6a/0x110 drivers/hid/hid-core.c:2522 usbhid_disconnect+0x9f/0xc0 drivers/hid/usbhid/hid-core.c:1445 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:2282 hub_port_connect drivers/usb/core/hub.c:5308 [inline] hub_port_connect_change drivers/usb/core/hub.c:5609 [inline] port_event drivers/usb/core/hub.c:5759 [inline] hub_event+0x1912/0x4120 drivers/usb/core/hub.c:5841 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 CPU: 0 PID: 80 Comm: acpid Not tainted 5.10.238-syzkaller-1007479-gd76d4cd0623a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:arch_atomic64_try_cmpxchg arch/x86/include/asm/atomic64_64.h:190 [inline] RIP: 0010:atomic64_try_cmpxchg_acquire include/asm-generic/atomic-instrumented.h:1517 [inline] RIP: 0010:atomic_long_try_cmpxchg_acquire include/asm-generic/atomic-long.h:443 [inline] RIP: 0010:__mutex_trylock_fast kernel/locking/mutex.c:173 [inline] RIP: 0010:mutex_lock+0x91/0xe0 kernel/locking/mutex.c:298 Code: 2d 14 83 8e 7b 48 c7 44 24 20 00 00 00 00 be 08 00 00 00 e8 f1 9b 29 fd 4c 89 f7 be 08 00 00 00 e8 e4 9b 29 fd 48 8b 44 24 20 4c 0f b1 2b 75 2f 48 c7 04 24 0e 36 e0 45 4b c7 04 27 00 00 00 RSP: 0018:ffffc90000967620 EFLAGS: 00010256 RAX: 0000000000000000 RBX: ffff8881f7378e40 RCX: ffffffff8473ea8c RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc90000967640 RBP: ffffc900009676b0 R08: dffffc0000000000 R09: fffff5200012cec9 R10: fffff5200012cec9 R11: 1ffff9200012cec8 R12: dffffc0000000000 R13: ffff88810d208000 R14: ffffc90000967640 R15: 1ffff9200012cec4 FS: 00007f43e0cb4740(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff8881f7378e40 CR3: 000000010d177000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: 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:0x7f43e0d3e407 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:00007ffed7a48fe0 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f43e0cb4740 RCX: 00007f43e0d3e407 RDX: 0000000000080800 RSI: 00007ffed7a491f0 RDI: ffffffffffffff9c RBP: 00007ffed7a491f0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000020 R13: 00007ffed7a492f0 R14: 00005596603cc7fe R15: 00007ffed7a492f0 ================================================================== 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 hid 0003:28DE:1102.0015: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0015: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0015: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0015: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0015: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0029: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0029: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0029: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0029: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0029: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0029: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0029: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0029: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0029: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0029: No HID_FEATURE_REPORT submitted - nothing to read ---------------- Code disassembly (best guess): 0: 2d 14 83 8e 7b sub $0x7b8e8314,%eax 5: 48 c7 44 24 20 00 00 movq $0x0,0x20(%rsp) c: 00 00 e: be 08 00 00 00 mov $0x8,%esi 13: e8 f1 9b 29 fd call 0xfd299c09 18: 4c 89 f7 mov %r14,%rdi 1b: be 08 00 00 00 mov $0x8,%esi 20: e8 e4 9b 29 fd call 0xfd299c09 25: 48 8b 44 24 20 mov 0x20(%rsp),%rax * 2a: f0 4c 0f b1 2b lock cmpxchg %r13,(%rbx) <-- trapping instruction 2f: 75 2f jne 0x60 31: 48 c7 04 24 0e 36 e0 movq $0x45e0360e,(%rsp) 38: 45 39: 4b rex.WXB 3a: c7 .byte 0xc7 3b: 04 27 add $0x27,%al 3d: 00 00 add %al,(%rax)