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)
Tue, Sep 8, 7:36 PM
Unknown Object (File)
Mon, Sep 7, 9:26 AM
Unknown Object (File)
Sun, Sep 6, 7:22 PM
Unknown Object (File)
Sat, Sep 5, 7:01 PM
Unknown Object (File)
Fri, Sep 4, 1:27 PM
Unknown Object (File)
Fri, Sep 4, 1:42 AM
Unknown Object (File)
Wed, Sep 2, 1:32 PM
Unknown Object (File)
Wed, Sep 2, 8:10 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.