[Bug 295488] syslogd: memory leak in casper_ttymsg() via nvlist_take_string_array
Date: Fri, 22 May 2026 08:28:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295488
Dave Cottlehuber <dch@freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dch@freebsd.org,
| |jfree@freebsd.org,
| |markj@FreeBSD.org
Version|16.0-CURRENT |15.1-RELEASE
Severity|Affects Only Me |Affects Many People
--- Comment #3 from Dave Cottlehuber <dch@freebsd.org> ---
Thanks Pat for the excellent repro. Confirmed on 15.1-BETA3:
```
--- 500000 user.info messages to /tmp/leak-test.log ---
casper RSS (KB):
3020 syslogd: syslogd.casper (syslogd)
--- 500000 user.err messages to /dev/console ---
casper RSS (KB):
107284 syslogd: syslogd.casper (syslogd)
```
The impact of this is particularly severe for users in Google Cloud envs,
and possibly elsewhere, that log extensively to /dev/console, it's trivial
to leak GB of memory.
I believe this is introduced in https://reviews.freebsd.org/D41465
--
You are receiving this mail because:
You are the assignee for the bug.