================================================================== 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+0x97/0xf0 kernel/locking/mutex.c:298 Use-after-free write at 0xffff88823ff24f50 (in kfence-#10): 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+0x97/0xf0 kernel/locking/mutex.c:298 pppol2tp_release+0x178/0x2b0 net/l2tp/l2tp_ppp.c:442 __sock_release net/socket.c:597 [inline] sock_close+0xb8/0x200 net/socket.c:1287 __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 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop+0xcb/0xe0 kernel/entry/common.c:172 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:274 do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x61/0xcb kfence-#10 [0xffff88823ff24e00-0xffff88823ff24f9f, size=416, cache=kmalloc-512] allocated by task 2076: kmalloc include/linux/slab.h:560 [inline] kzalloc include/linux/slab.h:667 [inline] l2tp_session_create+0x39/0xb60 net/l2tp/l2tp_core.c:1616 pppol2tp_connect+0xbf5/0x1640 net/l2tp/l2tp_ppp.c:772 __sys_connect_file net/socket.c:1867 [inline] __sys_connect+0x3ce/0x450 net/socket.c:1884 __do_sys_connect net/socket.c:1894 [inline] __se_sys_connect net/socket.c:1891 [inline] __x64_sys_connect+0x7a/0x90 net/socket.c:1891 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb freed by task 2068: l2tp_session_free net/l2tp/l2tp_core.c:168 [inline] l2tp_session_put+0xb2/0x1a0 net/l2tp/l2tp_core.c:193 l2tp_session_delete+0x3a9/0x4a0 net/l2tp/l2tp_core.c:1589 pppol2tp_release+0x169/0x2b0 net/l2tp/l2tp_ppp.c:439 __sock_release net/socket.c:597 [inline] sock_close+0xb8/0x200 net/socket.c:1287 __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 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop+0xcb/0xe0 kernel/entry/common.c:172 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:274 do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x61/0xcb CPU: 0 PID: 2068 Comm: syz.0.467 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 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+0x97/0xf0 kernel/locking/mutex.c:298 Code: c6 44 27 04 00 48 c7 44 24 20 00 00 00 00 be 08 00 00 00 e8 2b 12 1e fd 4c 89 f7 be 08 00 00 00 e8 1e 12 1e fd 48 8b 44 24 20 4c 0f b1 2b 43 c6 44 27 04 f8 75 2f 48 c7 04 24 0e 36 e0 45 4b RSP: 0018:ffffc90001427d00 EFLAGS: 00010256 RAX: 0000000000000000 RBX: ffff88823ff24f50 RCX: ffffffff84811732 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc90001427d20 RBP: ffffc90001427d88 R08: ffffc90001427d27 R09: 1ffff92000284fa4 R10: dffffc0000000000 R11: fffff52000284fa5 R12: dffffc0000000000 R13: ffff88811e784f00 R14: ffffc90001427d20 R15: 1ffff92000284fa0 FS: 0000555591ea4500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff88823ff24f50 CR3: 000000013b19d000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pppol2tp_release+0x178/0x2b0 net/l2tp/l2tp_ppp.c:442 __sock_release net/socket.c:597 [inline] sock_close+0xb8/0x200 net/socket.c:1287 __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 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop+0xcb/0xe0 kernel/entry/common.c:172 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:274 do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fa567b980d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffcd68196a8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007fa567e21da0 RCX: 00007fa567b980d9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007fa567e21da0 R08: 0000000000000006 R09: 0000000000000000 R10: 000000000003fc40 R11: 0000000000000246 R12: 000000000001920e R13: 00007fa567e2018c R14: 0000000000018f4d R15: 00007fa567e20180 ================================================================== ---------------- Code disassembly (best guess): 0: c6 44 27 04 00 movb $0x0,0x4(%rdi,%riz,1) 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 2b 12 1e fd call 0xfd1e1243 18: 4c 89 f7 mov %r14,%rdi 1b: be 08 00 00 00 mov $0x8,%esi 20: e8 1e 12 1e fd call 0xfd1e1243 25: 48 8b 44 24 20 mov 0x20(%rsp),%rax * 2a: f0 4c 0f b1 2b lock cmpxchg %r13,(%rbx) <-- trapping instruction 2f: 43 c6 44 27 04 f8 movb $0xf8,0x4(%r15,%r12,1) 35: 75 2f jne 0x66 37: 48 c7 04 24 0e 36 e0 movq $0x45e0360e,(%rsp) 3e: 45 3f: 4b rex.WXB