Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1352703pxj; Fri, 18 Jun 2021 05:26:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQsvpn2WPyizvHlspz7lWfcZXeim6orcuxrfVzlOriCXKyaf1j64LHvD4LmOLHNvY1eWtW X-Received: by 2002:aa7:c70d:: with SMTP id i13mr4592833edq.249.1624019202409; Fri, 18 Jun 2021 05:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624019202; cv=none; d=google.com; s=arc-20160816; b=glwrz4ieUNn5vIJa7+JFfN3J47Yrtea0qBpV1VQDiVcDsXM1ln4VzEu4b6Pre90yww MbDIJNUpFlFG3xBA/B8ThzQ6WtWSTTDlqLlkKnFenG7udKZR0Myvgcu8buOOMfmUvNX/ JxF2PHcO8X8fHC9BGea27hV5/z1XcXC/LLgSPSay/yMrgPHU6sA26jvpirc7T7y1VIfn NspLJJT0l1we26YD9vxmmTxBssgaYUca9MyEuh7RJFlDHmeU7huF0MQH26R/ydoA9b/d XELw9EjTSTfWe/mkU4aucBYU6KIY62ULcNkZ81D7rjWavfa0GZnZ4Hihm1sg5uteS0js nfPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lc6v7Alo79SYLk4SVZEpg84bDa6XvdiQrL5vtq5Ei/w=; b=1KvFWeXQKLe6I+BlvG7U/Qsk4puEwHRkRsDol8LAREt54oPdWerIihPLLuwonmu6wd uOHLKYBuDZyD36UqTrEQW8q+EP/ZIIxT1TvHzYQkNkNnmfslo/z6tVpkUTwC0NGInl1P EzwWxA8sK0oPERr4yvhtEvzht2T9gAKnY1a0L7F6940HaEmlclYUfU8I1MNacWoOoi4D h2VjDyneR5YdfZfM9oMvzsumP+805XQ5qIACO3fFRTSzq0596hiy9K5AmulPbTpoSVm7 dLAAKVbwMjwQ5rK6m55C+je/FRyfGaAeMhOgMbXHSbA+hhwdfU/gIix1tPMitOHQ2oOQ mTPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lbvpjpn4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j9si9200343edw.50.2021.06.18.05.26.18; Fri, 18 Jun 2021 05:26:42 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lbvpjpn4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232132AbhFRJbO (ORCPT + 99 others); Fri, 18 Jun 2021 05:31:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:56066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229466AbhFRJbN (ORCPT ); Fri, 18 Jun 2021 05:31:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 21155613D6; Fri, 18 Jun 2021 09:29:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624008543; bh=cajhCmV65XLZcXw4300MqDf324q9WNWkNa8RXQ2brms=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lbvpjpn4hIWsl1+D/mog0YkoJor8jYcZP7RDlUOTStK07crJvqHirvfWBKxF14Qr3 KI77qCHjc6+hlVk0ywMEaVXZc5kMIahZMMp/Qj/qvsl2ecnCOzDNi1Bbl+2KMECrz7 G/VEsiGcaRWPtIrfJeu2GBjK7KR2P59KakCIfbIQ= Date: Fri, 18 Jun 2021 11:29:01 +0200 From: Greg Kroah-Hartman To: Krzysztof Kozlowski Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Daniel Vetter , Christoph Hellwig , Jessica Yu Subject: Re: [PATCH 5.4 031/184] modules: inherit TAINT_PROPRIETARY_MODULE Message-ID: References: <20210510101950.200777181@linuxfoundation.org> <20210510101951.249384110@linuxfoundation.org> <8edc6f45-6c42-19c7-6f40-6f1a49cc685b@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 18, 2021 at 11:22:37AM +0200, Krzysztof Kozlowski wrote: > On 18/06/2021 11:19, Greg Kroah-Hartman wrote: > > On Fri, Jun 18, 2021 at 10:57:23AM +0200, Krzysztof Kozlowski wrote: > >> On 10/05/2021 12:18, Greg Kroah-Hartman wrote: > >>> From: Christoph Hellwig > >>> > >>> commit 262e6ae7081df304fc625cf368d5c2cbba2bb991 upstream. > >>> > >>> If a TAINT_PROPRIETARY_MODULE exports symbol, inherit the taint flag > >>> for all modules importing these symbols, and don't allow loading > >>> symbols from TAINT_PROPRIETARY_MODULE modules if the module previously > >>> imported gplonly symbols. Add a anti-circumvention devices so people > >>> don't accidentally get themselves into trouble this way. > >>> > >>> Comment from Greg: > >>> "Ah, the proven-to-be-illegal "GPL Condom" defense :)" > >> > >> Patch got in to stable, so my comments are quite late, but can someone > >> explain me - how this is a stable material? What specific, real bug that > >> bothers people, is being fixed here? Or maybe it fixes serious issue > >> reported by a user of distribution kernel? IOW, how does this match > >> stable kernel rules at all? > >> > >> For sure it breaks some out-of-tree modules already present and used by > >> customers of downstream stable kernels. Therefore I wonder what is the > >> bug fixed here, so the breakage and annoyance of stable users is justified. > > > > It fixes a reported bug in that somehow symbols are being exported to > > modules that should not have been. This has been in mainline and newer > > stable releases for quite some time, it should not be a suprise that > > this was backported further as well. > > This is vague. What exactly is the bug? How exporting symbols which > should not be exported, causes it? Is there OOPs? Some feature does not > work? The bug/issue is that symbols were being incorrectly exported in ways that they should not have been and were available to users that should not have been able to use them. That is what this patch series resolves. I can go into details but they are boring and deal with closed source monstrosities that feel they are allowed to muck around in kernel internals at will, which causes a support burden on the kernel community. If you object to this, that's fine, you are free to revert them in your local distro kernel after discussing it with your lawyers to get their approval to do so. thanks, greg k-h