Page MenuHomeFreeBSD

posixshm: Report output truncation from kern.ipc.posix_shm_list
ClosedPublic

Authored by markj on Jan 16 2022, 10:33 PM.
Tags
None
Referenced Files
F151080976: D33912.id.diff
Sun, Apr 5, 8:52 PM
Unknown Object (File)
Sun, Apr 5, 12:48 PM
Unknown Object (File)
Fri, Mar 27, 11:10 AM
Unknown Object (File)
Sun, Mar 15, 2:12 AM
Unknown Object (File)
Sat, Mar 14, 12:50 PM
Unknown Object (File)
Nov 19 2025, 4:23 PM
Unknown Object (File)
Nov 10 2025, 10:37 AM
Unknown Object (File)
Nov 7 2025, 1:17 PM
Subscribers

Details

Summary

PR: 240573
MFC after: 1 week

Test Plan

posixshmcontrol ls still seems to work.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43945
Build 40833: arc lint + arc unit

Event Timeline

kib added inline comments.
sys/kern/uipc_shm.c
2057

Or you could assign ENOMEN to error and break still. For oldptr != NULL you would do unneeded work, but this arguably does not matter.

This revision is now accepted and ready to land.Jan 16 2022, 10:41 PM
sys/kern/uipc_shm.c
2057

I wrote it that way first, but it seems nicer to keep the common case simple.