From nobody Thu Feb 10 21:33:58 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 A077719C5436; Thu, 10 Feb 2022 21:33:59 +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 4Jvqkb20NMz4mGD; Thu, 10 Feb 2022 21:33:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644528839; 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=3Xm5HMukoTNo3GQVmRWEIstEHiNFE7yQqS4X5vzQgXE=; b=kOqzjTGrLc2saX0BCzfkOfMayyFuW/BhoLpp3wDueYgto3Sr0YBVnIQhoWU+1+i6+y/DoW 4zxqYgqVoB8iySduv8WVwDDh7uGuLpETEQDeqVCjPlay0RIhvaOTXE1vOVhGMXVoPzeFlT Wn44adh1gPeHjFiKylT6uiMX7chZpaoAPFTFsMTfzPG8TMOMweVVjuCj6HwAm3ZFKTl2Mr Q+0XeWbPFSmO5mzp9ky/X0NowxGUM7XkhNv28E3BQI8sRl6PLGn+oTh2uOFxbynS9PJvMD Lto3EDdC/SHQrricbrlyZ3zjNpQhGjt692if4bGGJZTsPLLCi39APtPZiyDIZQ== 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 D077F27D6A; Thu, 10 Feb 2022 21:33:58 +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 21ALXwRr083715; Thu, 10 Feb 2022 21:33:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21ALXww2083714; Thu, 10 Feb 2022 21:33:58 GMT (envelope-from git) Date: Thu, 10 Feb 2022 21:33:58 GMT Message-Id: <202202102133.21ALXww2083714@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 0c988f92dc47 - main - arm: Add static asssert for context size 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0c988f92dc47091498e4aad01a8505253c8e9111 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644528839; 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=3Xm5HMukoTNo3GQVmRWEIstEHiNFE7yQqS4X5vzQgXE=; b=eWvlLDZNY8erf0NHRn83ZLzXdaYEcr9PPDnaccDq3uZkdR8dqGx4LmWw5LycIpZYXLVuXY 8DHmAobP6CAQ9ifA/F0TFCSV8+5TVnQFGQ3iW0yH58sR2LOKMB6DXWs+CDqM3OzjoQpCS3 al4T2YXoNMxvnnouxV4y02P4WASAqv46mN0V0IohNbUFwuMyZP/SEjazeUkVtINKca0Oue 6pgXbTatTxZeyYx3/qEAhofvENdOCnW7AwUr021jwFhyrbRLIBB8SWJdz+HrRlba4dfir7 uX7eWD2e6LzBlaQssTOQLafaQuz7Iolsmj8RVACwXRbuUxPhFzvNmsWM6j08KQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644528839; a=rsa-sha256; cv=none; b=jJXo2Sb6P+994qXtdoZ4HVUCQzOF1U3Eg0smvx33vCy8QKlOYZwl9udQA6P55ZEj2Rum02 lhXqo1QF6euH14itzCH16ZyIlSRN6h6R3puLQEt4NMGgjjb5xqsa5mWCjU79UAMZr5tp2O YG33YowWF5qJDN4ab+J3OUhOtA83JXFuSc3N1YJ+cjkkxT3rcFM+1LOhNpEB786QvwuNZU Bq1BrehQYoDvUHaNjMurR73He+16oI3dEQyMy3JYPVg1Mchqtu6ImnYVZ7aMTkXoPuZJMq Tm/UOMwfWZLvSjNZTycus4XddawmHzkPejRViPxqTrmpkoiX4IIMkhlLvP9gfw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0c988f92dc47091498e4aad01a8505253c8e9111 commit 0c988f92dc47091498e4aad01a8505253c8e9111 Author: Warner Losh AuthorDate: 2022-02-10 21:26:46 +0000 Commit: Warner Losh CommitDate: 2022-02-10 21:32:20 +0000 arm: Add static asssert for context size Add a static assert for the siginfo_t, mcontext_t and ucontext_t sizes. These are de-facto ABI options and cannot change size ever. Reviewed by: andrew Differential Revision: https://reviews.freebsd.org/D34210 --- sys/arm/arm/exec_machdep.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/arm/arm/exec_machdep.c b/sys/arm/arm/exec_machdep.c index 865fc4d86288..fdd57d7859c5 100644 --- a/sys/arm/arm/exec_machdep.c +++ b/sys/arm/arm/exec_machdep.c @@ -69,6 +69,10 @@ __FBSDID("$FreeBSD$"); #include #include +_Static_assert(sizeof(mcontext_t) == 208, "mcontext_t size incorrect"); +_Static_assert(sizeof(ucontext_t) == 260, "ucontext_t size incorrect"); +_Static_assert(sizeof(siginfo_t) == 64, "siginfo_t size incorrect"); + /* * Clear registers on exec */