[LTP] lapi/userfaultfd: Handle ENOSYS in SAFE_USERFAULTFD

linuxtestproject.agent@gmail.com linuxtestproject.agent@gmail.com
Wed Apr 29 09:31:09 CEST 2026


Hi Wake,

On Wed, 29 Apr 2026 14:40:10 +0800, Wake Liu wrote:
> lapi/userfaultfd: Handle ENOSYS in SAFE_USERFAULTFD

> +		if (errno == ENOSYS) {
> +			tst_brk_(file, lineno, TCONF | TERRNO,
> +				"userfaultfd() is not supported by this kernel");
> +		}

The fix is correct, but since this is a bug fix, please add a Fixes:
tag pointing to the commit that introduced SAFE_USERFAULTFD without
ENOSYS handling.

---
Note:

Our agent completed the review of the patch. The agent can sometimes
produce false positives although often its findings are genuine. If you
find issues with the review, please comment this email or ignore the
suggestions.

Regards,
LTP AI Reviewer


More information about the ltp mailing list