Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3989749rdg; Wed, 18 Oct 2023 11:26:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEY3xRoaxdrGd/4epY8x0aqyheDmIxU5so61KAs5Pktt5gvrp7Wd+QpLxTk0wEJ8DdBlxRH X-Received: by 2002:a17:902:f9cb:b0:1c0:9b7c:f82a with SMTP id kz11-20020a170902f9cb00b001c09b7cf82amr130730plb.53.1697653587317; Wed, 18 Oct 2023 11:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697653587; cv=none; d=google.com; s=arc-20160816; b=nSqPUYBEsHklCsJYo39+p+3GOVGZB/LqtxCwJgGUlQvEJRu5tiA+/HcJjjTQg4u1/g AAC6kJX47+rIlR+c71uuMeWpA9/CLYJpHTssjiEh+3RBCpdpobm5vomq8LftJoElfwDc uKEtUWdYKeE2pF2JP/u3PkmPy186aZExDrgx55gkvqOu5e/3E/wgLXPzZyt+e9DWvw/2 57Vb68ND2U2dlc6NZm29a1lA5jdELc34zZYDZwQ+e0SAe3VPL4Y0JznfcimJfDV0WSK5 1lD9tELHdhvLXBpSc1j5UNxNOcR/F+Hk6zifs8DIFKmb7iAL97Qz1BCRRMKB3UHa5Eh2 AbaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=99zA8o13/ejaEM2O9/K0kn45FaKKMRK+h1KEU8ji9+A=; fh=SWmbXcvNeAI+yuakl+XDmxzZdHq1EstxkMvxNnKMtK0=; b=Dz1D4nhJwUlsb3c4AyiHGeTA/kZ5bd4dohGYUtmAhtZ2x/Q9BjHwv0alt4vJPsuuVv XaZQqG+Ya1K0FXlKgWuew8/ABdJdCJ9scwx/tdykm/ORCV8nnxM2ryE3O/Qi6mUREfAk jwBkOpwZKlaRJLskqn+tCt69fFgHFNJKbWjYrPF6WJJNRo2h+wEbJd8k7j3UZ0sypD83 3Dqykb2VsTHPL/6fn2ZkevsVubB5fwc7+kLFe3IFO2SOwlx70SvMFb1P0CfZDPhf6ekn cqco1ZYcyNWWdSOO/nNEU3UvYWTVZOCvCfTZnow2KjNLLOh2PcfcvjsJFGvgDvSUEgsQ 5e+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=V5phy8EH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id 21-20020a170902c15500b001bf1005924csi388746plj.321.2023.10.18.11.26.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 11:26:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=V5phy8EH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 39FB78032EE1; Wed, 18 Oct 2023 11:26:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231223AbjJRS0B (ORCPT + 99 others); Wed, 18 Oct 2023 14:26:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230296AbjJRS0A (ORCPT ); Wed, 18 Oct 2023 14:26:00 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 932B7B6; Wed, 18 Oct 2023 11:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=99zA8o13/ejaEM2O9/K0kn45FaKKMRK+h1KEU8ji9+A=; b=V5phy8EHYfhtPfVyyG8Exv3G/r Pw9Vvflf4+xBXK/uMwG2DGE/qdGXwm9pcyW6dJo/OOocmhxsI9aB14b3THWJ5W1/ENsEgMQCTzTY9 GArQsjXE+6rZK3EK6yo6y1moCF//BhGc72niOCUs2iMiRgRfcF9IGyKstZ+u/zQqjS+RcTwAJXFXy iuhdOEie6GRBdLNWbiXAgStwO1jb6aHU7oGZeXrBUqhvyXbAaLTrEj18N40UvgmycR39epxmr0CNh FZpRc55o2s6iaf3eR6T4bk/5j3m70Vbr3urwfCedbJ8nVpBqAg+9FJanWPIwETux/tFacgUggpkYr Dna5ig9A==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qtBEp-00FReC-07; Wed, 18 Oct 2023 18:25:47 +0000 Date: Wed, 18 Oct 2023 11:25:46 -0700 From: Luis Chamberlain To: Christoph Hellwig Cc: David Woodhouse , Greg Kroah-Hartman , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Ulf Hansson , Manuel Lauss , Yangbo Lu , Joshua Kinard , Daniel Vetter , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, open list , linux-mmc@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-modules@vger.kernel.org Subject: Re: [PATCH 5/5] modules: only allow symbol_get of EXPORT_SYMBOL_GPL modules Message-ID: References: <20230801173544.1929519-1-hch@lst.de> <20230801173544.1929519-6-hch@lst.de> <20231018053146.GA16765@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231018053146.GA16765@lst.de> Sender: Luis Chamberlain X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 18 Oct 2023 11:26:24 -0700 (PDT) On Wed, Oct 18, 2023 at 07:31:46AM +0200, Christoph Hellwig wrote: > On Wed, Oct 18, 2023 at 01:30:18AM +0100, David Woodhouse wrote: > > > > But if we're going to tolerate the core kernel still exporting some > > stuff with EXPORT_SYMBOL, why isn't OK for a GPL-licensed module do to > > the same? Even an *in-tree* GPL-licensed module now can't export > > functionality with EXPORT_SYMBOL and have it used with symbol_get(). > > Anything using symbol_get is by intent very deeply internal for tightly > coupled modules working together, and thus not a non-GPL export. > > In fact the current series is just a stepping stone. Once some mess > in the kvm/vfio integration is fixed up we'll require a new explicit > EXPORT_SYMBOL variant as symbol_get wasn't ever intended to be used > on totally random symbols not exported for use by symbol_get. The later patches in the series also show we could resolves most uses through Kconfig and at build time, it really begs the question if we even need it for any real valid uses. Luis