Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syscalls/statmount07: change "invalid buffer size" test
The manpage doesn't say that 'smbuf' needs to be valid for entire range of 'bufsize'. This check relies on access_ok() check, which can be skipped on some arches/configs, for example on s390x with CONFIG_ALTERNATE_USER_ADDRESS_SPACE=y. Test then fails with: statmount07.c:117: TFAIL: invalid buffer size succeeded Change the test to use buffer that crosses partially into PROT_NONE area. Link: https://lore.kernel.org/ltp/d53bcc8476d4c2ef37b92543b2f7fe8338420f0b.1728992854.git.jstancek@redhat.com/ Reviewed-by: Cyril Hrubis <[email protected]> Reviewed-by: Petr Vorel <[email protected]> Signed-off-by: Jan Stancek <[email protected]>
- Loading branch information