Page MenuHomeFreeBSD

Control implicit PROT_MAX() using proccontrol(1) and the FreeBSD note feature bit.
ClosedPublic

Authored by kib on Jun 28 2019, 6:16 PM.
Tags
None
Referenced Files
F114942565: D20795.id59322.diff
Fri, Apr 18, 8:24 PM
Unknown Object (File)
Thu, Apr 17, 11:03 PM
Unknown Object (File)
Tue, Apr 15, 6:38 PM
Unknown Object (File)
Sun, Mar 23, 12:05 AM
Unknown Object (File)
Mar 8 2025, 5:48 AM
Unknown Object (File)
Feb 9 2025, 7:32 PM
Unknown Object (File)
Feb 9 2025, 4:31 AM
Unknown Object (File)
Jan 25 2025, 8:04 PM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 25134

Event Timeline

Overall looks reasonable, a few small alpha ordering nits.

sys/compat/freebsd32/freebsd32_misc.c
3338

alpha order

sys/vm/vm_mmap.c
60

can this go in alpha order, other misordered headers notwithstanding?

usr.bin/proccontrol/proccontrol.c
76

alpha order

Suggested rewording of a sentence.

lib/libc/sys/procctl.2
129

The image flag might still prevent the enablement.

kib marked 4 inline comments as done.Jun 28 2019, 7:31 PM
kib added inline comments.
sys/vm/vm_mmap.c
60

Not sure what would be the right place then. Moved before filedesc.h.

lib/libc/sys/procctl.2
119

and .Xr mprotect 2

128

It would be nice to reference the sysctl here, "disabled system-wide by vm.imply_prot_max"

131

Should be "be disabled."

133

Extra _ between PROT and MAX.

136

"Use the system-wide ..."

kib marked an inline comment as done.

Man page update and minor code rearrangement.

This revision is now accepted and ready to land.Jul 2 2019, 3:00 PM
lib/libc/sys/procctl.2
119

We don't imply PROT_MAX on mprotect at this time. One could make a case for it, but we're never tested it and it's not as clear a case IMO.

sys/sys/syscallsubr.h
178

It seems a little odd to me that this is here and not in some sys/vm/* header, but don't have a strong opinion.