Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2547763ybx; Fri, 8 Nov 2019 05:58:40 -0800 (PST) X-Google-Smtp-Source: APXvYqzCiWbNaDgF3KPfGJCiNhQ9wQM3Qyy9Rax3+TIKWh5Ns6CeEJlMcwhRRKJ0B/fPWH6L84U8 X-Received: by 2002:a50:e605:: with SMTP id y5mr9807006edm.12.1573221520190; Fri, 08 Nov 2019 05:58:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573221520; cv=none; d=google.com; s=arc-20160816; b=O85Dq3BJUXFBPBrSHVQwbz40z9As9L2bUePvz7iKYTXBisyZ9vMmRCeTlapa7eWjxw 8RIim/1cYXBTuLzY/k5wxncK5Wg6bXAWc1R3RPNFJguEsMF1t8nu2WDHRTeq8xGV4WPl /zUT3ep1bAkas5SipC9N/Douzr9fKUfvNUtxaD2gxs2dSiOLQL+yVm688VhxttEDZOOB 69Azmifn1Ij2OU07Ope4IHmFOBmTRy+WLRAdMSQAAUHmnD5x9Uig4gGIAYAQlWmsux6e gz/b4DPLxsJqkdP/ijP5FzuRcuQ0cSNe9E0Agmbaj8by1Yv2GADP8GaEfszJjlNIDm8I SMCw== 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=Nykjdq32hSpsaTmiLdPS3XjHLKwzZiCQ2LtNR5DuXGY=; b=nF9ONr2LdYCPiYMctdNL17Qe6tOCVM2fPTUeZZOiCix/eZ7WFRNhqg9m4dzxFt2wjA SAg5iOZNAZAawnghNywpLbsarNWoc8jWkxINEXbqRUDucXc/Mx4k5tn3Lhgi83V1jtHZ Ril6up81ylv+GJHjntA8GBSpCAfQyI4hGRaMKPlf3W/GNtaNvY7PPcG6nHXSHDaary47 ljlFWrgI8T3lNit/1QOyEE6HQFZObkyphoNajanq57qdoqWDNWcAXgNmBu/0oKzijjLo iaYROjCg/BM6zt8hp1zRzoJv9dl/tWRTNeu+cihqIkCnJe4LFX/r0OvvuAYFweRmZBC+ Dowg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FojtLrtA; 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 w54si4138878eda.214.2019.11.08.05.58.16; Fri, 08 Nov 2019 05:58:40 -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=FojtLrtA; 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 S1729448AbfKHN4l (ORCPT + 99 others); Fri, 8 Nov 2019 08:56:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:43708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbfKHN4k (ORCPT ); Fri, 8 Nov 2019 08:56:40 -0500 Received: from linux-8ccs (x2f7fce5.dyn.telefonica.de [2.247.252.229]) (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 A56B7214DB; Fri, 8 Nov 2019 13:56:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573221399; bh=n9ystWPITpLlZG9fAxteJieqtPVAxlo0c6o7Uuvsikw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FojtLrtALDOI9gVhEgdOdfgo9H8nnaaqZlSjepLU7bnBYMXgCFTVqA/8RxEPPkQ4C gxzMDjTKKqrGgLB9785qbuuxp7Np3WO575y5i610Bq46Xxmy6C/XGY+WouXnhoVm/4 2jqdx3/gokNhHxPe1+TdeK7g1iOEw7NnqRCBx5bE= Date: Fri, 8 Nov 2019 14:56:31 +0100 From: Jessica Yu To: Paolo Bonzini Cc: Andrea Arcangeli , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Vitaly Kuznetsov , Sean Christopherson , Masahiro Yamada , Matthias Maennich Subject: Re: [PATCH 03/13] kvm: monolithic: fixup x86-32 build Message-ID: <20191108135631.GA22507@linux-8ccs> References: <20191104230001.27774-1-aarcange@redhat.com> <20191104230001.27774-4-aarcange@redhat.com> <6ed4a5cd-38b1-04f8-e3d5-3327a1bd5d87@redhat.com> <678358c1-0621-3d2a-186e-b60742b2a286@redhat.com> <20191105135414.GA30717@redhat.com> <330acce5-a527-543b-84c0-f3d8d277a0e2@redhat.com> <20191105145651.GD30717@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-OS: Linux linux-8ccs 4.12.14-lp150.12.61-default x86_64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +++ Paolo Bonzini [05/11/19 16:10 +0100]: >On 05/11/19 15:56, Andrea Arcangeli wrote: >>>> I think we should: >>>> >>>> 1) whitelist to shut off the warnings on demand >>> >>> Do you mean adding a whitelist to modpost? That would work, though I am >>> not sure if the module maintainer (Jessica Yu) would accept that. >> >> Yes that's exactly what I meant. > >Ok, thanks. Jessica, the issue here is that we have two (mutually >exclusive) modules providing the same interface to a third module. >Andrea will check that, when the same symbol is exported by two modules, >the second-loaded module correctly fails insmod. Hi Paolo, thanks for getting me up to speed. The module loader already rejects loading a module with duplicate exported symbols. > If that is okay, we will also need modpost not to warn for these > symbols in sym_add_exported. I think it's certainly doable in modpost, for example we could pass a list of whitelisted symbols and have modpost read them in and not warn if it encounters the whitelisted symbols more than once. Modpost will also have to be modified to accomodate duplicate symbols. I'm not sure how ugly this would be without seeing the actual patch. And I am not sure what Masahiro (who takes care of all things kbuild-related) thinks of this idea. But before implementing all this, is there absolutely no way around having the duplicated exported symbols? (e.g., could the modules be configured/built in a mutally exclusive way? I'm lacking the context from the rest of the thread, so not sure which are the problematic modules.) Thanks, Jessica