Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4264706imu; Mon, 28 Jan 2019 21:27:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN7C2YlxH0Y9W+xWKMwF41wTuPXywmCDIonbkh6O699Q9n4NWcimXw0O8WQz58K0ZU1+SLdl X-Received: by 2002:a63:1d1d:: with SMTP id d29mr22589116pgd.49.1548739662246; Mon, 28 Jan 2019 21:27:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548739662; cv=none; d=google.com; s=arc-20160816; b=z3kE+OaSfOVsxxofk6RHi90Aj1XBu6NFAxuc5PCPJ5qJgbn/1AY3hN00gdlTN2NT3y h+YWT+MT5hnKBix8URqyCJszS/682j2qEHgyGvtFKOWlIkvhf9Y/o+RUo2XtkjfNml+j OURa6kwrWrnMZjlWRwuQm4GyBPxt1T1164c3K9TwuDeG1wi8cp34I6oD1X1tx2TkyQ3L XzJWjaEBXYfjkCpYvLJZnKneQp6+JxEi1TvZsvw1oa492shl8aqoWOue6YjqDp9PW87A lVzK+hQVm7it24QjNPnkDdr4aerN+Kr999ofR8qDX+05+08iahK6rGE3iafo+lJAxgn+ g2vQ== 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=AUicDLY9/EJOGMuyt9THJsgdyJIgytXtTHgEKlzgM8E=; b=xrHA4TFHpNU7K3GffBRwHMaGbBZGUcZggunvKijLlcpnoN2OsZF2vl03jD+5/CWjJZ NJYKGm+2HUfll8huDjkSoWIJ8FjQ6m4paPMCI30Yy/m+J8sSEhPaijKorNOEB/xsh2hs BpW16VyYIOE1P6VuYemC/wa7jypou9pmn0cY2wFIKqNUWMfovexN29yY+9PlMVPiDwxc xY7DhSQOStNvS4m7Bul/pBlEvohWHwSdMtJvNXB24R+iHJTe+wKP492rKU7WWaGNk5kL 3iOuORr4GJLZovsT50C2KsQLMMLf0mivcTCK04n/s8nyqM7ZtorsEvu3FfVQtbLiD6bL K0+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="uqYbw3/S"; 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 u131si3641773pgb.594.2019.01.28.21.27.26; Mon, 28 Jan 2019 21:27:42 -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=@kernel.org header.s=default header.b="uqYbw3/S"; 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 S1726276AbfA2F1H (ORCPT + 99 others); Tue, 29 Jan 2019 00:27:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:52246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbfA2F1G (ORCPT ); Tue, 29 Jan 2019 00:27:06 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5C1912175B; Tue, 29 Jan 2019 05:27:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548739625; bh=Ppe7apii6B7B35dto+rwNyb16avBzR9dDR9rTv+0shU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uqYbw3/ScwS7dR21gXugL713Yv1c391LqxPhVyQHad6OtacyOWnKu3xuRYJuOfGNq ZJRFZr0gRHKNE68UBpaNJGioHdZRm4+hT2vb4knCFjrCoKbjKSaafjrMuWbyXVGlkW ISWzEG4oUIOZw3QLLXXdDzeVKFH+rOdocs6kwOqM= Date: Tue, 29 Jan 2019 06:27:03 +0100 From: Greg KH To: Thomas Gleixner Cc: LKML , Linus Torvalds , Jonathan Corbet , Jessica Yu , Alan Cox , Rusty Russell , Christoph Hellwig , Kate Stewart , Philippe Ombredanne Subject: Re: [PATCH][RFC] module: Cure the MODULE_LICENSE "GPL" vs. "GPL v2" bogosity Message-ID: <20190129052703.GA9753@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 28, 2019 at 11:38:42PM +0100, Thomas Gleixner wrote: > The original MODULE_LICENSE string for kernel modules licensed under the > GPL v2 (only / or later) was simply "GPL", which was - and still is - > completely sufficient for the purpose of module loading and checking > whether the module is free software or proprietary. > > In January 2003 this was changed with commit 3344ea3ad4b7 ("[PATCH] > MODULE_LICENSE and EXPORT_SYMBOL_GPL support"). This commit can be found in > the history git repository which holds the 1:1 import of Linus' bitkeeper > repository: > > https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/commit/?id=3344ea3ad4b7c302c846a680dbaeedf96ed45c02 > > The main intention of the patch was to refuse linking proprietary modules > against symbols exported with EXPORT_SYMBOL_GPL() at module load time. > > As a completely undocumented side effect it also introduced the distinction > between "GPL" and "GPL v2" MODULE_LICENSE() strings: > > * "GPL" [GNU Public License v2 or later] > * "GPL v2" [GNU Public License v2] > * "GPL and additional rights" [GNU Public License v2 rights and more] > * "Dual BSD/GPL" [GNU Public License v2 > * or BSD license choice] > * "Dual MPL/GPL" [GNU Public License v2 > * or Mozilla license choice] > > This distinction was and still is wrong in several aspects: > > 1) It broke all modules which were using the "GPL" string in the > MODULE_LICENSE() already and were licensed under GPL v2 only. > > A quick license scan over the tree at that time shows that at least 480 > out of 1484 modules have been affected by this change back then. The > number is probably way higher as this was just a quick check for > clearly identifiable license information. > > There was exactly ONE instance of a "GPL v2" module license string in > the kernel back then - drivers/net/tulip/xircom_tulip_cb.c which > otherwise had no license information at all. There is no indication > that the change above is any way related to this driver. The change > happend with the 2.4.11 release which was on Oct. 9 2001 - so quite > some time before the above commit. Unfortunately there is no trace on > the intertubes to any discussion of this. > > 2) The dual licensed strings became ill defined as well because following > the "GPL" vs. "GPL v2" distinction all dual licensed (or additional > rights) MODULE_LICENSE strings would either require those dual licensed > modules to be licensed under GPL v2 or later or just be unspecified for > the dual licensing case. Neither choice is coherent with the GPL > distinction. > > Due to the lack of a proper changelog and no real discussion on the patch > submission other than a few implementation details, it's completely unclear > why this distinction was introduced at all. Other than the comment in the > module header file exists no documentation for this at all. > > From a license compliance and license scanning POV this distinction is a > total nightmare. Many thanks for digging through all of this, it should help out a lot: Reviewed-by: Greg Kroah-Hartman