<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/procstat, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-02-22T21:29:25Z</updated>
<entry>
<title>procstat: CID 1593951: Resource leak</title>
<updated>2026-02-22T21:29:25Z</updated>
<author>
<name>David Bright</name>
<email>dab@FreeBSD.org</email>
</author>
<published>2026-02-21T22:47:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=42ab99095b7dc2243629574e1c627cf5e6a9070c'/>
<id>urn:sha1:42ab99095b7dc2243629574e1c627cf5e6a9070c</id>
<content type='text'>
Summary: A trivial resource leak fix; free the allocated memory before return.

Test Plan: Code inspection, run command.

I built a simple program that waits for a signal on a kqueue, then ran
that. The standard procstat displays:

```
fbsd-dev% Waiting for SIGTERM...
procstat -a kqueue
    PID       KQFD   FILTER      IDENT      FLAGS     FFLAGS       DATA      UDATA     STATUS
  84352          3   SIGNAL         15          C          -          0        0x0          -
```

The revised procstat displays:
```
fbsd-dev% sudo LD_LIBRARY_PATH=/usr/obj/usr/home/dab/git/freebsd/src/arm64.aarch64/lib/libutil /usr/obj/usr/home/dab/git/freebsd/src/arm64.aarch64/usr.bin/procstat/procstat -a kqueue
    PID       KQFD   FILTER      IDENT      FLAGS     FFLAGS       DATA      UDATA     STATUS
  84352          3   SIGNAL         15          C          -          0        0x0          -
fbsd-dev%
```

As expected, the two displays are identical. This doesn't prove that
the leak is gone, but it does prove that the revised command still
operates correctly. I think it can clearly be seen from inspection of
the change that the leak has been remedied.

Reviewed-bys: vangyzen
Differential Revision: https://reviews.freebsd.org/D55422
</content>
</entry>
<entry>
<title>kern: Introduce RLIMIT_VMM</title>
<updated>2025-12-17T14:08:31Z</updated>
<author>
<name>Bojan Novković</name>
<email>bnovkov@FreeBSD.org</email>
</author>
<published>2025-11-07T13:11:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1092ec8b337595ed8d52accf41c6904d75b3689d'/>
<id>urn:sha1:1092ec8b337595ed8d52accf41c6904d75b3689d</id>
<content type='text'>
This change introduces a new per-UID limit for controlling the
number of vmm instances, in anticipation of unprivileged bhyve.
This allows ut to limit the amount of kernel memory allocated
by the vmm driver and prevent potential memory exhaustion attacks.

Differential Revision:	https://reviews.freebsd.org/D53728
Reviewed by:	markj, olce, corvink
MFC after:	3 months
Sponsored by:	The FreeBSD Foundation
Sponsored by:	Klara, Inc.
</content>
</entry>
<entry>
<title>manpages: prefer linking to xo_options.7 over xo_parse_args.3</title>
<updated>2025-07-16T18:02:24Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2025-07-16T17:41:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cc61a0793a0e7db8601e5eba1242befb810a5844'/>
<id>urn:sha1:cc61a0793a0e7db8601e5eba1242befb810a5844</id>
<content type='text'>
Most libxo-enabled utilities link to xo_parse_args.3.  But that man page
doesn't actually describe how to format command-line arguments.  Rather,
xo_options.7 does.  I suspect that these utilities link to the former
because the latter man page did not exist until libxo-0.7.2
(8a6eceff3ce).  And newer utilities have probably been copy/pasting the
same text from older ones.  But the superior man page does exist now,
so we should link to it instead.

MFC after:	2 weeks
Sponsored by:	ConnectWise
Reviewed by:	emaste
Differential Revision: https://reviews.freebsd.org/D51354
</content>
</entry>
<entry>
<title>procstat: Add handling for inotify descriptors</title>
<updated>2025-07-04T14:42:34Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-06-09T20:11:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f56e0d4755c521b50bf313a85fd399c2b6a7a4bb'/>
<id>urn:sha1:f56e0d4755c521b50bf313a85fd399c2b6a7a4bb</id>
<content type='text'>
MFC after:	3 months
Sponsored by:	Klara, Inc.
</content>
</entry>
<entry>
<title>procstat.1: document local SOCK_SEQPACKET socket display</title>
<updated>2025-03-27T09:08:31Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-03-27T09:06:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=03dfb8d0211cf9d7405c4fd7d541dde28047001c'/>
<id>urn:sha1:03dfb8d0211cf9d7405c4fd7d541dde28047001c</id>
<content type='text'>
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D49525
</content>
</entry>
<entry>
<title>procstat.1: correct local socket types descriptions.</title>
<updated>2025-03-27T09:08:24Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-03-27T09:02:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=991329f507a893076a4119c90bb463de0ac15be9'/>
<id>urn:sha1:991329f507a893076a4119c90bb463de0ac15be9</id>
<content type='text'>
Datagram/Stream sockets are similar to, but are not TCP/UDP sockets.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D49525
</content>
</entry>
<entry>
<title>procstat: decode SOCK_SEQPACKET unix domain socket type</title>
<updated>2025-03-27T09:08:18Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-03-26T18:42:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8011df62f57f021a1b4f62d9beea4c25d9b37a23'/>
<id>urn:sha1:8011df62f57f021a1b4f62d9beea4c25d9b37a23</id>
<content type='text'>
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D49525
</content>
</entry>
<entry>
<title>procstat.1: correct description of the kstack subcommand after removal of swapping</title>
<updated>2025-03-13T16:09:35Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-03-01T22:42:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9491ae6f0d9633b83bc0446806c21fd161148eaf'/>
<id>urn:sha1:9491ae6f0d9633b83bc0446806c21fd161148eaf</id>
<content type='text'>
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D49163
</content>
</entry>
<entry>
<title>procstat.1: document kqueues</title>
<updated>2025-03-13T16:09:35Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-03-09T16:32:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d76a31ca74cffda4aea63b1276f92c039ca76053'/>
<id>urn:sha1:d76a31ca74cffda4aea63b1276f92c039ca76053</id>
<content type='text'>
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D49163
</content>
</entry>
<entry>
<title>procstat.1: document rlimitusage</title>
<updated>2025-03-13T16:09:35Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-03-09T16:31:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=82897058342e9bfe7193283421055e3f07ac9b8f'/>
<id>urn:sha1:82897058342e9bfe7193283421055e3f07ac9b8f</id>
<content type='text'>
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D49163
</content>
</entry>
</feed>
