[LTP] [PATCH v2] syscalls/{fanotify17, getxattr05}: Fix the ENOSPC error
Cyril Hrubis
chrubis@suse.cz
Thu Sep 26 13:18:32 CEST 2024
Hi!
> If the value of max_user_namespaces is set to 10 but more than
> 10 user namspaces are currently used on system. In this case,
> these tests fail with ENOSPC. for example:
>
> # lsns -t user -n | wc -l
> 17
>
> # ./fanotify17
> ...
> fanotify17.c:174: TINFO: Test #0: Global groups limit in init user ns
> fanotify17.c:130: TPASS: Created 128 groups - below groups limit (128)
> fanotify17.c:174: TINFO: Test #1: Global groups limit in privileged user ns
> fanotify17.c:154: TFAIL: unshare(CLONE_NEWUSER) failed: ENOSPC (28)
> tst_test.c:452: TBROK: Invalid child (6958) exit value 1
That's strange the test seems to work for me even if it's over the
limit.
$ lsns -t user -n | wc -l
14
I suppose that since the test is executed as a root since it has
.require_root the limits does not apply. It's strange that they apply in
your case. Which kernel is this?
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list