Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp329998pxa; Fri, 31 Jul 2020 13:14:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwODXvQEtQYBr6GArq0O1b3pXJLBz+JC9rF/mc77gUBYpJ3DRiSLttho1mV0FCDSxq4ubUk X-Received: by 2002:a17:906:fc10:: with SMTP id ov16mr5908640ejb.171.1596226480671; Fri, 31 Jul 2020 13:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596226480; cv=none; d=google.com; s=arc-20160816; b=A1bnwiYV6W9pi2cb5sL1N1+ib5ZZyWDG5rQDwX7qTuQK0aQ1+kej1anbL5NFi93oTz CgsDOmaJPD1QjgMVCHYggf9XLSfQUyF+sxmWqVw71hpMCPQT5ws2Mk5ddeJm6pFnoBmD HeRSrsKwB2uCokyN76PivJ00wx1VeN6Uo8CaB9O8Fu9PsL+AcLASlJyRjSouupFjULB0 wNfdyK4tSDqXdraGhMt1MKhbEoGkju4YBC8xxijRv4w8ySIsh0EjPM20x361Ju2t07mg Q7NyfdzfWAjrbdtdB+S+TTPtfy2jcYi5hIL/gxiaddO88RcZ08mO8oqSdmqNKYhZzj1s 1VJg== 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:message-id:subject:cc:to:from:date; bh=gv8z6Ynde1FbsnT4kOqQ42WJvEczFz5k5BtRCXmrGw0=; b=xNj0qjk/FnJeWsAefOqSVlrd9dhV6Ai6rypGQvC+0SXGF1DvKZdBqJLTtpzLvIVrmM PIHuLJbIUIUOv8HGgC5kaesziO2m1p4KC3fFb/L9r/xBceNT3atoeH6dx9wkg+zbVnZd +4UM68ABpYoQ1B/pgIOjnmJ6V20MMAUMluCjuokDnNZ4iILtpazJZBtkHB/JPs0F5Dfa h7MJC6llsdmOqlYMovk/T7teOtz4r9ajayPBiYGz3JV63w6uGtbyKYoFC0RCAE6AZWxU MeFgL9VyeLqD8zxoN0SZtPf8aixNO1rn1ZFf118gUufJyBre7yfqYaepqr8GJibaQzfA tK5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l2si6108625edf.34.2020.07.31.13.14.18; Fri, 31 Jul 2020 13:14:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726810AbgGaULx (ORCPT + 99 others); Fri, 31 Jul 2020 16:11:53 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:33977 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbgGaULx (ORCPT ); Fri, 31 Jul 2020 16:11:53 -0400 Received: from localhost (50-39-163-217.bvtn.or.frontiernet.net [50.39.163.217]) (Authenticated sender: josh@joshtriplett.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 671BF10000D; Fri, 31 Jul 2020 20:11:48 +0000 (UTC) Date: Fri, 31 Jul 2020 13:11:46 -0700 From: josh@joshtriplett.org To: Christoph Hellwig Cc: Greg Kroah-Hartman , Jessica Yu , linux-kernel@vger.kernel.org Subject: Re: inherit TAINT_PROPRIETARY_MODULE v2 Message-ID: <20200731201146.GA34345@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200730061027.29472-1-hch@lst.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christoph Hellwig wrote: > we've had a bug in our resolution of _GPL modules since day one, that > is a module can claim to be GPL licensed and use _GPL exports, while > it also depends on symbols from non-GPL modules. This is used as a > circumvention of the _GPL exports by using a small shim module using > the _GPL exports and the other functionality. This looks great. You might also consider doing the reverse: if a module imports any EXPORT_SYMBOL_GPL symbols, any symbols that module in turn exports shouldn't be importable by any module that doesn't explicitly claim to be GPL-compatible. Effectively, if a module imports any EXPORT_SYMBOL_GPL symbols, all of its exported symbols would then be treated as EXPORT_SYMBOL_GPL. This would catch the case of attempting to "wrap" EXPORT_SYMBOL_GPL symbols in the other direction, by re-exporting the same or similar functions to another module. (This would help catch mistakes, not just intentional malice.) - Josh Triplett