Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4046007img; Tue, 26 Mar 2019 01:44:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0GXUQo7jihl/MXjhSXunmLW4KkZWbw/xNCphkvrMziBJ3DrTOJSpanEaa/H/tKvZtWL8h X-Received: by 2002:a17:902:3283:: with SMTP id z3mr29752038plb.236.1553589874220; Tue, 26 Mar 2019 01:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553589874; cv=none; d=google.com; s=arc-20160816; b=jOTCyheMMTlC6RWJ3ssFJCPKNM2YWFCR39sAVEXDSfP0SkmIjUAbMHaQCO8nCUncXQ yg8sV4g6Rk9h9td640Ygu+CKpevlOiyKcRI97FVylbHc0S9A8ReBo5lmIcFjp92fKQHG fswMUZGxepHQTc8xKJWAkfMzyTpQE4fc85DJ9QMlqjWLKnEp2QdqE0wuS88yW7IOAAzC vLiVvgDmlcYuu9/LcMOmIs7Mr0yWs4+QpnKHvaoUDOZCrBZE8lwA7tKTC+Hy9A3mOgN4 h4tPsPROWosEuUyFtzgkZMp1DP4se5qLw7anhZZnyDAt0VGD16orXiXGN3N5YytqwUyr QPzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=SD/PKwauTHsQj5wRHRWaalJgkbU5bKy2l+RZqvzJcgM=; b=w/AJaHMpKGnukjhzy+M+ulxFJSM08ecjmoaewfODdU0KG82bBrqxIR/3pJuSmhzS5x Mkqkhxdooq1Ew44u+Gc6ID+sMxeu+OrV7DnvmuYtY6Jj9PnWAp2j0/JdSsalaRLQSEA5 wWhKoxQg36JNE0lG5H67qv40iftHgXKTZeLVRjVb+vMB2kPR/iKynMbuR5IRGOBgaH7G IEVL0yMduhRE4BHoaitUcqRscOxZfJUod4iQhKDZIFuiLZgYBrE3ZtFk49Scss/3coXL BoUKypfD8e5W9AIglUUogi2JMcajk3E5B9lri7kBQv1Ptjq7enuPULxLjk27QgDQoy6Q z7nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=WRaMQVWy; 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 z72si5943201pgd.401.2019.03.26.01.44.19; Tue, 26 Mar 2019 01:44:34 -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=@rasmusvillemoes.dk header.s=google header.b=WRaMQVWy; 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 S1731156AbfCZImR (ORCPT + 99 others); Tue, 26 Mar 2019 04:42:17 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:42934 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726645AbfCZImQ (ORCPT ); Tue, 26 Mar 2019 04:42:16 -0400 Received: by mail-lj1-f196.google.com with SMTP id v22so10308319lje.9 for ; Tue, 26 Mar 2019 01:42:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=SD/PKwauTHsQj5wRHRWaalJgkbU5bKy2l+RZqvzJcgM=; b=WRaMQVWyrAOZ894ZOrSopfVDnZ5S/1PgKT6RybW6Lg7jo74Zvw/FZdaHAZOIGgTLt/ Uk7I4XdsK5tt44qWQwYeeK9SERBVsNXCYc940IZ/cPJCbvfQFzTWg5FCYehW0/yaI2RB GBT40qTR659SbhHc9uaZ29+fulBI1BWwmYOHQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=SD/PKwauTHsQj5wRHRWaalJgkbU5bKy2l+RZqvzJcgM=; b=QJ3EKhfHyU4TiI6XYyi5KkHxuvJb+NtqXsXYfuyXWQ66zi0Wf3RcLPH/5Nym+uHJVn v2X0jsI/hoIYcJjN7NLQAGK8FPxbRrn3/krzupAkkCBuW4yxrhaJyZLbVSh2QLmLPsp/ vCsuMAohzfoqWWa9MCkACalbz+t0FLRz/kHVwz82sznqFwqBLPCKsqPKQD5xPdkQUnOX eZStpHpHh6NP4V8Ktf4UdiuVs1FyH1HU5sk7VpSC4cjiPQNsI6p6/AD9d+Pz9nBH9UKx n2DZK1SxrAuP/8M93ITx4e/RAOpnjy6FRcdzgXXfiQgKZ/PLfaD0AcZtcfR1JOGW6V1B DYlg== X-Gm-Message-State: APjAAAX7r7n/Evf+npwkmFXSDqO/fLnJW/8c36bVKijlC+ACjSEgXRuM e2C+GxJheEb+i4vhTdS5PxnuMw== X-Received: by 2002:a2e:884a:: with SMTP id z10mr8687593ljj.21.1553589734738; Tue, 26 Mar 2019 01:42:14 -0700 (PDT) Received: from [172.16.11.26] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id v203sm3860763lfa.82.2019.03.26.01.42.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 01:42:14 -0700 (PDT) Subject: Re: [PATCH 14/17] crypto: Don't mark AES tables const and cacheline_aligned To: Andi Kleen , x86@kernel.org Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Andi Kleen , herbert@gondor.apana.org.au References: <20190321220009.29334-1-andi@firstfloor.org> <20190321220009.29334-15-andi@firstfloor.org> From: Rasmus Villemoes Message-ID: <58128cae-5871-64d8-0b4a-c1e3bb354e95@rasmusvillemoes.dk> Date: Tue, 26 Mar 2019 09:42:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190321220009.29334-15-andi@firstfloor.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Rasmus