Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1708638yba; Sun, 5 May 2019 12:10:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFcx1Et1hMHBT70AajvHMin+sBF2DzAv6zxKPk3V8sgGNGPvsBQQEnG0pw/ioP9gu2rmcS X-Received: by 2002:a65:4c0b:: with SMTP id u11mr27198459pgq.405.1557083421866; Sun, 05 May 2019 12:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557083421; cv=none; d=google.com; s=arc-20160816; b=cqsS6owEFLAAXL6tC61S25Cpvelh4KiXXid8qaTkb163N1Ibyd8PUw3sjFELCHcvkg RDOEeWG5ZZQm5ZC4HGgE6C6+fIZQu+iCxAus8uf3dWjlOZ94Pq3YrRj4Zh3yfHRMMlak 8QFy8Jkw8VY2bEtAS5zkl3nGIEizqLxlPbNB22wwLgoH1GqB7ZE3NqlWAEpwLb7u0YcO oIj3SWsAW95b+nCSFnTQjXVfFTBUjToCOB0xtxXtQB4R8BYe1+hTC2EMk0lSeSbxEGJG eENL7NMfRW00DW1P1faGs80u+eEIcIMIVXkUeuD+FVWibsdS2z4ZwISavtkMDCB5l/Jb uahQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=RILSxaz9yM8hTd0ffcom4wdPDHBsaYg42g5Icv5aSx8=; b=tjHQy1kNvLvZgJ02EE3ywGkIEMFfByYL4Fclr2GfWUXBuAwATeWG2OUShP/YjhJMMz VvaymjmHqZ8+ptixGoRs3Y4v84t0P8CS40ytdqN3q7ljnbFmXGBTSfPHbakdx55bvcAM FyLhlj81+VHZ+FbeeN+2ciDeFlO9zRiuPTNM3kAfeCJJjhjG7dveUrt67N7807qL0IFM cegAh62K5FEBbI4EvtFb/bztTxa7oYMlMTRasvTtLYnnp2cdTLFwQALlIeo1g6QsnfzZ UoQHmhjBKXBhUoMTfDgWinznY1vD10GeKyB6fT6T+B8ZuqX8LI45N7uZcI5qAvzFYB4t 7GNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D97UXnrn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si13132899pfb.77.2019.05.05.12.10.06; Sun, 05 May 2019 12:10:21 -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; dkim=pass header.i=@kernel.org header.s=default header.b=D97UXnrn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727628AbfEETJP (ORCPT + 99 others); Sun, 5 May 2019 15:09:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:58296 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726636AbfEETJP (ORCPT ); Sun, 5 May 2019 15:09:15 -0400 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (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 7FF26206DF; Sun, 5 May 2019 19:09:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557083354; bh=4a9Bj+P7pYzppgR+XAGFwmOPU9FoP0E5RLD7Tb28gb4=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=D97UXnrnl0AtsC0B9sGMYTCi2lvpOjaFrNdwax0Dusj+M5yd1rJPPmIGj3bggQ3PD NqFrYWxbzKaKC4GXIkC/qQAjOkwobNOG5PDLv6E9d/BNtVUsqe527bpb2iMKD9m/m6 rPYFSzx/50c+g0aTKCzUU+khEMLJbg4gr2WUCzwU= Date: Sun, 5 May 2019 21:09:09 +0200 (CEST) From: Jiri Kosina To: Rik van Riel cc: Sebastian Gottschall , Ingo Molnar , Sebastian Andrzej Siewior , Andy Lutomirski , Greg KH , LKML , "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, Jiri Kosina Subject: Re: [PATCH] x86/fpu: Remove the _GPL from the kernel_fpu_begin/end() export In-Reply-To: <86b8d81d760ac1f6e622f1c873a5f9aad7862734.camel@surriel.com> Message-ID: References: <761345df6285930339aced868ebf8ec459091383.1556807897.git.luto@kernel.org> <20190502154043.gfv4iplcvzjz3mc6@linutronix.de> <20190504004747.GA107909@gmail.com> <2238f6ed-9338-903c-760c-6200e73b1599@newmedia-net.de> <86b8d81d760ac1f6e622f1c873a5f9aad7862734.camel@surriel.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 5 May 2019, Rik van Riel wrote: > > Using fpu code in kernel space in a kernel module is a derived work of > > the kernel itself? dont get me wrong, but this is absurd. i mean you > > limit the use of cpu instructions. the use of cpu instructions should > > be free of any licensing issue. i would even argument you are > > violating the license of the cpu ower given to the kernel by executing > > it, by restricting its use for no reason > > Using FPU code in kernel space in a kernel module does not require the > use of kernel_fpu_begin/end(). > > The kernel module could simply disable preemption, save the FPU > registers, use the FPU, restore the FPU registers, and reenable > preemption. That means the module basically reimplemented kernel_fpu_begin/end() in its whole (not getting the further optimizations implemented by the kernel, sure). And therefore I sort of don't see the point of "hiding" it. Thanks, -- Jiri Kosina SUSE Labs