Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1941828rdb; Tue, 5 Sep 2023 09:22:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHP8ZYcTJUZWBxxADreqrS4mPGSpUwOunWn0UGd57/zeqnHFaBO9X5PW8eiZ51noo9VcMVI X-Received: by 2002:a05:6402:7c4:b0:525:4f15:d26e with SMTP id u4-20020a05640207c400b005254f15d26emr230361edy.32.1693930978336; Tue, 05 Sep 2023 09:22:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693930978; cv=none; d=google.com; s=arc-20160816; b=cz830L/C8ZdW/OrmbDo9IURFpp560SMBn/JANMgXS9H1GT0avS2xUuk2+0P0DgVwT7 sm6rCfo1i5WY4YvHywRGJ/BLNBNKtZTGJ0QjUgXgBgzglgrwQ/nwG4N6VpjF8keQ/wTz my70Ov+NhLb+q6jIh6dfKyX9/ycxd8b/dwP1mLj0OOZ+yPvTifXZeulzqmUAE0YXS1N1 wKYWHSpXRBBHaDRVtA49IGrrox0PqgW85U1GQd5hWwRoOGSdrVkpAW/5KYwBVw8DBrRF JY/1L2nxq7aVIMB/seIbWLaVXzqIZ76JXXoVdMwUl5a5KHAvnggc6NSI71SvmbCqXK2D pU4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=r1rbe0+qLjSIdXob5RQEh6hDPQoTXLohm3YDfo90QS8=; fh=Ge/aFQCwWXbAr9y89JxGn3QcZNRV+O41sOB47a4A7jM=; b=vYz9fKGaIf+uXo5tRN2ivRq0iYVi/qQqfq5mdsYiUbA4+h8KChpx3wD4+ArquyDn/G /+J280hAGDg5xfZTznWic1eDYNyk6JnOY7pr1aE5PijDn+eSdFAsCBw1WOw7RxXy+jK1 mzaPZYR7O7sR+h9QTueH6jz8tEI0OOGOydogHNCDAZt0Ofq4aZUDMmRVJsDsekTJIbtZ l0nCnq9A8NBO56PK1baepwr7SOMntiTMVhu6iau0irrLs6AnL8xadZsAN0Sy/rXq86or 2b0Dq3libpT6HC68/6QEbeadaaUbpQQXpY5GyBVJyVwu99oxIoGQI9/Ka5D0kGi97Kb7 JfHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=hJFaRRL2; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=e8PSjHwx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c15-20020aa7c98f000000b0052c235ca6e6si7574084edt.666.2023.09.05.09.22.52; Tue, 05 Sep 2023 09:22:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=hJFaRRL2; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=e8PSjHwx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229709AbjIAVq4 (ORCPT + 9 others); Fri, 1 Sep 2023 17:46:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350801AbjIAVmu (ORCPT ); Fri, 1 Sep 2023 17:42:50 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 673D32101; Fri, 1 Sep 2023 14:39:37 -0700 (PDT) Date: Fri, 01 Sep 2023 21:39:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1693604375; h=from:from:sender:sender:reply-to: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: in-reply-to:in-reply-to:references:references; bh=r1rbe0+qLjSIdXob5RQEh6hDPQoTXLohm3YDfo90QS8=; b=hJFaRRL2vfHw+TVmYRkeQXZcsI6a5HhWTuiQOAcLAnDYHqVaq2NFeZz35gqCZcCMadZNOD aTrXIDOKzCyKjQqqLbu7DcO2tVLnvePEPx4SQ93tj1bI/ZNWr0cVTGbit8GfgvjYV0zceU LQ7o1eTEfRUXN06dXukciSOo8ynUQ3l4dYlIFh4WliAZT/uJ8zo6bX/74KioeWafG6w5kA q4UkA6fyK07NQN07Z1Dt9WQ6GbGHRlTahdP/ne6R/KrJRVy7GNxkt6WNbVStU7vG75MK+x bRGIoYd3e8D5xRSZ6FBVQCJr3twIzNyIuVTafyRd1wsqdKI+wTSJmC8KyyA2FA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1693604375; h=from:from:sender:sender:reply-to: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: in-reply-to:in-reply-to:references:references; bh=r1rbe0+qLjSIdXob5RQEh6hDPQoTXLohm3YDfo90QS8=; b=e8PSjHwxEbW17Hb3oBKDdzO8090MMf3IGAyVmvKsDj/nGNzCrZnBQb2eX5o9O069dE2fVm N/J7hSdeRVGMguCg== From: "tip-bot2 for Rick Edgecombe" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] selftests/x86: Update map_shadow_stack syscall nr Cc: Rick Edgecombe , Ingo Molnar , Sohil Mehta , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230901181652.2583861-1-rick.p.edgecombe@intel.com> References: <20230901181652.2583861-1-rick.p.edgecombe@intel.com> MIME-Version: 1.0 Message-ID: <169360437465.27769.16274321384160860209.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 6ea7bb00c1ba180f8bf8320b8d59b532501c5271 Gitweb: https://git.kernel.org/tip/6ea7bb00c1ba180f8bf8320b8d59b532501c5271 Author: Rick Edgecombe AuthorDate: Fri, 01 Sep 2023 11:16:52 -07:00 Committer: Ingo Molnar CommitterDate: Fri, 01 Sep 2023 23:34:13 +02:00 selftests/x86: Update map_shadow_stack syscall nr Shadow stack's selftest utilizes the map_shadow_stack syscall. The syscall is new with the feature, but the selftests cannot automatically find the headers for the kernel source tree they are located in. This resulted in the shadow stack test failing to build until the brand new headers were installed. To avoid this, a copy of the new uapi defines needed by the test were included in the selftest (see link for discussion). When shadow stack was merged the syscall number was changed, but the copy in the selftest was not updated. So update the copy of the syscall number define used when the required headers are not installed, to have the final syscall number from the merge. Signed-off-by: Rick Edgecombe Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/lkml/Y%2FijdXoTAATt0+Ct@zn.tnic/ Link: https://lore.kernel.org/r/20230901181652.2583861-1-rick.p.edgecombe@intel.com Reviewed-by: Sohil Mehta Fixes: df57721f9a63 ("Merge tag 'x86_shstk_for_6.6-rc1' of [...]") --- tools/testing/selftests/x86/test_shadow_stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/x86/test_shadow_stack.c b/tools/testing/selftests/x86/test_shadow_stack.c index 2188968..757e652 100644 --- a/tools/testing/selftests/x86/test_shadow_stack.c +++ b/tools/testing/selftests/x86/test_shadow_stack.c @@ -40,7 +40,7 @@ * without building the headers. */ #ifndef __NR_map_shadow_stack -#define __NR_map_shadow_stack 452 +#define __NR_map_shadow_stack 453 #define SHADOW_STACK_SET_TOKEN (1ULL << 0)