> The argument checks reuse the waitv[] the shared subtest leaves behind,
> whose entries point into detached memory, and the invalid clockid
> check passes NULL waiters. So the kernel can reject a call for a
> reason other than the one tested. This goes unnoticed while the checks
> accept any result.
> 
> Reset waitv[] to valid private futexes before the checks and pass it to
> the clockid check.
> 
> Fixes: 5e59c1d1c78c ("selftests: futex: Add sys_futex_waitv() test")
> https://virtuozzo.atlassian.net/browse/VSTOR-152660
> Feature: fix selftests
> 
> Signed-off-by: Eva Kurchatova <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review ยท 
https://sashiko.vzint.dev/#/patchset/[email protected]?part=1


_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to