git: 06488d2a121a - main - linux: LINUX_PR_SET_THP_DISABLE all non-zero values are disable

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sat, 12 Sep 2026 18:19:17 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=06488d2a121af7a454083670b429d9ec42e77c99

commit 06488d2a121af7a454083670b429d9ec42e77c99
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2026-09-11 20:47:16 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-09-12 16:59:17 +0000

    linux: LINUX_PR_SET_THP_DISABLE all non-zero values are disable
    
    Linux treats any nonzero value as "disable", so accept them all.
    
    Fixes: a8a6eac57091
    Sponsored by:           Netflix
---
 sys/compat/linux/linux_misc.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 8487f53e1371..65c9044dd3bd 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1876,10 +1876,9 @@ linux_prctl(struct thread *td, struct linux_prctl_args *args)
 		break;
 	case LINUX_PR_SET_THP_DISABLE:
 		/*
-		 * Accept anything that's valid.
+		 * Accept anything that's valid: Linux treats any nonzero
+		 * arg2 as "disable", so there's nothing to reject here.
 		 */
-		if (args->arg2 != 0 && args->arg2 != 1)
-			return (EINVAL);
 		td->td_retval[0] = 0;
 		break;
 	default: