Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4474760imm; Mon, 25 Jun 2018 16:52:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI2nF0vPlRhzdPtVNYijnkgttoVRClTqCOhBlQH8mK21ipEepoqlhAfqG43eLijX8QX3snh X-Received: by 2002:a17:902:6945:: with SMTP id k5-v6mr14375884plt.175.1529970753248; Mon, 25 Jun 2018 16:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529970753; cv=none; d=google.com; s=arc-20160816; b=JFYWyIVTLcTc02CVwlaEnErRrkYI4cPTwy0YCZRyrFnUULQPH9hz3txMtEXzJsnXCf w/YD9QJpsVbs/K1WLohKxqycsTr+xRWc9+HBdoh5jGFYmSS57so7vseyJt/G9bGA5GMO PpZsR+ikeQksbidGAw2bTKCOZJQEBIgVurxzS4E+p8kkOQY68XBJyM3dW2m3Md35VwK/ JC0i39GLOubROk83NLSDOqEAXstQNR+EXThMhFpZWlr0yEXPXlIaVMlcrW9tBbwoVrr6 JuCWcDR9DyAtdcRTFnsYpsvTR57szj9MAcek3bZYbIyZljbaLjhlUxCFWecG4Jc8+imM Q9CQ== 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 :arc-authentication-results; bh=3A9VXHaUylH0z45s0b8QpbmmG37FwjCKyaRxsUrM0qM=; b=cvWZpnROPqD5fAdv+dsnbYIqSLtUokl0lQOXjbHI/zOEwDPWhxSqSVliWblRgJGHkk VrR8Uaj2O4kefy0qI/JYAKWy1suJub2HfZnhBwokQKIsOb8YsVZ9z0BmuMh82cPr3LlG kvX8UcEdw+jjZi3ztHOOnccRLnfjHwPiM805tzCM5Udc0h1fvugP2pIh/+jijFYxh082 rnfR8zx2QzFkyWF8qobFyiN6MSJbnkMOULjGkULuTCyqet7LjLjyIlfX1RnQh3Ur+GUA 8dEMnH+tohf3PAGRYDjHn4O/6BqlSVm1XJ0BF7BvlPzaTAgqnkV1nHmTW9bzA+sz1xlu RDQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=n0ZlcAXP; 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 k18-v6si197845pll.404.2018.06.25.16.52.19; Mon, 25 Jun 2018 16:52:33 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=n0ZlcAXP; 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 S934094AbeFYXve (ORCPT + 99 others); Mon, 25 Jun 2018 19:51:34 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:44536 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932457AbeFYXvd (ORCPT ); Mon, 25 Jun 2018 19:51:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3A9VXHaUylH0z45s0b8QpbmmG37FwjCKyaRxsUrM0qM=; b=n0ZlcAXPl8IBY/76vhH0aafgX bK5W4dr1inUIWnv/8+scgdh8hDUytz+RXMv1273XLx6x1TUB9ecODeNjxg96Z8GuMXlof1j4umnTR 8olsil7ehV40D1vtn/mdo3XF0k1vocYNTJHwEiqzCNTSAEmFFFGgomBN1jqlz7d4Xmn4btM+I360f XIdVEqxSdy9toNuTs96OZOj9qJipxQP9+i0cbf+beHLF/q4hf9ts/WQNN5cAANBzrChwNPX0BK4Th l6vdtx2kppoyTaFwiMtsq/PF3ctTxstxtEzyY0UxBPnxGnq/+EkjSGHFNTKp1UPefuB6dmh/F01px oJKpUIJYQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=dragon.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXbGe-0007EK-4t; Mon, 25 Jun 2018 23:51:32 +0000 Subject: Re: [PATCH v5 23/27] x86/modules: Adapt module loading for PIE support To: Thomas Garnier , kernel-hardening@lists.openwall.com Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Josh Poimboeuf , Philippe Ombredanne , Kate Stewart , Greg Kroah-Hartman , Francis Deslauriers , "H.J. Lu" , linux-kernel@vger.kernel.org References: <20180625224014.134829-1-thgarnie@google.com> <20180625224014.134829-24-thgarnie@google.com> From: Randy Dunlap Message-ID: Date: Mon, 25 Jun 2018 16:51:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180625224014.134829-24-thgarnie@google.com> 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 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." 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