[LTP] lapi/mmap: add MAP_32BIT fallback

Andrea Cervesato andrea.cervesato@suse.com
Mon Aug 31 10:02:59 CEST 2026


> On Aug 28, 2026, Andrea Cervesato wrote:
> > lapi/mmap: add MAP_32BIT fallback
> 
> --- [PATCH 3/3] ---
> 
> >  * - Verify that memory in each chunk is readable and writable
> > [...]
> > 		((char *)addr)[0] = 'a';
> > 		((char *)addr)[CHUNK_SZ - 1] = 'z';
> 
> The algorithm says that each chunk is verified to be both readable and
> writable, but these statements only write to the mapping. Could the test
> read and compare the stored bytes, or should the readability claim be
> removed?

this simply requires:

* - Touch first and last byte of each chunk to ensure pages are writable

will add before merge.

--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com


More information about the ltp mailing list