OpenBSD cvs log

created 2023-07-04T20:53:41Z
begin 2023-06-26T00:00:00Z
end 2023-06-27T00:00:00Z
path src/sys
commits 3

date 2023-06-26T07:49:48Z
author claudio
files src/sys/net/pf_ioctl.c log diff annotate
src/sys/net/rtsock.c log diff annotate
message Close all pf transactions before opening a new one in DIOCGETRULES.

Processes like snmpd or systat open pf(4) once and then issue many
DIOCGETRULES calls over their runtime. This accumulates many pf_trans
structs over their lifetime. At some point the kernel runs out of
memory because of that. By closing all transactions before creating
a new one, long living processes do no longer leak transactions.

This probably needs further refinement once more transactions types are
added but for now this solves the problem.

Problem found by florian@
OK sashan@ kn@

date 2023-06-26T07:52:18Z
author claudio
files src/sys/net/rtsock.c log diff annotate
message Revert unrelated change that sneaked into the pf_ioctl.c commit.

date 2023-06-26T16:26:20Z
author cheloha
files src/sys/kern/kern_timeout.c log diff annotate
message timeout_hardclock_update: provide initial value for automatic variables