Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1230916pxj; Fri, 18 Jun 2021 02:31:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoxtJIF7s8UauVWNvgp0id/7h8Z8AUIYJvLiJjm0Kp/4miQZ/pk8IBGLrmnqabPdjPSMhf X-Received: by 2002:a17:907:3da4:: with SMTP id he36mr9897925ejc.108.1624008707980; Fri, 18 Jun 2021 02:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624008707; cv=none; d=google.com; s=arc-20160816; b=XRNgtOt47qRWFfKfm6U+tqO+AveG5vgH3gvcBQ7wsyWWa+Xjs/0KvUk2I1fqJgEpXd EYLhVqfgtfIquyTjLDyk0AGdqWYmbZOFXxtw+GCRsO8JPBHmP7nRo12LWESxdovQbeZA lT+GByv/FSqS9liuMtmd+lhab4i7bMuhXCt5xqXY5dVNGwyXr/0xkr+oo6W2V0RG3w4L BITgjrJtZO/RVyL1sYrp7/2eIEyods6rjhfaIuj+TlzApFYuH+N9NElKoJsH6xv47exl rnVM8n0/Av3ce+FDtiz2kFOu0P2KlwlmlRKUw4/jyW2FPXY9OvsZVR9xV9/A90hmnIrm MP9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject; bh=PEcc2XLwF7gLUJu71YgacFESmL81dpTQvc0XnJ0Z794=; b=kGMYxkGIToDNVzCseDsGkwJXY9ZW0HzYFSuvJ0M4goQv7XLY3hLq+D6i5+zgAhRXc6 9/7ItjtxWuuwKLSTV+07+JxTxtEbYE4wpHnOOoxRs9XpkqfUc+Ikbtms6oSyJSHWlgBZ Sdf7BX8THC9M0Gumqi+907/vHLVqlzQ9/t4DdSyZO4ytkEcXd8FXAgYskPyZ1/37E1Jb UQzEhKFeNFyBRDA3SUzKSVq6iOJY8kheOX1GYxC96Ve8glhX3Udc3gGSqQOaL8ynLYXQ 7rJ6Yk5/++SonFr/VGVOer+dQPzIzhYFA4BU0EiNuFhh72DPxgzNzosaACY6OVeeRHF3 Jp6A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w2si9993440edi.608.2021.06.18.02.31.25; Fri, 18 Jun 2021 02:31:47 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232554AbhFRJCC (ORCPT + 99 others); Fri, 18 Jun 2021 05:02:02 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:48109 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232609AbhFRJCB (ORCPT ); Fri, 18 Jun 2021 05:02:01 -0400 Received: from mail-ej1-f72.google.com ([209.85.218.72]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1luALv-0001FK-Ow for linux-kernel@vger.kernel.org; Fri, 18 Jun 2021 08:59:51 +0000 Received: by mail-ej1-f72.google.com with SMTP id p20-20020a1709064994b02903cd421d7803so3622206eju.22 for ; Fri, 18 Jun 2021 01:59:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PEcc2XLwF7gLUJu71YgacFESmL81dpTQvc0XnJ0Z794=; b=HrbAimeJZBuQKvxoGJJzfeEuHRtwZhoKhlbaHY6r3YvOrLlGMe+5to0wKxYS1ukcP5 ZXbMuts8QODy/cf0xSXcIwi+7/FBs8KnhCv6kl4qU0+A721bKGNdXca9Zg8RuHqAj+p1 YhIRYVFdrjTd8nv9LGPf+R7wTXcYHeGcjO/QYvUPFltm82BLQQ68P+aTcF2tdIrkQAuZ n7aUEW8GGvWZR1iWoPpbC5mms/zaDUHcd9Eu/MfK9UoZeaSCgTk39dluNTUwth4ejvsm SHjfoz40Wows1KpriBVCBjwwxQwdmpWQMd+pDdx65WyHnsMaEU128WinslofRvPjEztY d8Cg== X-Gm-Message-State: AOAM530d3h9BCZYx+7t+uvbtmdWCNlmoQhyN39rsWuQsiWiIPkAZoIYr ocOTKLQJGFjR+cUvjspId3aT1fNvo4JQaDSMQWtgolYcY/RYOMfBoRdBtC026aHAc6JV+aT99TM ZuXH1eeJWqN8yRxc6fuxEBiCHITvr8pc+iOf5iojemw== X-Received: by 2002:a05:6402:18f6:: with SMTP id x54mr3654889edy.53.1624006791574; Fri, 18 Jun 2021 01:59:51 -0700 (PDT) X-Received: by 2002:a05:6402:18f6:: with SMTP id x54mr3654881edy.53.1624006791433; Fri, 18 Jun 2021 01:59:51 -0700 (PDT) Received: from [192.168.1.115] (xdsl-188-155-177-222.adslplus.ch. [188.155.177.222]) by smtp.gmail.com with ESMTPSA id y20sm5737732edq.69.2021.06.18.01.59.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Jun 2021 01:59:50 -0700 (PDT) Subject: Re: [PATCH 5.4 031/184] modules: inherit TAINT_PROPRIETARY_MODULE From: Krzysztof Kozlowski To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Daniel Vetter , Christoph Hellwig , Jessica Yu References: <20210510101950.200777181@linuxfoundation.org> <20210510101951.249384110@linuxfoundation.org> <8edc6f45-6c42-19c7-6f40-6f1a49cc685b@canonical.com> Message-ID: <08a2e600-74cf-dbf8-1ecc-777ff65e06b0@canonical.com> Date: Fri, 18 Jun 2021 10:59:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <8edc6f45-6c42-19c7-6f40-6f1a49cc685b@canonical.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/06/2021 10:57, 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. And for the record I am not talking about this patch only. I am asking also what serious or real bug is being fixed by: "modules: mark find_symbol static find_symbol is only used in module.c." I would be really happy to extend my knowledge about real bugs faced by people, where the fix is to un-export unused symbol. It must have been very interesting, real bug bothering people. :) Best regards, Krzysztof