Page MenuHomeFreeBSD

Report max protection for vm_map_entry in ptrace(PTRACE_VM_ENTRY) and kinfo_vmentry
ClosedPublic

Authored by kib on Oct 7 2024, 8:38 AM.
Tags
None
Referenced Files
F139526400: D46971.id144370.diff
Sat, Dec 13, 2:27 AM
F139520527: D46971.id144457.diff
Sat, Dec 13, 12:46 AM
F139511435: D46971.id144370.diff
Fri, Dec 12, 10:14 PM
Unknown Object (File)
Tue, Dec 9, 5:14 AM
Unknown Object (File)
Sat, Dec 6, 7:36 AM
Unknown Object (File)
Tue, Nov 25, 5:29 AM
Unknown Object (File)
Tue, Nov 25, 5:29 AM
Unknown Object (File)
Tue, Nov 25, 5:29 AM
Subscribers

Details

Summary

procstat bits are not included, I think it will go as a separate column in procstat vm output, hidden under a flag to not break the output format by default

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Oct 7 2024, 8:38 AM

procstat bits are not included, I think it will go as a separate column in procstat vm output, hidden under a flag to not break the output format by default

In CheriBSD, procstat vm has a -v option to enable some extra columns, so I would suggest using that for maxprot.

This revision is now accepted and ready to land.Oct 7 2024, 12:05 PM
sys/sys/user.h
509–511

I'd rather these start from 0x00010000 like PROT_MAX(PROT_READ). We've added two additional port bits in CheriBSD and it would be annoying to interleave MAX and regular PROTs.

This revision now requires review to proceed.Oct 8 2024, 6:27 AM
kib marked an inline comment as done.Oct 8 2024, 6:27 AM
This revision is now accepted and ready to land.Oct 8 2024, 6:33 AM