From nobody Thu Feb 17 15:53:54 2022 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 A729A19CBB5D; Thu, 17 Feb 2022 15:53:56 +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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jzzrz6ZxTz3wHZ; Thu, 17 Feb 2022 15:53:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645113236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q1ST0lajDk3jHFySc7Lk7pdL4gnwiankRZIUx1/tzIc=; b=h9mBzg/57OnZ2DBwL7lBQGRFVPCuws/Pz7jv7gYMsyk2jMxMFS4bROZxgSD6Y2eLpwIQWz PYef53tixrXHdCXIDY9v5wsS2Hkrk4eVsDn3u0aYvPuE+GcoIwCA08MmQkTMpSNeqTd/ph c8ksVEP3E3ixs/uaz1qsVb5nOFgZLn3IRomXE28w1Vwg4ywsDF0W5MxT3sL1b33K8Z58QD 7PLHieu/Eaplz1s52Y5M7mtAdf09lGo9eY7t2GV87vrz+vVgFK6iSq8awQZpE3h+YLI72b kyneNfECAczPzzj879haoGWrtaHGG8riC1qwSMEY8EKPPED0vsEkyk9r4uXD7g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1333B4C09; Thu, 17 Feb 2022 15:53:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21HFrs4x022328; Thu, 17 Feb 2022 15:53:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21HFrsCj022327; Thu, 17 Feb 2022 15:53:54 GMT (envelope-from git) Date: Thu, 17 Feb 2022 15:53:54 GMT Message-Id: <202202171553.21HFrsCj022327@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Edward Tomasz Napierala Subject: git: f948f5ed7cda - stable/13 - linux(4): Improve comment about SA_RESTORER List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: trasz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f948f5ed7cdaa0ab499dfa13bd6e8e6a4c7587e6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645113236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q1ST0lajDk3jHFySc7Lk7pdL4gnwiankRZIUx1/tzIc=; b=esH1J5Pt68i7ZrfnxQTCCuEzJFULY8vLkBoM6R4sfA+1b8elfVtDrwMJYBpmtw+wR/a21k 2NUZ/pc0yl/2QzQwEYVGrzppSgQ2qMaNE6XclhIgg+b8gEF4WZtqT4G9T4SivEYcqQYs1b NVNTsU4Kw2IEla4RqcVPYeSW8j6Nu7HRF961nch9XVRfDBuJ6XtY92vntFr9mOTlFVV7l3 Iir5l9Yd9cOPslby8GAWSq4z5xhTT2N+UIz0RjIaHuLrTTameAiILcuJkGUlSZehlLB/Mq bZ3x0DTMwiipzeOsC1Z8FXVDCxylctSDebmcT0/kD4hcyHeRMRzOo3+JrAarCw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645113236; a=rsa-sha256; cv=none; b=fkTjCUhPcvUIg+rmiOEyZ/MJDB/uGf0uY+W260DeGJRiKbygBFCsAyDVUfFlEo5WTgNNQL KoCW9tbJPlEueWgLqFZLnETUCZmBcsjCwAsLtly1RIV5RO/UQwhCliG/PtDuuf/5vBm/50 9ATfLUqQny3QXcYVvh0OVGWoWHejukIpJtKuac+bH5yVTVko7n6/wQP3LQcO7CKBzuzepf rdzEugpkM4xYivToJGL1g3zabAYti8hAoF8RX6NuFhtUCK/AbXy4fBeIJuIukBSv2bYApB vgFjqf+Vi06Bs0gC0QwfBW+wB4Spw6hAlF0Rk9uG6LV4S/CjQw0omasjB23BKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=f948f5ed7cdaa0ab499dfa13bd6e8e6a4c7587e6 commit f948f5ed7cdaa0ab499dfa13bd6e8e6a4c7587e6 Author: Edward Tomasz Napierala AuthorDate: 2021-07-13 09:38:08 +0000 Commit: Edward Tomasz Napierala CommitDate: 2022-02-14 00:09:13 +0000 linux(4): Improve comment about SA_RESTORER No functional changes. Sponsored By: EPSRC (cherry picked from commit 3eaf271d3c0e4fa18b74971a71c950fd43fa4189) --- sys/compat/linux/linux_signal.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_signal.c b/sys/compat/linux/linux_signal.c index 71b00da569dc..0e2fbd31b398 100644 --- a/sys/compat/linux/linux_signal.c +++ b/sys/compat/linux/linux_signal.c @@ -91,7 +91,12 @@ linux_to_bsd_sigaction(l_sigaction_t *lsa, struct sigaction *bsa) } if (lsa->lsa_flags & LINUX_SA_RESTORER) { flags &= ~LINUX_SA_RESTORER; - /* XXX: We might want to handle it; see Linux sigreturn(2). */ + /* + * We ignore the lsa_restorer and always use our own signal + * trampoline instead. It looks like SA_RESTORER is obsolete + * in Linux too - it doesn't seem to be used at all on arm64. + * In any case: see Linux sigreturn(2). + */ } if (lsa->lsa_flags & LINUX_SA_ONSTACK) { flags &= ~LINUX_SA_ONSTACK;