aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/sort
diff options
context:
space:
mode:
authorAndrew Griffiths <andrew@calif.io>2026-09-14 07:55:01 +0000
committerMark Johnston <markj@FreeBSD.org>2026-09-16 15:34:31 +0000
commit3484217cc47c1f77d2be2ed0e012b870d1cd3dca (patch)
treef0021f3ab6c7be2d590b0d82fd3032e5262e546e /usr.bin/sort
parent5d0b87669a91244e330a35fc973e6c60f92f6d1f (diff)
proc: free kstack buffers when debug permission changesHEADmain
The kern.proc.kstack handler allocates its output and stack buffers before deliberately checking p_candebug again under the process lock. If trace-control state changes between authorization checks, the failure path balances the process and exec state but leaks both buffers. Submitted by calif.io for the OpenAI Patch The Planet program Signed-off-by: Andrew Griffiths <andrew@calif.io> Fixes: 8b5abd9027b8 ("kern_proc.c: disallow execve around sysctl kern.proc.kstacks") Reviewed by: markj MFC after: 1 week
Diffstat (limited to 'usr.bin/sort')
0 files changed, 0 insertions, 0 deletions