[LTP] [PATCH] listmount04: Detect EBADF behavior dynamically at runtime
Petr Vorel
pvorel@suse.cz
Mon Jul 27 10:27:38 CEST 2026
Hi Wake Liu,
...
> > - else
> > + tst_res(TINFO, "Detected kernel with EBADF behavior for invalid mnt_ns_fd");
> > + } else if (TST_ERR == EINVAL) {
> > kver = BEFORE_6_17_9;
> > + tst_res(TINFO, "Detected kernel with EINVAL behavior for invalid mnt_ns_fd");
> > + } else if (TST_ERR == ENOSYS) {
> > + tst_brk(TCONF, "listmount() syscall not supported");
> This is IMHO not supported, because it's part of tst_syscall().
I'm sorry, I meant "not needed".
Kind regards,
Petr
> Other than this LGTM.
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
> Kind regards,
> Petr
> > + } else {
> > + tst_brk(TBROK | TTERRNO, "Unexpected error during probe");
> > + }
More information about the ltp
mailing list