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
Unknown Object (File)
Mon, Oct 13, 11:09 AM
Unknown Object (File)
Mon, Oct 6, 1:29 AM
Unknown Object (File)
Wed, Sep 24, 1:24 AM
Unknown Object (File)
Sep 16 2025, 5:17 AM
Unknown Object (File)
Sep 13 2025, 3:26 AM
Unknown Object (File)
Sep 6 2025, 8:45 AM
Unknown Object (File)
Aug 19 2025, 5:58 AM
Unknown Object (File)
Aug 16 2025, 8:32 PM
Subscribers

Details

Summary

PR: 240573
MFC after: 1 week

Test Plan

posixshmcontrol ls still seems to work.

Diff Detail

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

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.