Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2190871imb; Sun, 3 Mar 2019 21:42:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxf36imZ+FYRXjIy6Zczx+ss5CnZBhZPNxcMuCnJ6IjLW3325f9W1oem2j3H2a7Y86CHedI X-Received: by 2002:a63:1260:: with SMTP id 32mr17131774pgs.278.1551678124225; Sun, 03 Mar 2019 21:42:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551678124; cv=none; d=google.com; s=arc-20160816; b=iPclitoy0Go1Y+8vMnvk1OIM68oT9W1r0Fj6eIpOFdymT1xw1zxfvd9RFv+JhCL1YZ h4d1Vn4vci78CUSjF1EcrVLlX3QG28ksqFJGPVhcCL9iFsXwXMdiVeIgbsYAD0N11oG9 +RwCcf53PG+8SYWm7b8tm1vbAVKjN8qaxmZmnqVdt1w8Znj7jBcmCUozAzHwJcdkXp8t ZpzPkgSiK2ib1avuVuh99oxjpzAqjkuYkZH476L3/WEFQhHoSGpRlyMq7NtkTLUo2Cr4 92nWTM7y+99YucATLfoV4TjT1nRQuIzDejwfkAhdbIRh6b8n+0+ToL71Xp1K23ECrmZs M66w== 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:dkim-filter; bh=fd7Of/RFciDnI4bwj/V+dn8GdN2GPKprLJQyL4wxXBo=; b=V1UhQFPXgoK05Gjs8zSVHYYhpbcfuI5v+96ydA40wzJTNTa3sYUVddvdqZ/76hTsWB 1i6IeNebSOKsLfr2fhQnAPrvZEJnhI3c23wBbeXEh9cGT2m2mveqY6tFmW8Ecie/EBWg EXrQ5c4CLseRymA3dvyHBzajQsm7okj/Syc4F5DS11ow69F1sVyQciMAgMvzkaapw5Yk Kx/HVNMvR3CApSfh7SEW4zcJT1O8jKVmsetrDqesHoq7hZcO47PlY2LDBlAcoKc0mCQo ICggmwELlmQBbMfhKG/jp08PKJGQbujM63Mx9YNL8tJhBt8p2NsNNr+DLlEfCsjqvdIg qQNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=rzeLVpeH; 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 c6si4369466pfg.192.2019.03.03.21.41.48; Sun, 03 Mar 2019 21:42:04 -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=@nifty.com header.s=dec2015msa header.b=rzeLVpeH; 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 S1726063AbfCDFl2 (ORCPT + 99 others); Mon, 4 Mar 2019 00:41:28 -0500 Received: from conssluserg-02.nifty.com ([210.131.2.81]:47900 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbfCDFl2 (ORCPT ); Mon, 4 Mar 2019 00:41:28 -0500 Received: from mail-ua1-f41.google.com (mail-ua1-f41.google.com [209.85.222.41]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x245fLAA025290; Mon, 4 Mar 2019 14:41:21 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x245fLAA025290 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1551678082; bh=fd7Of/RFciDnI4bwj/V+dn8GdN2GPKprLJQyL4wxXBo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=rzeLVpeHhvhjaYqrZPwzSjiGj6fQr4nHdGGLHLFTTlTm+KNTfqrW7SeR3dxmJn+7H 9v9gxfe54Sc9/lZtmsFsyLvhfcBrFeaFicXGLuMgsIERwGXnDrnCP+yTF9VlaQ+pEk D4/YgkC0oghPcx9AtlWf3BkfmHhNntzwjlhYuAC8CYsYfdEzixo+wUarLU6IdoMrqS OYF578TAkJPHdHFDV9lHa5nRKXp4oKcu7oVjovg40/om8cZYP1Wkto9+BM/jfq2uE8 TIIcCU47G7R1TxKr3xci3lacfra1k+pxwLKgqw5d4/N32BcgpnVeQnhyluVEFC22T+ XUE+LBmyDtoTw== X-Nifty-SrcIP: [209.85.222.41] Received: by mail-ua1-f41.google.com with SMTP id f88so3341693uaf.2; Sun, 03 Mar 2019 21:41:21 -0800 (PST) X-Gm-Message-State: APjAAAVC2XSIcRt+dvC2VOiCt6dE5PoAdLvZ2Q7XFFXPOftYQYP/2gDp heKxP4qL2KhCBZ+FOB3/PzYPv2txAYwcLJl3GAI= X-Received: by 2002:a05:6102:18f:: with SMTP id r15mr8771531vsq.215.1551678080712; Sun, 03 Mar 2019 21:41:20 -0800 (PST) MIME-Version: 1.0 References: <20190227193748.132301-1-joel@joelfernandes.org> <20190228144306.GA138215@google.com> <20190301171954.GA217990@google.com> <20190302023940.GA55262@google.com> In-Reply-To: <20190302023940.GA55262@google.com> From: Masahiro Yamada Date: Mon, 4 Mar 2019 14:40:44 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/2] Provide in-kernel headers for making it easy to extend the kernel To: Joel Fernandes Cc: Linux Kernel Mailing List , Andrew Morton , Alexei Starovoitov , atish patra , Daniel Colascione , Dan Williams , Greg Kroah-Hartman , Guenter Roeck , Jonathan Corbet , Karim Yaghmour , Kees Cook , kernel-team@android.com, "open list:DOCUMENTATION" , "open list:KERNEL SELFTEST FRAMEWORK" , linux-trace-devel@vger.kernel.org, Manoj Rao , Masami Hiramatsu , Paul McKenney , "Peter Zijlstra (Intel)" , qais.yousef@arm.com, Randy Dunlap , Steven Rostedt , Shuah Khan , Thomas Gleixner , Yonghong Song 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 > > > > Let me ask one more question. > > > > > > > > I guess this patch is motivated by > > > > how difficult to convey kernel headers > > > > from vendors to users. > > > > > > > > In that situation, how will the user find > > > > the right compiler to use for building external modules? > > > > > > > > > > > > > > > > > > > > Greg KH said: > > > > > > > > We don't ever support the system of loading a module built with anything > > > > other than the _exact_ same compiler than the kernel was. > > > > > > > > > > > > For the full context, see this: > > > > https://lore.kernel.org/patchwork/patch/836247/#1031547 > > > > > > IMO this issue is not related to this patch but is just an issue with > > > building external modules in general. > > > > > > I do not think it is an issue of the build system, at least. > > > > As far as I understood Greg's comment, it is troublesome > > without the assumption that vmlinux and modules are built > > by the same compiler. > > It is related to this patch since this patch assumes use-cases > > where external modules are built in a completely different environment, > > where a different compiler is probably installed. > > Yes, but what I'm trying to say is the same issue exists with all other > solutions today that do this. Such as debian you have linux-headers package. Distributions provide the compiler in the standard path (/usr/bin/gcc), and users are supposed to use it for building external modules. That's the difference. > A user could totally use the build artifacts obtained from somewhere to build > a kernel module with a completely different compiler. That issue has just to > do with the reality, and isn't an issue caused by any one solution such as > this one. I agree care must be taken whenever user is building external > kernel modules independent of kernel sources. Did I miss something else? > > thanks a lot, > > - Joel > -- Best Regards Masahiro Yamada