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
F159144863: D33912.id101512.diff
Wed, Jun 10, 2:47 PM
F159138220: D33912.diff
Wed, Jun 10, 1:01 PM
Unknown Object (File)
Mon, Jun 8, 7:15 AM
Unknown Object (File)
Mon, May 18, 5:38 AM
Unknown Object (File)
Apr 29 2026, 12:44 PM
Unknown Object (File)
Apr 27 2026, 4:18 PM
Unknown Object (File)
Apr 27 2026, 2:06 PM
Unknown Object (File)
Apr 27 2026, 12:05 AM
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.