[LTP] [PATCH] syscalls/clone3: New tests
Petr Vorel
pvorel@suse.cz
Fri Mar 13 15:20:45 CET 2020
Hi,
> > - pidfd: Kernel doesn't check this pointer and we get EFAULT.
> > - child_tid: Kernel checks for valid pointer and doesn't use the
> > variable if NULL, so test passes unexpectedly.
> We do have tst_get_bad_addr() that produces PROT_NONE mapped page that
> should get you EFAULT in both cases here.
I was thinking about it, then didn't write it.
+ we should add tst_get_bad_addr() to doc/test-writing-guidelines.txt.
I'll try to remember to send patch on Monday.
Kind regards,
Petr
More information about the ltp
mailing list