Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp971396imu; Wed, 16 Jan 2019 10:28:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN4ws0YMXGjX7Q+HQK7Jd2dD8SAua16mVDQOvKTHbcn1VLmTlxrhtLcv+CCQCknxwkkads08 X-Received: by 2002:a63:ef04:: with SMTP id u4mr10169362pgh.197.1547663294745; Wed, 16 Jan 2019 10:28:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547663294; cv=none; d=google.com; s=arc-20160816; b=HAZxPxbjKhUVvuOdGBRagFkfqM7IoFu5UMJhkODmzHDulaU9MkKF6K0543c3tID/Gj tfz4zljyTJ+289IwSzbp7wUPZZhK2lcg9O81W3SVL9WB7WguOPsvT3qlk2I+lnykoDZ9 B2uJoN2M2Hbsyy18t78W+oihzagkEcTK0UUPMSl8g2VeZIxqcZwaQIYGYXkhCHXEqoD0 ALjnyI45hA0mPmA9Iku7YPXP1vo5hlVBInwKowXjV+y1apetWsv+kNEqgJQ3i+7kjfhJ SC02srZQv7k3vd4RX6tBHqDlrbOVMVZrBizfMQSCUGIIak/nkWYg1fcpQVcg61fsONBP s/pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7XT7jZZ1KVvwJQprqHTVEfavipuUF6Dnl96nB3egJmI=; b=F0LT5SbyIkr2S+TPUcKKzytzJW3GjkGpp9u1cOlc4i4ntwTSAc2EuBiXt31K5G7A6m tM8mmSqQQMwmE0N955T5w3nPboaGVNLMWJpw76IZibdi8/M+p+GBKrNeNInpoDRyZTR6 GOos6S1e+OaTzQsdTXs4Yag4PBD4fsOEcTWOFp29hJX+m9fmv6HA+ULFflkLR6tVXyni FEBTjlP9/mqf4tuIkAJ2BkDiRLxZyE+gGawScvSBm92dWXEf9nGJR3CFH2gvmseSqZUO deOGqnQtlDFyYthwyAFNaP61mmpk19wsnvRLp2QSEGj8dE3iYY0riVQJ3Gfeywoygn7I 0Dag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="MEiA/aO5"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p4si6448214pga.514.2019.01.16.10.27.56; Wed, 16 Jan 2019 10:28:14 -0800 (PST) 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=@linaro.org header.s=google header.b="MEiA/aO5"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388489AbfAPHv2 (ORCPT + 99 others); Wed, 16 Jan 2019 02:51:28 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:54655 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727667AbfAPHv2 (ORCPT ); Wed, 16 Jan 2019 02:51:28 -0500 Received: by mail-it1-f194.google.com with SMTP id i145so1660303ita.4 for ; Tue, 15 Jan 2019 23:51:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7XT7jZZ1KVvwJQprqHTVEfavipuUF6Dnl96nB3egJmI=; b=MEiA/aO55PvUS/MupCPg9KzGZlspdTMND+8hFUqzgDay9Zp9ugeEaNMXSp8+GBur7S 4uoN62fj6evhLktpHApTtX9P9ygy3bSSyrYRWTHMuR1cqZ1tvIRZUi5TwlTcFRDWpuhJ agsE83413pOZthNSJuTPGi7ujklEkUo/uQpFo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7XT7jZZ1KVvwJQprqHTVEfavipuUF6Dnl96nB3egJmI=; b=U97eEoHU2eC+RdRta16+b1L/OJtr9hgre2aHwNyFF5xlLbDFVtev9If3XHOPGd8G1P aNWSEZxo1oud23OGfKSHPUaIeVjlGzX2XkxFj+yTQpAyyPmegSdL+iJxV4kCv6JdeqEv 7G/JbTg5G4/PId2g7jihSRFseGUHR89Oi+K/HZg/9FFL5+sdLwz/8r3WAu0CxmmRNoFZ IEgcYGej2ou9avf0hYQArlVDj/ckhp48xdxcD2rLyTlO1E8ghA1IcpbfBOwc6oAUnwcj PscBFqqYZzLhdjCXtwVCvx7PzI18rlhdrhuKbs2XD7MteletYBTGA1Cxn8us8wEXcDFT Ix5A== X-Gm-Message-State: AJcUuke4ZfrXmtL87LIoIwplWh/9rsRbXInZB7JbI31M/RjgxT1SPqCY RCqm8nb48y1tj0z/JQTPLYTANrx44/TB+9NiSK7GaQ== X-Received: by 2002:a05:660c:4b:: with SMTP id p11mr4988806itk.71.1547625087024; Tue, 15 Jan 2019 23:51:27 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ard Biesheuvel Date: Wed, 16 Jan 2019 08:51:16 +0100 Message-ID: Subject: Re: [PATCH] arm64: kaslr: Reserve size of ARM64_MEMSTART_ALIGN in linear region To: Yueyi Li Cc: "catalin.marinas@arm.com" , "will.deacon@arm.com" , "akpm@linux-foundation.org" , "linux-arm-kernel@lists.infradead.org" , "markus@oberhumer.com" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Jan 2019 at 04:37, Yueyi Li wrote: > > OK, thanks. But seems this mail be ignored, do i need re-sent the patch? > > On 2018/12/26 21:49, Ard Biesheuvel wrote: > > On Tue, 25 Dec 2018 at 03:30, Yueyi Li wrote: > >> Hi Ard, > >> > >> > >> On 2018/12/24 17:45, Ard Biesheuvel wrote: > >>> Does the following change fix your issue as well? > >>> > >>> index 9b432d9fcada..9dcf0ff75a11 100644 > >>> --- a/arch/arm64/mm/init.c > >>> +++ b/arch/arm64/mm/init.c > >>> @@ -447,7 +447,7 @@ void __init arm64_memblock_init(void) > >>> * memory spans, randomize the linear region as well. > >>> */ > >>> if (memstart_offset_seed > 0 && range >= ARM64_MEMSTART_ALIGN) { > >>> - range = range / ARM64_MEMSTART_ALIGN + 1; > >>> + range /= ARM64_MEMSTART_ALIGN; > >>> memstart_addr -= ARM64_MEMSTART_ALIGN * > >>> ((range * memstart_offset_seed) >> 16); > >>> } > >> Yes, it can fix this also. I just think modify the first *range* > >> calculation would be easier to grasp, what do you think? > >> > > I don't think there is a difference, to be honest, but I will leave it > > up to the maintainers to decide which approach they prefer. > No it has been merged already. It is in v5.0-rc2 I think.