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
F163225071: D33912.id101529.diff
Tue, Jul 21, 5:33 AM
Unknown Object (File)
Sat, Jul 18, 5:18 PM
Unknown Object (File)
Sun, Jul 12, 8:22 PM
Unknown Object (File)
Sat, Jul 11, 6:59 PM
Unknown Object (File)
Sat, Jul 11, 4:16 PM
Unknown Object (File)
Mon, Jun 22, 7:14 PM
Unknown Object (File)
Jun 10 2026, 2:47 PM
Unknown Object (File)
Jun 10 2026, 1:01 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.