Page MenuHomeFreeBSD

login_class: Fix kqueues, pipebuf resource types
ClosedPublic

Authored by des on May 29 2026, 4:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 17, 10:21 AM
Unknown Object (File)
Thu, Sep 17, 4:36 AM
Unknown Object (File)
Mon, Sep 14, 10:04 PM
Unknown Object (File)
Thu, Sep 10, 9:38 PM
Unknown Object (File)
Thu, Sep 10, 2:00 AM
Unknown Object (File)
Wed, Sep 9, 4:15 PM
Unknown Object (File)
Tue, Sep 8, 9:10 PM
Unknown Object (File)
Tue, Sep 8, 11:29 AM

Details

Summary
  • kqueues is a count but is listed as a size
  • pipebuf is a size but is listed as a count

PR: 295623
MFC after: 1 week
Fixes: a4c04958f526 ("libutil: support RLIMIT_PIPEBUF")
Fixes: 85a0ddfd0b26 ("Add a resource limit for the total...")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.May 29 2026, 4:01 PM

Looking at the kernel code, it looks like RLIMIT_PIPEBUF really is a count, not a size. The getrlimit(2) manual page lists it as a size. So I should correct the documentation instead. RLIMIT_KQUEUES is definitely not a size though.

This revision is now accepted and ready to land.May 29 2026, 5:41 PM

@kib is RLIMIT_PIPEBUF meant to be a count or a size?

In D57333#1313719, @des wrote:

@kib is RLIMIT_PIPEBUF meant to be a count or a size?

It is size in KVA of the consumed pipe bufs.