Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4547101img; Tue, 26 Mar 2019 11:32:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLabyjLi7X/GC9cLZFFGrZ9yQ5KBt/u0wHgFuwT/e78eVqEs3VyvXqvXBsp3zADNVlGkRi X-Received: by 2002:a17:902:2bc9:: with SMTP id l67mr32337991plb.102.1553625171830; Tue, 26 Mar 2019 11:32:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553625171; cv=none; d=google.com; s=arc-20160816; b=VDhsGdj5WcDCzHTjc6UGx9nacX0W09zgh9AG3TXKexjTzR5jkQ0Khh5DQUgfEO9nES VDQS22D6ORy3mnyCr//9AN1jQYYqml5ife+x0MkemIupujnCLR9jxArKePNFbksIIraD MNVJ20A95iqGaSaalIT5T5D8RmcOAIctgdhIFfKfFgIulAD6jTU9aagj41c99YtCpxWF hmyg1+C5afgTV+9QjtktPPHCzhBkgw4UXj2oqp3yeunDp0ytMvbfedINjk7sZp5FI/7E yCG/paPJMrWn6EJNA01Dyq/4QzQSF4LQnAG09bfMGb6mNpFsVzZEhld4o0p4PpHWwvXE csLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iRETx+v6hXpRFEkQt4OmUIk6r7iADfbFfsU1V+C7eO0=; b=pLHu6SesexstLslhRS1fk+Vij/6qcpadjEYPB83y+R8ood3ah4MndyqnHZLmFzPNw6 TmCHFJ2dpissTY3thCPYeS8kjNEY2SeyATVuB3+tvUx1vEQN9zobZ45ptb0GIsVSrfRT 6ydoNbS/JW/G0cPDTsKVyztzAELzHqfMApi0qrvP4kGEH52X4Lc0dMN6iQ68qE0Hpe48 JpSlgwoZatGa/DO0W/qdzaayW+lPSZqZjaXu0kex0KHefdnn+/CcaDhiHFDEO1sCEjmC Tc9x2Qb8vrUJ+/fQjg/WfxqzEXy9sXv9lpZ3WEMZg9vYI8q3Ho318FA5OesPe9MsRnm+ SLpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=WDSX2K6U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p22si2832217pgi.449.2019.03.26.11.32.36; Tue, 26 Mar 2019 11:32:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=WDSX2K6U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732962AbfCZSaK (ORCPT + 99 others); Tue, 26 Mar 2019 14:30:10 -0400 Received: from one.firstfloor.org ([193.170.194.197]:54160 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732659AbfCZSaH (ORCPT ); Tue, 26 Mar 2019 14:30:07 -0400 Received: by one.firstfloor.org (Postfix, from userid 503) id 35A5E86722; Tue, 26 Mar 2019 19:30:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firstfloor.org; s=mail; t=1553625004; bh=38XXrpoAyr2tks/OhuPaD+DSYzTCp0iIYFGzjfjH1Hw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WDSX2K6UEf/nzc+9lME0BZHMtJFbGug2KOv9GYnt53XuOo7dFIiQ04hjEiZ9Ti1nd 9S/6aBw9jKjBfLSh9/nQtykhSEaI+iVRGY5358anUfr3XXfznNL+4Jzp2/RhAmoMgL UnLGvNWwM9HDBmIVLq3uruHxe7Ij3B5Ip/QA29zs= Date: Tue, 26 Mar 2019 11:30:04 -0700 From: Andi Kleen To: Rasmus Villemoes Cc: Andi Kleen , x86@kernel.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Andi Kleen , herbert@gondor.apana.org.au Subject: Re: [PATCH 14/17] crypto: Don't mark AES tables const and cacheline_aligned Message-ID: <20190326183003.c6bcy642f5bkf6ry@two.firstfloor.org> References: <20190321220009.29334-1-andi@firstfloor.org> <20190321220009.29334-15-andi@firstfloor.org> <58128cae-5871-64d8-0b4a-c1e3bb354e95@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58128cae-5871-64d8-0b4a-c1e3bb354e95@rasmusvillemoes.dk> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 26, 2019 at 09:42:13AM +0100, Rasmus Villemoes wrote: > On 21/03/2019 23.00, Andi Kleen wrote: > > From: Andi Kleen > > > > cacheline_aligned is a special section. It cannot be const at the same > > time because it's not read-only. It doesn't give any MMU protection. > > Urgh. Perhaps this instead just wanted to use the quadruple underscore > version, ____cacheline_aligned ? That would make these objects correctly > aligned and still live in .rodata, no? Yes that seems to be the right fix. .rodata is 4K aligned, so it supports 64 bytes too. -Andi