On 10/19/26 10:42 PM, Gregory Price (Meta) wrote: > madvise(2) accepts a zero-length range, rejects an unaligned start, and > reports an unmapped gap in the range with ENOMEM while still applying the > advice to the mapped pages on either side. > > Check each of these for both hints. Around the gap, only MADV_PAGEOUT has > an effect the test can observe, so only MADV_PAGEOUT is checked for > paging out both neighbors, and only if MADV_PAGEOUT can swap at all. > Both hints' ENOMEM is checked first, so it is covered without swap. > > Signed-off-by: Gregory Price (Meta) <[email protected]> Looks good to me. Reviewed-by: Sarthak Sharma <[email protected]>
- [PATCH v3 0/7] selftests/mm: add MADV_COLD and MADV_P... Gregory Price (Meta)
- [PATCH v3 2/7] selftests/mm: check MADV_COLD and... Gregory Price (Meta)
- Re: [PATCH v3 2/7] selftests/mm: check MADV_... Sarthak Sharma
- [PATCH v3 1/7] selftests/mm: add MADV_COLD and M... Gregory Price (Meta)
- Re: [PATCH v3 1/7] selftests/mm: add MADV_CO... Sarthak Sharma
- Re: [PATCH v3 1/7] selftests/mm: add MAD... Gregory Price (Meta)
- [PATCH v3 5/7] selftests/mm: check MADV_COLD and... Gregory Price (Meta)
- [PATCH v3 7/7] selftests/mm: check that unauthor... Gregory Price (Meta)
- [PATCH v3 3/7] selftests/mm: check that MADV_COL... Gregory Price (Meta)
- [PATCH v3 6/7] selftests/mm: check MADV_PAGEOUT ... Gregory Price (Meta)
- Re: [PATCH v3 6/7] selftests/mm: check MADV_... Sarthak Sharma
- [PATCH v3 4/7] selftests/mm: check that MADV_COL... Gregory Price (Meta)
- Re: [PATCH v3 4/7] selftests/mm: check that ... Sarthak Sharma
