From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83541C43381 for ; Thu, 4 Mar 2021 17:03:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4B79464F77 for ; Thu, 4 Mar 2021 17:03:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238875AbhCDRCt (ORCPT ); Thu, 4 Mar 2021 12:02:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:33302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238823AbhCDRCh (ORCPT ); Thu, 4 Mar 2021 12:02:37 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id BCDD964F5E; Thu, 4 Mar 2021 17:01:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614877316; bh=IxzJw0GUqBQVtl7etqZ3Ql2q06WxtQPDUPWKaQdph1g=; h=From:To:Cc:Subject:Date:From; b=LwU4aDTwYavEjfgM27t/bOdZISkZPCLyFQQO9rXA66mB8V1GRk7FtnETOecIDrZ8S TXnuoZVZ1T3W9S3F9uLxGCUJmefYOReBk0ZQbEOlc/BkuTWYeyGq9xu5bkN81Mfd2h gtDWe0gZ7hBaO1uBk2YgFn4VyfpCLK/cmHMEs5K8wuB1bqNv4hn8pQNVbdBKdJVLCl G25KKdCTmDI8qRWBjY/RQffRpnHr6reQzxUDGFfAJh3S+xk/vQHPucpuB/6IZcoSKl v0WN+d7TcD1wU4uF8ezz9rtKKDDm0iGlLunr89zWzebSb0kmTmPgVtvD1ircY4TYUo ARMcLhtpbGn/g== From: Andy Lutomirski To: x86@kernel.org Cc: LKML , Andy Lutomirski Subject: [PATCH] selftests/x86: Add a missing .note.GNU-stack section to thunks_32.S Date: Thu, 4 Mar 2021 09:01:55 -0800 Message-Id: <487ed5348a43c031b816fa7e9efedb75dc324299.1614877299.git.luto@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org test_syscall_vdso_32 ended up with an executable stacks because the asm was missing the annotation that says that it is modern and doesn't need an executable stack. Add the annotation. This was missed in commit aeaaf005da1d ("selftests/x86: Add missing .note.GNU-stack sections"). Signed-off-by: Andy Lutomirski --- tools/testing/selftests/x86/thunks_32.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/x86/thunks_32.S b/tools/testing/selftests/x86/thunks_32.S index a71d92da8f46..f3f56e681e9f 100644 --- a/tools/testing/selftests/x86/thunks_32.S +++ b/tools/testing/selftests/x86/thunks_32.S @@ -45,3 +45,5 @@ call64_from_32: ret .size call64_from_32, .-call64_from_32 + +.section .note.GNU-stack,"",%progbits -- 2.29.2