[LTP] [PATCH] mlock_8-1, munlock_10-1: don't use LONG_MAX as invalid pointer
Jan Stancek
jstancek@redhat.com
Fri Oct 18 15:39:41 CEST 2019
----- Original Message -----
> Hi Jan,
>
> > arm64 kernel with commit 057d3389108e ("mm: untag user pointers passed to
> > memory syscalls") will assume this is tagged user pointer and will
> > attempt to clear first byte. This leads to test hitting different error
> > (EINVAL instead of ENOMEM).
>
> > Add a helper function which provides invalid/unused pointer from user
> > address space.
>
> > Signed-off-by: Jan Stancek <jstancek@redhat.com>
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
Thanks, discussion in:
http://lists.linux.it/pipermail/ltp/2019-October/013993.html
is still going, so maybe this will be fixed on kernel side
after all.
More information about the ltp
mailing list