From nobody Sun Oct 25 22:00:21 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jCW0C0f0Mz6xCYL for ; Sun, 25 Oct 2026 22:00:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jCW0B6JkNz4Xty for ; Sun, 25 Oct 2026 22:00:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792965626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3g0A4J6Wir/Uvn0i1IJgiVN1GCkDcZFpScH0cXaOTIY=; b=qXGjRAS/t8MMmrOL1QrsPUcapsOoNNtDj+oK+278NEfp/gP0aD69NNGDtZy2Mj6dJuG4eD K0EgLnm4htEmO5GTXTtlib+8A33yZmsm7S0TJBjn2jiazVWSmO7lU/IkP/0tYgNzI/0VxE 3IE7JZeSeNw7wahjD6NG9517dSBf1Wd+iQ1SbIp7qann5vbgnRuQuD+mWVVEySt1gqbl5e IgAU3z9u7rOf6oneDkpWgqls+V5BArP+ir1ga0O357qf6zj9aulrxx3rtpdBGtJcozUS7n 0kNmsepj70+K63b8jgGVsfbihPD0uLaFhUrZ+hgJGg9QoPAlcDF0QXy+k1b49w== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1792965626; b=TFkEFdmfL+r3lXPAIM8q0o6IK40nWE6vc9DRjKbruc7r0PUud6EgfZa0IQOLqi29hXvuCs fqpG3IU/CrMZQqsGDzjPrH4SFuhmzU8iJChgdwXToPYtHNp26v25YFXrlYlNMOZn4/C4W/ n9OhZMPJRqmwsG1+yMJ9bAx0GkWuU0LbbOSQObTDA0kY3L9Y4EYe5vABG/M0TaacLeoDEn 9Q7QHyLsQUToy0irgVFMP5ZUQcmGIz4or7F8bcf2mtYoIxPMOQX9D01Qsk4sPFEqWVZv8U dhLWqMRg8C+5u5RNmNgOIgUUf34m7CL/8m+liV6RNlHB69qPvkmLo2qcH9rtaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792965626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3g0A4J6Wir/Uvn0i1IJgiVN1GCkDcZFpScH0cXaOTIY=; b=fhMbCFZwwlT+stgwD8CG8wIH3xha+sNIkMA04CLTe9EQhSjfJ+y8fjnM14epZjoiqyfH5b CQ/lD0g3ICtr0Yy95b4BhK2iyC6Hv24mNQh/cTkQ1im5Utq2vpece8RNECBdjLV7+dI6fY BshSexFhThaoz2Oi933DP0DcP6eWcOMjMckat5Vs0kWUOvb1XQXbQrCKHbf0/K5K2ejKbs 7bCioHLgHpA4yOgcPTsyhDEkD8ZN2GW/Z84hnhaINcA+yNPHTj7EZ/cvgC794zs3l2AZK4 1cXY0xfCvwkk2WGCYFMNf1vMsGwUScLiVje64rhKtzM73hpTtXfX5VNaePnEWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jCW0B5x0Wz14TD for ; Sun, 25 Oct 2026 22:00:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 439ed by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 25 Oct 2026 22:00:21 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Ricardo Branco From: Pouria Mousavizadeh Tehrani Subject: git: 29b79c586b20 - stable/15 - linux: Ignore sigaction(2) flags SA_UNSUPPORTED and SA_EXPOSE_TAGBITS List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pouria X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 29b79c586b20d1da70df3e316e01faa710462a97 Auto-Submitted: auto-generated Date: Sun, 25 Oct 2026 22:00:21 +0000 Message-Id: <6ade7bf5.439ed.2276a8e5@gitrepo.freebsd.org> The branch stable/15 has been updated by pouria: URL: https://cgit.FreeBSD.org/src/commit/?id=29b79c586b20d1da70df3e316e01faa710462a97 commit 29b79c586b20d1da70df3e316e01faa710462a97 Author: Ricardo Branco AuthorDate: 2026-04-26 09:44:53 +0000 Commit: Pouria Mousavizadeh Tehrani CommitDate: 2026-10-25 21:51:33 +0000 linux: Ignore sigaction(2) flags SA_UNSUPPORTED and SA_EXPOSE_TAGBITS SA_UNSUPPORTED was introduced in Linux 5.11 to probe support for other flags such as SA_EXPOSE_TAGBITS, introduced at the same time. Ignore both. Signed-off-by: Ricardo Branco PR: 289285 Reviewed by: pouria, kib Pull-Request: https://github.com/freebsd/freebsd-src/pull/2163 (cherry picked from commit fdea83a5f63b881ade91c6cc9dfbf173137512c5) --- sys/amd64/linux/linux.h | 2 ++ sys/amd64/linux32/linux.h | 2 ++ sys/arm64/linux/linux.h | 2 ++ sys/compat/linux/linux_signal.c | 8 ++++++++ sys/i386/linux/linux.h | 2 ++ 5 files changed, 16 insertions(+) diff --git a/sys/amd64/linux/linux.h b/sys/amd64/linux/linux.h index 918b9129f47b..fb7aaa2d731c 100644 --- a/sys/amd64/linux/linux.h +++ b/sys/amd64/linux/linux.h @@ -154,6 +154,8 @@ struct l_newstat { #define LINUX_SA_NOCLDSTOP 0x00000001 #define LINUX_SA_NOCLDWAIT 0x00000002 #define LINUX_SA_SIGINFO 0x00000004 +#define LINUX_SA_UNSUPPORTED 0x00000400 +#define LINUX_SA_EXPOSE_TAGBITS 0x00000800 #define LINUX_SA_RESTORER 0x04000000 #define LINUX_SA_ONSTACK 0x08000000 #define LINUX_SA_RESTART 0x10000000 diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h index 5542df1b3185..737f785905fa 100644 --- a/sys/amd64/linux32/linux.h +++ b/sys/amd64/linux32/linux.h @@ -255,6 +255,8 @@ struct l_statfs64 { #define LINUX_SA_NOCLDSTOP 0x00000001 #define LINUX_SA_NOCLDWAIT 0x00000002 #define LINUX_SA_SIGINFO 0x00000004 +#define LINUX_SA_UNSUPPORTED 0x00000400 +#define LINUX_SA_EXPOSE_TAGBITS 0x00000800 #define LINUX_SA_RESTORER 0x04000000 #define LINUX_SA_ONSTACK 0x08000000 #define LINUX_SA_RESTART 0x10000000 diff --git a/sys/arm64/linux/linux.h b/sys/arm64/linux/linux.h index 00a70fabc54f..b44512e51ed1 100644 --- a/sys/arm64/linux/linux.h +++ b/sys/arm64/linux/linux.h @@ -150,6 +150,8 @@ struct l_newstat { #define LINUX_SA_NOCLDSTOP 0x00000001 #define LINUX_SA_NOCLDWAIT 0x00000002 #define LINUX_SA_SIGINFO 0x00000004 +#define LINUX_SA_UNSUPPORTED 0x00000400 +#define LINUX_SA_EXPOSE_TAGBITS 0x00000800 #define LINUX_SA_RESTORER 0x04000000 #define LINUX_SA_ONSTACK 0x08000000 #define LINUX_SA_RESTART 0x10000000 diff --git a/sys/compat/linux/linux_signal.c b/sys/compat/linux/linux_signal.c index 9a84700b3949..2318cfcccc1e 100644 --- a/sys/compat/linux/linux_signal.c +++ b/sys/compat/linux/linux_signal.c @@ -129,6 +129,14 @@ linux_to_bsd_sigaction(l_sigaction_t *lsa, struct sigaction *bsa) bsa->sa_flags |= SA_NODEFER; } + /* + * SA_UNSUPPORTED was introduced in Linux 5.11 to probe support for + * other flags such as SA_EXPOSE_TAGBITS, introduced at the same time. + * Ignore both. + */ + if (lsa->lsa_flags & (LINUX_SA_UNSUPPORTED | LINUX_SA_EXPOSE_TAGBITS)) + flags &= ~(LINUX_SA_UNSUPPORTED | LINUX_SA_EXPOSE_TAGBITS); + if (flags != 0) linux_msg(curthread, "unsupported sigaction flag %#lx", flags); } diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h index 914dc9c9ae84..f547ddfae8fd 100644 --- a/sys/i386/linux/linux.h +++ b/sys/i386/linux/linux.h @@ -227,6 +227,8 @@ struct l_statfs64 { #define LINUX_SA_NOCLDSTOP 0x00000001 #define LINUX_SA_NOCLDWAIT 0x00000002 #define LINUX_SA_SIGINFO 0x00000004 +#define LINUX_SA_UNSUPPORTED 0x00000400 +#define LINUX_SA_EXPOSE_TAGBITS 0x00000800 #define LINUX_SA_RESTORER 0x04000000 #define LINUX_SA_ONSTACK 0x08000000 #define LINUX_SA_RESTART 0x10000000