[LTP] [PATCH] syscalls/clone3: New tests

Viresh Kumar viresh.kumar@linaro.org
Fri Mar 13 05:19:47 CET 2020


On 12-03-20, 14:43, Cyril Hrubis wrote:
> Also all pidfd, child_tid, and parent_tid should be tested with invalid
> pointers right?

I tried this but here is the problem ..

- 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.
- parent_tid: Kernel doesn't verify the pointer, but doesn't return
  the error code properly and so test passes unexpectedly.

And so I wasn't sure on what we should be doing really.

-- 
viresh


More information about the ltp mailing list