[Toybox] [PATCH] ps: widen the VSIZE field for Android's default view.

enh enh at google.com
Thu Feb 23 12:35:04 PST 2023


On LP64 systems, address space is effectively free, and the security
folks have found a variety of ways to use large PROT_NONE regions. For
example, Android currently spends 3GiB on the CFI shadow and 7GiB
padding the scudo heap, meaning that even toybox cat has a VmSize around
10GiB. This means that the default ps output doesn't line up.

Arguably this should be a change to the default width (currently 7) of
the VSZ entry in the "typos" array, but as long as desktop Linux isn't
using its address space for security mitigations, that seemed like it
might be too contentious.
---
 toys/posix/ps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20230223/77e6c814/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ps-widen-the-VSIZE-field-for-Android-s-default-view.patch
Type: text/x-patch
Size: 1431 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20230223/77e6c814/attachment-0001.bin>


More information about the Toybox mailing list