Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5585EC433EF for ; Thu, 16 Jun 2022 11:29:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=r8uKIs4GnuSFrXtJUnHx3x256hWOX/gBXXSi1hS2yKY=; b=mDvb705MG9rQOZ yXJSFqgmuP9Qqt0RDPAA1Z8Ws/UWnygcXg2caHBBweS9T1BQFZUc123jZrx1C7+v/y+pCqGet3LGZ ANwUCJZ+ZUoknP6Ilkd/L8Qx8xo7MuqF1otVWDxdXOBaMhSnEZljvnS8R/hTVeDO3c7jayiIiKZHz v7ji7OdbShJNxgHh+TcdrUHi4q6UN0FiTRPw5Gz65W5D0/MiNFLz9jKsE+D/FI/S9xzKdTw+0Q6FB CTXcNny9csEVOtmCeBgrD5pzSSPN3lyU3nVuqEuJRqj5gedKBKkahA9x/fNwBz+6jU8R2QbSPnuyo wXf+o4GMpENpSZaxtOTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1nfh-0024kV-Qx; Thu, 16 Jun 2022 11:28:21 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1nfX-0024hG-3I for linux-arm-kernel@lists.infradead.org; Thu, 16 Jun 2022 11:28:19 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A47AB61990; Thu, 16 Jun 2022 11:28:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B30FC385A9; Thu, 16 Jun 2022 11:28:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655378890; bh=gJYD9YptV5fkr3a+OrehKxAtqgQwCmpqCPoz4i+ml3I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vCyrTT5XSJ3iYYOqUh7Pl+T+GqaSXtfFv56PA3hM+lg0f4fZxMbNynOEBJOsYV17V p6m8fEUlutYAR5Q1OkWwFY2H1TH082aEg0VxXiNsFjFtbJZVcu2pwXWHFdejb5gfNT vYdppoojzATHnnMUPgfq8RzVgV7wrcAjV3U+1dLJZ10NQwZtbVGQcObM4XuaBWZvvS r91YoU3PUsHeXMzxraiI0PFOqHxXGV3MnC/dQbXigOn9t2IosNE/0+wrhfgPAmZhL3 8IZ5WMf7cDWEmBIL2IV9YZyf0rZF7RZvHe+Lkz8Lp4zJYl0yVSZxF3ymt751nDi7/A xu8QLaY6sJE8w== From: Mark Brown To: Catalin Marinas , Will Deacon , Eric Biederman , Kees Cook Cc: Suzuki K Poulose , Szabolcs Nagy , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 2/4] elf: Allow architectures to provide AT_HWCAP3 Date: Thu, 16 Jun 2022 12:18:16 +0100 Message-Id: <20220616111818.724230-3-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220616111818.724230-1-broonie@kernel.org> References: <20220616111818.724230-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1245; h=from:subject; bh=gJYD9YptV5fkr3a+OrehKxAtqgQwCmpqCPoz4i+ml3I=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiqxF1xf5IhJAAe1z6a7F8vugO3Trp8R1C5/By9yHz IF+4V3OJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYqsRdQAKCRAk1otyXVSH0COGB/ 9wOQp6SadoqQn5LInSSskRYz3qrzC5d2xpPN0OCGepCvl6TmudM/08w1Q+daVfl5EO8Y5/vFwUZwgW jiGWF/nZHGqpa6V1+zrDhtik85QHR6oYrtluUQLguj9RCwdX+CxQ717yRVoQA/nTTM1cBq7s0gCGzM fglAwmkoWA4P9E7L4MAevYc+r5EZLLmxd7LQ2UnBQ2W3QDiTBo/zsmvwQCklA2C5vwPcwbJZE8Zk+0 n++JqfbZogOhFPc/qqW27ZgHudj2iA9Tq4kVr3DyTGrS+tvdXZBBf+s0nmpBBPLVVV2+jL2uJk47XA xloqPvwosKQfUOzwQr6w5iEtj27Yzj X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220616_042811_253160_FCEAD12B X-CRM114-Status: GOOD ( 12.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In order to provide for architectures which have filled both AT_HWCAP and AT_HWCAP2 add support for AT_HWCAP3. Signed-off-by: Mark Brown --- fs/binfmt_elf.c | 3 +++ include/uapi/linux/auxvec.h | 1 + 2 files changed, 4 insertions(+) diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 63c7ebb0da89..59d937dddc09 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -275,6 +275,9 @@ create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec, NEW_AUX_ENT(AT_RANDOM, (elf_addr_t)(unsigned long)u_rand_bytes); #ifdef ELF_HWCAP2 NEW_AUX_ENT(AT_HWCAP2, ELF_HWCAP2); +#endif +#ifdef ELF_HWCAP3 + NEW_AUX_ENT(AT_HWCAP3, ELF_HWCAP3); #endif NEW_AUX_ENT(AT_EXECFN, bprm->exec); if (k_platform) { diff --git a/include/uapi/linux/auxvec.h b/include/uapi/linux/auxvec.h index c7e502bf5a6f..76631c7f9e8f 100644 --- a/include/uapi/linux/auxvec.h +++ b/include/uapi/linux/auxvec.h @@ -30,6 +30,7 @@ * differ from AT_PLATFORM. */ #define AT_RANDOM 25 /* address of 16 random bytes */ #define AT_HWCAP2 26 /* extension of AT_HWCAP */ +#define AT_HWCAP3 27 /* further extension of AT_HWCAP */ #define AT_EXECFN 31 /* filename of program */ -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel