Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2305955pxy; Tue, 3 Aug 2021 03:08:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUb64Fnhm0pwYwD6hzGkzVH8OU1SexIhBMqCK/jk0bO/R1ZCcopREVYS4nT0FjbJZAF1af X-Received: by 2002:a05:6402:796:: with SMTP id d22mr24871577edy.57.1627985334158; Tue, 03 Aug 2021 03:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627985334; cv=none; d=google.com; s=arc-20160816; b=VF6l9S42aD9ObfYfrDkdrJL8Xenb3CQr+WRiYrTiJY0q7dB8b1rcvY4k0uWXFhsYgJ 2Gl6y7ejsMs+n889TqYycWkMw0Mz4d4z/sd/iXjd58tSylvPqpSto9np7bYt/5M5Aysi cy1I9wet1bO1ug5qCGlCcrYvHM905ZyJngqdeDFo0dbbCx38hm0pe4p/WmUgjxzz4+M0 tUzGQDqafL6TlXFoIZD4j5RcM14SUcS5xMq/nF9nq0QaOOooRDvt2fBMt7ecWujFR4wy yy5lP83sTPRh+LXN+uhQjAKDA1/xppbUQBD1N2BoPuAWL4kjU3IPIPwf2E3JdQXWuFaR fB/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SMfudwgnC0utI4f3M0QrVlLbD08YqXxmtPwwa7l2A4U=; b=KXYupBB+PiNpZ7P/yw2Ks6oOoKBST11jBAnaE61rjsUn/orTPH18XsH1uMreNjQ+42 X4N1pgRawNM705nJGpOGJzgG90rwzEBDP1Ar/b1bzVvfwpddPbCMmlaVS1krT3jcuUHr IBeySoWARbe5dorgizyld/O5TR0A4yTeD56e4nLqUO+j1vxGglnlzd9ynzlTInT2SS5T cT0OPlporQO+0ytPWBTuRCG6koWNcd8TANdxD0gAK4VGOtn9SqKRgzjzAWO1yJppkzp0 Xd0gFjD2ncep1ns3uZsproc5vXo2u3yt6qiDzFFpsRjPg+SSkWlJz4NxMhwtWXoPD2jz BLPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RIJBSN8U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dh13si11783257edb.447.2021.08.03.03.08.30; Tue, 03 Aug 2021 03:08:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RIJBSN8U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235329AbhHCKHG (ORCPT + 99 others); Tue, 3 Aug 2021 06:07:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:48792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235443AbhHCKGA (ORCPT ); Tue, 3 Aug 2021 06:06:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7687B60F58; Tue, 3 Aug 2021 10:05:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627985131; bh=93hGHvv0jTlTB/pEmtoCJ8yywlMMD3nceQAE0r3RVYw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RIJBSN8U6aaoMxxeZTyKttqq1mHfYfV4Abqz+vr8Iv1lafIA1LVwBbszbuxrMJ8hl EMrfXzLjxRCF/G4EYrVMaHVz35eDp5jT7XjcO/5Zc5teOZEZNJGwuBd0jBlGlhiFNC CX5+biaUbp0n/FFC+hBZr3RDFPMBa3bSgXzZg56jb4+mjNXJzWS+G9/jjDEoQ3htYv sCYHkUuObvSY5bxnq8fVkVUlN5vq1o0rrCWaLvEzeK9A/xNmXbt6r+eMPQt4Zgw1Va PvxwSWLH7y04yLNIo+fxvBQwhC/HJfMXs1Fzso/4uSDYZoGgK88M6gdSXS+1baQjFO EfFieD6fXDqhQ== From: Will Deacon To: linux-arm-kernel@lists.infradead.org, Barry Song , catalin.marinas@arm.com Cc: kernel-team@android.com, Will Deacon , linux@roeck-us.net, tyhicks@linux.microsoft.com, Qi Liu , linuxarm@huawei.com, maz@kernel.org, Ard Biesheuvel , tabba@google.com, Masami Hiramatsu , lecopzer.chen@mediatek.com, mark.rutland@arm.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm64: fix the doc of RANDOMIZE_MODULE_REGION_FULL Date: Tue, 3 Aug 2021 11:05:20 +0100 Message-Id: <162798340286.1497797.18069753288714137637.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210730125131.13724-1-song.bao.hua@hisilicon.com> References: <20210730125131.13724-1-song.bao.hua@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 31 Jul 2021 00:51:31 +1200, Barry Song wrote: > Obviously kaslr is setting the module region to 2GB rather than 4GB since > commit b2eed9b588112 ("arm64/kernel: kaslr: reduce module randomization > range to 2 GB"). So fix the size of region in Kconfig. > On the other hand, even though RANDOMIZE_MODULE_REGION_FULL is not set, > module_alloc() can fall back to a 2GB window if ARM64_MODULE_PLTS is set. > In this case, veneers are still needed. !RANDOMIZE_MODULE_REGION_FULL > doesn't necessarily mean veneers are not needed. > So fix the doc to be more precise to avoid any confusion to the readers > of the code. Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: fix the doc of RANDOMIZE_MODULE_REGION_FULL https://git.kernel.org/arm64/c/f9c4ff2ab9fe Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev