Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4476898imm; Mon, 25 Jun 2018 16:55:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK4Hhins4LJWTaqYkTzEOvjkync2Fl5hDuhjVnD1dvYHPu/9i2Q/yvrAlpICWPtNHYdA6z4 X-Received: by 2002:a62:de03:: with SMTP id h3-v6mr15010875pfg.46.1529970943316; Mon, 25 Jun 2018 16:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529970943; cv=none; d=google.com; s=arc-20160816; b=QGzjqqTcED/WDj/SDDQG+G8Eifhcz73GYIb8OVR+kf1fz+K+Gesdw2tZVcSGZuYktk 5vgu2U8VAPzl3jpJTtIBRiLaKZJ2WYVj6VAbfBddAEyL0QUPRzH4neCggYcMcbTJuA1e zuj7p4NVGDAHCCvjjzOgM65H6a0OSEdI5UmYxScdLTG1xQLSm62SQUr4hEAsioC7i3n0 8iQBkPNFRlc7fL9DTDdeu2vxmh0g8S/oZXIKmauCN6a4a5yGdBpzZU3pPQVBkT1lFwPr F+MvqhFa9R4rMdj7/leAKrVQrLD1TiK+jRxQkSfvvB1vr4XJcqJQhB9jue4CD8eioQLo WTOQ== 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 :arc-authentication-results; bh=obyk5eqxSjSi5z7kCXf9Fly64BV+iW5EIXpAt+qcgQo=; b=0/KhBT6zyjgiAabu9z5l1x+ZFqojDIXQkc5VCI6NdgNXv8HV2enKU2v/5KLYz7df9s ippxy8dvTG43NvMrsqf0IrDde5VFRaFgq9WsVBepf2aE5gKzRp7V/cRmDzmEibJYZPMN w5/GLMkKnYIFbFgxHi7aUpsJAE82RjsAYqSLMKFFohW1V450E+aWCz9yv8WVcO6Nwpu9 3gBk7/Oi0jN3p6dRBPyW+waShw+S3oR3Ce9jiG+pkafUSCleRey+H9iM3CHdH9YjTd5k QJYZwGv7A7WS75LV2Metrrel+O/yCHJXBVFU9AucJT4yzfj7LGclN+pNG+yNGQNX9ctx Tg9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=RzHoZ5oL; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v10-v6si169597pgo.643.2018.06.25.16.55.29; Mon, 25 Jun 2018 16:55:43 -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=@google.com header.s=20161025 header.b=RzHoZ5oL; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934103AbeFYXxZ (ORCPT + 99 others); Mon, 25 Jun 2018 19:53:25 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:34310 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932073AbeFYXxY (ORCPT ); Mon, 25 Jun 2018 19:53:24 -0400 Received: by mail-io0-f194.google.com with SMTP id e15-v6so14234907iog.1 for ; Mon, 25 Jun 2018 16:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=obyk5eqxSjSi5z7kCXf9Fly64BV+iW5EIXpAt+qcgQo=; b=RzHoZ5oL7Oo1pznqLFVH4UJWYX37u8FAp8Vmh9HP7B0AsXVgsOmb9swluA/oKBrnuN uFHUQe1rbiNG05b0MvghscD+gXLcB/bsi7s6UQJk+lRGKgOWnaecpdwAZfm3K8Tjsen0 RdgdplQj1rD/UCLZTjJAo9PwAb/mEsj7Q/j3PKgdD8YwL89qm2BtlxynMHow6qTkUUcI z/mlk8GKvgxez2Hu4Zi/dh/HYa3UR0+wyyeCOdHjJ1iU86XmfxA9QefCwrpexs1WXu6a 45+LR3hT1mhGYqnFICmZ0B1PHcSJMo0BDK11OIxiQvWT9ixWRsz5dtTIkG1EXC9RcHS6 27pg== 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=obyk5eqxSjSi5z7kCXf9Fly64BV+iW5EIXpAt+qcgQo=; b=LLg+av7moaR8smFXXsxNyNmfbXej5v1M+kunS1Ansi2o7RAOlLJOYtF/qxmlzOhXFL ZpAdxC/zogR4FG43qf23b68FTsHQ5PSyoh3DqpgCcwTQ1AGCIX0eaov9mImb9Gp+IQBt CiSGoH3asPxj/hEnLPU3Wg5AvYK3GmEXKlv+mAa0SWLCiRJD+7EybR7wr7XZ890y0Bvq vfACdjefC2asG8k3CPerckwbWpNLWof8aoIs6J2nrTi4J+8Cj0GS0oBmiaj7YNx4+TBv NPhrWjFshsyBdNPBkzTJfTgC3srRGEWF9JH7cO7C6BFUkDB6LyQTJ5g7lbSARp1WUe1l pFIw== X-Gm-Message-State: APt69E3Ilr3m6I+s6J3Z8qnLLwemd194qduxBJv95DTm5BJZvHhDLV1D UcOAifKkYmV9nc1uAKjaqko9QFxREMUjNuknX7TYgQ== X-Received: by 2002:a6b:da0e:: with SMTP id x14-v6mr11892314iob.19.1529970803067; Mon, 25 Jun 2018 16:53:23 -0700 (PDT) MIME-Version: 1.0 References: <20180625224014.134829-1-thgarnie@google.com> <20180625224014.134829-24-thgarnie@google.com> In-Reply-To: From: Thomas Garnier Date: Mon, 25 Jun 2018 16:53:11 -0700 Message-ID: Subject: Re: [PATCH v5 23/27] x86/modules: Adapt module loading for PIE support To: Randy Dunlap Cc: Kernel Hardening , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , "the arch/x86 maintainers" , Josh Poimboeuf , Philippe Ombredanne , Kate Stewart , Greg KH , Francis Deslauriers , "H . J . Lu" , LKML 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 Mon, Jun 25, 2018 at 4:51 PM Randy Dunlap wrote: > > On 06/25/18 15:39, Thomas Garnier wrote: > > Adapt module loading to support PIE relocations. Generate dynamic GOT if > > a symbol requires it but no entry exists in the kernel GOT. > > Hi, > > This patch description (and a few others with the same sentence) is a little > confusing to me: > > > Position Independent Executable (PIE) support will allow to extend the > > KASLR randomization range 0xffffffff80000000. > > Is there a word missing after "range"? May "below"? > As is, it seems to imply "range by 0xffffffff80000000." Yes, below. I will fix this on all patch descriptions on next iteration. Thanks! > > > thanks. > > > > > Signed-off-by: Thomas Garnier > > --- > > arch/x86/Makefile | 4 + > > arch/x86/include/asm/module.h | 11 ++ > > arch/x86/include/asm/sections.h | 4 + > > arch/x86/kernel/module.c | 181 +++++++++++++++++++++++++++++++- > > arch/x86/kernel/module.lds | 3 + > > 5 files changed, 198 insertions(+), 5 deletions(-) > > create mode 100644 arch/x86/kernel/module.lds > > > -- > ~Randy -- Thomas