Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4150875ybl; Mon, 13 Jan 2020 08:41:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwze+e4BUTLAk+e8yS/7xgcC8sGvNkOvrJsMZfZie5Y4BcSPonZnt/FXHiitMigSmyJ6wAB X-Received: by 2002:a9d:2c68:: with SMTP id f95mr14004374otb.33.1578933685343; Mon, 13 Jan 2020 08:41:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578933685; cv=none; d=google.com; s=arc-20160816; b=nLTsPNDWMQLpj6CL0VQpE5Joi83qkqtbnQzfsxFjm/2vJiR7ngfbeJ/oF182RJwjXR 7gFl0QfT2GVxKFxcZh/Yhc5hEbn1r3Gm4dczopxU97JcWBA5Zi8NwWQyJHU3YdtBR6rD 3Rw3e/THtE3R5vtOzzMhT5/OFYBbgAvzHFYvWbhkP1wt2N90Vg1KK7B5dlL4rrRbItiP 2PRMJQmFjjISbXGFzYV9pobpmicihQ1LYlJSbC661yGLQV00scpyM/qZBnGInhpSKObu L8rUyio4DN6KRoz5owQYopChzkYn9xGlS99qNF5kEPAe++tXc7OiO2HK6q+rNaA3tsmQ 3Q4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9e88VmXVZOWwKi7Lf0kiLhtpdX2JvIFuLxWAoudDvAA=; b=KCw2poL6rfx7SIaplbBGnY6PWVH6HON+mIWeJyydRGS9O5NF8euwa8nTbj8CNfCPWT Kd68UvVZLmxfktE8wKKq1GzIJyC8w8nvbrZ6bQZpEsApdojbhI0JS5sE95C7VdpOsD2u y8oN8X0nsvFCkgJ7bAfyik9SesL5qYRgOl+6mGuBUrbl0C4jhaQHsGobKA6CedtS+WKb zK8RtT8/MHIucylB4fgu7ZzuEq/2XlO/QXacKcz4bKnIk3M3QYzNN+JJ3VlWcTYW9l5Y vFwi2UoPrF31SYKXs6lmCLQGbaiTVZLqhSOCDFOFzpI/hkx4Ws5j9jKCy48LtLNgZS8G F9Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=RA1f5Dyi; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w131si6416823oif.240.2020.01.13.08.41.11; Mon, 13 Jan 2020 08:41:25 -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=@alien8.de header.s=dkim header.b=RA1f5Dyi; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728913AbgAMQjF (ORCPT + 99 others); Mon, 13 Jan 2020 11:39:05 -0500 Received: from mail.skyhub.de ([5.9.137.197]:38378 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbgAMQjE (ORCPT ); Mon, 13 Jan 2020 11:39:04 -0500 Received: from zn.tnic (p200300EC2F05D30061EC8816C59C4425.dip0.t-ipconnect.de [IPv6:2003:ec:2f05:d300:61ec:8816:c59c:4425]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id D46F01EC0CAA; Mon, 13 Jan 2020 17:39:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1578933543; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=9e88VmXVZOWwKi7Lf0kiLhtpdX2JvIFuLxWAoudDvAA=; b=RA1f5DyiqVuzD5fniya6vj7rBWgoi0MQ2vs5IWw2iTyjsLsB0UAaBOB2lYkVsAKjz4X9zW sec6pJTKJbdg4w/2CUMY7UGLc1VKJkDmzyGaWtnAF8pZhAbSFrxrLkzCXsqlOK529IZDEy 5l41uoE7NjOig9UoP0guj/XHFvczJ0I= Date: Mon, 13 Jan 2020 17:38:55 +0100 From: Borislav Petkov To: Arvind Sankar Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, Kees Cook , Thomas Lendacky , Michael Matz Subject: Re: [PATCH] x86/tools/relocs: Add _etext and __end_of_kernel_reserve to S_REL Message-ID: <20200113163855.GK13310@zn.tnic> References: <20200110202349.1881840-1-nivedita@alum.mit.edu> <20200110203828.GK19453@zn.tnic> <20200110205028.GA2012059@rani.riverdale.lan> <20200111130243.GA23583@zn.tnic> <20200111172047.GA2688392@rani.riverdale.lan> <20200113134306.GF13310@zn.tnic> <20200113161310.GA191743@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200113161310.GA191743@rani.riverdale.lan> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 13, 2020 at 11:13:10AM -0500, Arvind Sankar wrote: > I will note that the purpose of S_REL in relocs.c was originally to > handle exactly this case of symbols defined outside output sections: And we should try not to do hacks, if it can be fixed properly, as binutils expects symbols to be usually relative to a section. > How to reproduce is just "build with old binutils". I don't see it's > reasonable to include a tutorial on how to build the kernel with a > toolchain that's not installed in the default PATH, as part of the commit > message. The point is that it should be clear that it should state whether it is something you trigger with some stock distro which has been shipping this way or it is something you've customly created. Huge difference. So pls make sure that is clear from the commit message. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette