Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3570078yba; Tue, 7 May 2019 03:32:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuwJmw4v1HV43/ux1PkQH9J4JZVdnCeKkkLu7osk6NijIfFPX/2Zt5RhzABaBCM8Wc3Jcl X-Received: by 2002:aa7:92d1:: with SMTP id k17mr40609224pfa.91.1557225165706; Tue, 07 May 2019 03:32:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557225165; cv=none; d=google.com; s=arc-20160816; b=Gunwu03RaEId3G3q3qj+e52sOvBAW601KhmxVN3BKF/9PjNnSieBzncDWYHg9FVNN0 XWXEi9CD1cnPHPuI06Cmsfu5pvJcyaB9OVRf0r1GcykFqIe33jOllfO7ZRaUi5S/tKs0 //yV8e8t8A4vFowd4ukQxLnLzWt2A2CqBLdJSjgffqQgO1h21m/il7w6VhAKM5UhJwsC LYTXg/pqo5HVDBo6SWT6UsjPqH2tF4vkySjz57ZdEZu21tXBC0dgKSTbRUmucedjG96k Em0ZMIIIvI9zFiwnicxe5ZHyMkh02xDYzjnBUZ9RsGOhl4E8hTFeJKPkW4R2D4Y26Bh4 Oifw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=M4sDLaSdZR1xAjWaSqHyaC2RbgwakF1SzunIvBk8Q6g=; b=JfHJHGo+9vZPPRlgKV5O8k55ZZzH4Z7+9Iux2qJkBP+lcNqN5zhubTyAXYF8w+lZ3X KWs7ddDWburbfRqpK3JGk8fwYBegffmu1IH0K8Q8oiUkTZWUdYPtZyKIA4Dn6+EQMn+L 14AMwtIOAM1Yt6YrkXHLNQuRMybRoY+TbNA2/Y0AyGousCUuvJt4Ntak5ArRYDtVS0AE 4yoqyeCiJ0gwRGBwkNqmM8nAbgSo9k11Iz3nCEkmvkJX4tIApJHEtn0z4MbQ6RpGpETK CpjsVYIWDc2YdrxE/LHn5Fjw6FevKyiD8X49mlB6Q+YWgmzRoFur9e5B95UcvmUQROI5 l2RQ== ARC-Authentication-Results: i=1; mx.google.com; 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 r10si17325048pgp.30.2019.05.07.03.32.29; Tue, 07 May 2019 03:32:45 -0700 (PDT) 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; 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 S1726683AbfEGKbc convert rfc822-to-8bit (ORCPT + 99 others); Tue, 7 May 2019 06:31:32 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([146.101.78.151]:48742 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726543AbfEGKbc (ORCPT ); Tue, 7 May 2019 06:31:32 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-135-fQiddA3kMDSw-qG7Exz2OQ-1; Tue, 07 May 2019 11:31:29 +0100 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b::d117) by AcuMS.aculab.com (fd9f:af1c:a25b::d117) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 7 May 2019 11:31:28 +0100 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Tue, 7 May 2019 11:31:28 +0100 From: David Laight To: 'Jiri Kosina' , Sebastian Andrzej Siewior CC: Andy Lutomirski , Greg KH , LKML , Rik van Riel , "H. Peter Anvin" , "Jason A. Donenfeld" , "Ard Biesheuvel" , Dave Hansen , Ingo Molnar , Nicolai Stange , Paolo Bonzini , =?iso-8859-2?Q?Radim_Kr=E8m=E1=F8?= , Thomas Gleixner , "x86@kernel.org" , "stable@vger.kernel.org" Subject: RE: [PATCH] x86/fpu: Remove the _GPL from the kernel_fpu_begin/end() export Thread-Topic: [PATCH] x86/fpu: Remove the _GPL from the kernel_fpu_begin/end() export Thread-Index: AQHVAkq0vUiV5g3MjEetDYjdoqqHvaZfXF+Q Date: Tue, 7 May 2019 10:31:28 +0000 Message-ID: <957b01f742ed47d1ac9e0ea1277d155b@AcuMS.aculab.com> References: <761345df6285930339aced868ebf8ec459091383.1556807897.git.luto@kernel.org> <20190502154043.gfv4iplcvzjz3mc6@linutronix.de> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-MC-Unique: fQiddA3kMDSw-qG7Exz2OQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ... > So I don't really see a problem with Andy's patch. If we want to annoy > external non-GPL modules as much as possible, sure, that's for a separate > discussion though (and I am sure many people would agree to that). > Proposal to get rid of EXPORT_SYMBOL in favor of EXPORT_SYMBOL_GPL would > be a good start I guess :) As a writer on an external non-GPL module I'd point out: 1 - Even if we wanted to 'upstream' our code it is very specific and wouldn't really be wanted/accepted. Even if accepted it would always be excluded from builds. 2 - It would take man-years to make it meet the kernel code guidelines and to make it portable (from x86). It also contains conditionals because it gets build for windows. I don't like a lot of it. 3 - Almost all the calls to kernel functions are through a 'wrapper' file that is compiled on the target system. About the only functions that are directly called are ones like memcpy(). 4 - It wouldn't be that hard, and would still be GPLv2 if we built two loadable modules, one GPL and one non-GPL and put all our wrapper functions in the GPL one. We'd still need a small wrapper for the non-GPL module, but while Non-GPL modules are supported at all it wouldn't be much work. 5 - The continual tweaks for new kernel versions keep us in a job! Some of the _GPL exports are a PITA: - we can't reference count network namespaces (without creating a socket). - we can't reference count 'pid' structures making sending signals tricky. - I thing the PCIe error handling functions that we ought to be using are GPL. At the moment we've not needed the fpu :-) David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)