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=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,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 290B7C282DD for ; Thu, 9 Jan 2020 16:19:51 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id E408120661 for ; Thu, 9 Jan 2020 16:19:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZD/BaH+/"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hMvOh/9W" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E408120661 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BoJ05tM2EvjNphMKjdnFN17ZJQeOaHi1SSIxtt8NjHc=; b=ZD/BaH+/ihFlZz JayX/mpqOGzeqg3hc2e6+FBt8KbQ2vxGEzElC4A1iK9gP1kcTdMQgIyMZ9E27WaYfjB0UaJ0JfWfL Zx3FrWuYoz3h20ehzsl4Fl5HFO6LNOOiCFZRVEsndGidqC51R4yhWNKDBt93tMQIUPUJ9Y2yYZnji QpZ0mLV0uLXGftOum+fTq5YBQOaDLnaFtNvc7o0SWnVaGU63bNRfbRCzx1SiGnMI8iAT0niQnX8i+ 1aPkRfkkynfb/fQJfr/St4RvqooVWHsNLyjRhZd5khNuJ7ihJozp/wijHXGm8+ebCAKthBEEiP6JI fiNPnzbVXUcg4QByZxLw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ipaXD-0005ZV-7y; Thu, 09 Jan 2020 16:19:47 +0000 Received: from us-smtp-2.mimecast.com ([205.139.110.61] helo=us-smtp-delivery-1.mimecast.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ipaMq-0001wr-5Y for linux-arm-kernel@lists.infradead.org; Thu, 09 Jan 2020 16:09:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578586140; h=from:from: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=/nIUOgXVWIb61EZ6bz5wgUle47qxfmMoZ4VlUNkCYRs=; b=hMvOh/9WhVgjGga7FmurQ/aFOks+bTkfW2D7bU4u86HHUlTLzwqyq50MAgx0pEklzSTSUl fK5dTOm8l5ifTxXFMYhz9yJEVdXfG5We1/sXBkvgPxK/wsiJu2khFDBa585NDQRq4L6aIe ewia3zedv9Z5XkvxMro/L5D9EAGQgoo= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-418-dqwE7zpfNZmEvTBGmeUhGQ-1; Thu, 09 Jan 2020 11:08:57 -0500 Received: by mail-wm1-f71.google.com with SMTP id o24so624643wmh.0 for ; Thu, 09 Jan 2020 08:08:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SOQjJaPeQ6AkeMaBkCNADMS/kyh8erzQiBDqDRYV0Ec=; b=mdotRsL9FBnp/ASIuAaEtph08AsR2TVc6BAwi1i2e91wNKFieXr13RxwwjrvpsKK0F gBDdRy5d0+XHGPiy7OK2F/VJ/4fSUGnQzakRq3ET4Zye07dvtY53RMbOlCx0Suxm0cCT UxtWAk170/WoyfyboJ6Q9/LAoKUJhq5wU+HddJoZwOUx7695NYNTAMZtRovCb04khNwD 1uAQ81f9Iy7QhhpyuFSTWOzY5L9lLMXJyUn2pHI/k+dNLe6vhc7ngu3hLo55UJwwwHr6 M/SozHitoToLKhF65/k6O7iZHe8GNper+Mc5wHNhXWeEqksdIJLpVDExj/OHISLVZzC2 Z9aQ== X-Gm-Message-State: APjAAAWNBW9HqLnUoGAbxXYYEzJJa4+fl2RsLKxaVxfDPQ1+hELzot6u F1kcqoAr0jmb6VCmtClni1kQ5irCiuOzcVYB1fu6XVCF4p9fiO6kV72O2pn6YGKj4bYIYuxUno3 AwweZ6i18NZO1qiQjb1/RlTzJ27Z++vU+wYc= X-Received: by 2002:a1c:8095:: with SMTP id b143mr5978372wmd.7.1578586135882; Thu, 09 Jan 2020 08:08:55 -0800 (PST) X-Google-Smtp-Source: APXvYqxEszMufKupL2p3ncLrB7YUBRc575U8Mr//L6Fw6AnOA6p/ZOQdu3ZNuVMIx6ccyJ0DT1HBiQ== X-Received: by 2002:a1c:8095:: with SMTP id b143mr5978353wmd.7.1578586135722; Thu, 09 Jan 2020 08:08:55 -0800 (PST) Received: from redfedo.redhat.com (host81-140-166-164.range81-140.btcentralplus.com. [81.140.166.164]) by smtp.gmail.com with ESMTPSA id v8sm8403505wrw.2.2020.01.09.08.08.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 08:08:55 -0800 (PST) From: Julien Thierry To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RFC v5 46/57] arm64: alternative: Mark .altinstr_replacement as containing executable instructions Date: Thu, 9 Jan 2020 16:02:49 +0000 Message-Id: <20200109160300.26150-47-jthierry@redhat.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200109160300.26150-1-jthierry@redhat.com> References: <20200109160300.26150-1-jthierry@redhat.com> MIME-Version: 1.0 X-MC-Unique: dqwE7zpfNZmEvTBGmeUhGQ-1 X-Mimecast-Spam-Score: 0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200109_080904_544739_A2C1577D X-CRM114-Status: GOOD ( 12.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Julien Thierry , peterz@infradead.org, catalin.marinas@arm.com, raphael.gault@arm.com, jpoimboe@redhat.com, will@kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Raphael Gault Until now, the section .altinstr_replacement wasn't marked as containing executable instructions on arm64. This patch changes that so that it is coherent with what is done on x86. Signed-off-by: Raphael Gault Signed-off-by: Julien Thierry --- arch/arm64/include/asm/alternative.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/alternative.h b/arch/arm64/include/asm/alternative.h index b9f8d787eea9..e9e6b81e3eb4 100644 --- a/arch/arm64/include/asm/alternative.h +++ b/arch/arm64/include/asm/alternative.h @@ -71,7 +71,7 @@ static inline void apply_alternatives_module(void *start, size_t length) { } ALTINSTR_ENTRY(feature,cb) \ ".popsection\n" \ " .if " __stringify(cb) " == 0\n" \ - ".pushsection .altinstr_replacement, \"a\"\n" \ + ".pushsection .altinstr_replacement, \"ax\"\n" \ "663:\n\t" \ newinstr "\n" \ "664:\n\t" \ -- 2.21.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel