Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp320394rwd; Mon, 12 Jun 2023 14:10:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6E2l4jYqW5qD243NVmtSIfICOW9Kg+wOBiyorextxeWoMRdPU4I75kcu/7w+VzuGATiOwK X-Received: by 2002:a05:6402:138f:b0:514:7f39:aa81 with SMTP id b15-20020a056402138f00b005147f39aa81mr5296611edv.20.1686604232852; Mon, 12 Jun 2023 14:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686604232; cv=none; d=google.com; s=arc-20160816; b=rc7DEiNGr1jdbe/CAIJHrs8IfRff6P0t/unyhEbI2hgcTvC/KqKN1AkAM1+ZqWvsKq JCDB5Q2xO1nkM4eauH/X20N6j6p+ZUHz53x8s7Y+6Ml9Csp9kS78DVvZGxXiD8TmekN1 EUF2wzQbqnb2wNfuZiIy9h4/r+/t5I0SjltHKVNHgrrsWz+VelTrQmxqJS+wQLh2prgR Qzlf8TEbkqBv+DWgiBzlIxrOppkrZYPVmkILOSbEg87UqPTElSfzSocykjIGNzs0Q49S SCUphjSEyIekwLAFRW44LSl01XIA0IzTtJ3u1vFMfKRtlMl1VrKvVgs7VgGwTaIYqfUj pIcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=e7OywNO6woX8jazxoF3DRue88w4LKUCvmyGMABiSr+E=; b=eK1EqW3vBX56tHeNonwk7Nr1tQBXdzkV5GvdY7t2hevmiE3YjUSHk8oCbka3oI4MNj LjzFyaUUaYdqnv1OHwmc2zOXXAVg3Hry0ytCey6RH/b+2T8mgTLFvQijM8Sa5tKDF53p IvQKCmGVgOwtg9JBWbeY3PQDnSphaaKxs5tuDNIehLkOiO7co7L60kS49a7lhZ8WBHZJ m3/rpkFoUr1AF5376iPONMnc5deMzsylw3AxFYYUbgL/sEsurYp0s7/1LZpfmbRMDcb6 UsA0Bk9Os1kx9IwF89Nx5DR3LFhyiBdY/49plCtv3Dr5XhTjriTEHu1VZloYaC8NEMiY GF0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T6chP21R; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l26-20020aa7d95a000000b0051499c29ecfsi6387018eds.576.2023.06.12.14.10.06; Mon, 12 Jun 2023 14:10:32 -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=@kernel.org header.s=k20201202 header.b=T6chP21R; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238039AbjFLUsc (ORCPT + 99 others); Mon, 12 Jun 2023 16:48:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237384AbjFLUra (ORCPT ); Mon, 12 Jun 2023 16:47:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A710295C for ; Mon, 12 Jun 2023 13:46:39 -0700 (PDT) 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 9E46062F0B for ; Mon, 12 Jun 2023 20:45:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03E8FC433A0; Mon, 12 Jun 2023 20:45:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686602717; bh=XFbVAoZliJCAsIZtC3pxKZbS9h6xeSTohI3SMPpRFt0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T6chP21R/i3XiGgRmPpX4CX4ZHFRyynO1aN1tCDAHDWdODS/Js2M72FfrxexZqBso QRBqdL9SShZFknnwRIWjCoyKVDy5e2sQPVBWViDoK1zIcgEFsCj6PyzmoE6syLm9Kv 8nroR2RR9jbX7Q63pxcYbmSqHhtht01/wi6xutzJmA37TmjYt6yCUpXCleG3Ir8HKE yfugWe9O8lnJwAxLEdGpxj7WdWbRXKR5u0wnqhqCDHVoTGg+DrFrXX4TUBYyWLQRf7 YJWLOLq5hSW37D8CZPhRAUOQqglKKLTcr8pFZ1tCzUwgrMCs+d6K05/QNNX7xWA0XT dxBrYLAJ5mGpA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id E40AACE3A6C; Mon, 12 Jun 2023 13:45:15 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: gwml@vger.gnuweeb.org, kernel-team@meta.com, w@lwt.eu, =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Willy Tarreau , "Paul E . McKenney" Subject: [PATCH v2 nolibc 26/53] tools/nolibc: x86_64: disable stack protector for _start Date: Mon, 12 Jun 2023 13:44:47 -0700 Message-Id: <20230612204514.292087-26-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <8b757cc0-3719-4e63-a755-9710384137bc@paulmck-laptop> References: <8b757cc0-3719-4e63-a755-9710384137bc@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Thomas Weißschuh This was forgotten in the original submission. It is unknown why it worked for x86_64 on some compiler without this attribute. Reported-by: Willy Tarreau Closes: https://lore.kernel.org/lkml/20230520133237.GA27501@1wt.eu/ Fixes: 0d8c461adbc4 ("tools/nolibc: x86_64: add stackprotector support") Signed-off-by: Thomas Weißschuh Signed-off-by: Willy Tarreau Signed-off-by: Paul E. McKenney --- tools/include/nolibc/arch-x86_64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/include/nolibc/arch-x86_64.h b/tools/include/nolibc/arch-x86_64.h index d98f6c89d143..e201af15e142 100644 --- a/tools/include/nolibc/arch-x86_64.h +++ b/tools/include/nolibc/arch-x86_64.h @@ -190,7 +190,7 @@ const unsigned long *_auxv __attribute__((weak)); * 2) The deepest stack frame should be zero (the %rbp). * */ -void __attribute__((weak,noreturn,optimize("omit-frame-pointer"))) _start(void) +void __attribute__((weak,noreturn,optimize("omit-frame-pointer"),no_stack_protector)) _start(void) { __asm__ volatile ( #ifdef NOLIBC_STACKPROTECTOR -- 2.40.1