From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2FCD1A00C2 for ; Wed, 30 Nov 2022 16:24:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 08C9C40395; Wed, 30 Nov 2022 16:24:35 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 0C43340151 for ; Wed, 30 Nov 2022 16:24:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669821872; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=cWCVaQrIbRQKBxsWUn+K3YFRp7LwvLe1FbUxdfeOt5w=; b=AWGy7As3tr0atMhJNUoYH9rO5UNFBYGWHeOR7L9OliGfFLfuqIxmaLq3PZxMsstw98QWF3 hWcy1zG1AgXhGtiKONKr0/jCFTLZM1/wiDXZ3ZWCwLuE3Tz67ASBLjQO4ZslQLUON9JrPB EmrE3sm/2j2QyFyQysMd1Bu1+PD7+Ho= Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-661-XaFIyeaUPdulzDLRhZ2kBg-1; Wed, 30 Nov 2022 10:24:31 -0500 X-MC-Unique: XaFIyeaUPdulzDLRhZ2kBg-1 Received: by mail-pj1-f71.google.com with SMTP id mn20-20020a17090b189400b0021941492f66so1950393pjb.0 for ; Wed, 30 Nov 2022 07:24:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cWCVaQrIbRQKBxsWUn+K3YFRp7LwvLe1FbUxdfeOt5w=; b=t5uvGlogARXzkfRaevYd6sJVmPx4mPPP8Xdf2l/uHWuu8lJP3nq5R2oh3wHvDe0V6l a9+DNWEpDXehlZFq6140gk+6iCwNLx7dAJUOLof08YsmMZIAc+2X0EgkPCIuPAq/84wY pBWb3CoPQ8SJ7b2hBaPbTrJtjVOiHPmsAf90eOs8KPk4KahCFCyEFFMOPU0A3vuc3zlS 7elp89yS1/o/r+0KpX2X3yV3tL/+7FPJeC0FM7r8DnjGFieNDxae7QKaItCx+Guq0tbU tflmq/bV8vQyQjsoIxClNUKl3ffunl5UFKiW8eTJPaHGgVDdrbotKqN0nHL6FB/AmbM9 JV6g== X-Gm-Message-State: ANoB5plwdHF6dHnKVWyBBSktKwdLlxdr/LJ2EH1xfRVGNxScgum4gm8A MR28mZNUhccoPnvo3tvn5VtiR4eZnwnoIhG8TUgnp7gnkaQu5EkSVNYzkHHMQZLeQuJyLQdHZks 1cCISZcoKKUxWMpEK0GzIF1I= X-Received: by 2002:a05:6a00:24c1:b0:56e:a001:8cb0 with SMTP id d1-20020a056a0024c100b0056ea0018cb0mr43732958pfv.60.1669821869992; Wed, 30 Nov 2022 07:24:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ynoX2Q+5xAgdKEQY2/3i1VgbJDbd/JaMzIGjTN+bKD7oxeeJDzvV1zaskPfj1xaNAijgXuB4loZeOYCLUByE= X-Received: by 2002:a05:6a00:24c1:b0:56e:a001:8cb0 with SMTP id d1-20020a056a0024c100b0056ea0018cb0mr43732937pfv.60.1669821869626; Wed, 30 Nov 2022 07:24:29 -0800 (PST) MIME-Version: 1.0 References: <20221129140032.35940-1-david.marchand@redhat.com> <20221130100204.214181-1-david.marchand@redhat.com> <191d5966-dd66-3a26-2789-6c6e5ce78aa2@amd.com> In-Reply-To: From: David Marchand Date: Wed, 30 Nov 2022 16:24:17 +0100 Message-ID: Subject: Re: [PATCH v2] drivers: fix symbol exports when map is omitted To: Luca Boccassi Cc: dev@dpdk.org, stable@dpdk.org, Thomas Monjalon , =?UTF-8?B?QWJkdWxsYWggw5ZtZXIgWWFtYcOn?= , Ferruh Yigit , Bruce Richardson X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Wed, Nov 30, 2022 at 4:02 PM David Marchand wrote: > On Wed, Nov 30, 2022 at 11:44 AM Ferruh Yigit wrote: > > > > On 11/30/2022 10:02 AM, David Marchand wrote: > > > ld exports any global symbol by default if no version script is passed. > > > As a consequence, the incriminated change let any public symbol leak > > > out of the driver shared libraries. > > > > > > Hide again those symbols by providing a default map file which > > > unexports any global symbol using a local: * catch-all statement. > > > > > > The checks are skipped for this default map file as it is intentionnally > > > an empty map (see commit b67bdda86cd4 ("devtools: catch empty symbol > > > maps")) and there is nothing else to check in this map. > > > > > > While at it, move Windows specific objects where needed for better > > > readability. > > > > > > Fixes: 7dde9c844a37 ("drivers: omit symbol map when unneeded") > > > Cc: stable@dpdk.org > > > > > > Reported-by: Luca Boccassi > > > Signed-off-by: David Marchand > > > Tested-by: Ferruh Yigit > > > > Tested v2, looks good. > > 'check-symbol-maps.sh' warning fixed too. > > Thanks Ferruh. > > Bruce / Luca, could you review / confirm it is ok for you? Additionnally, Luca, could you describe how you caught the issue? Could we enhance the CI to catch this earlier? -- David Marchand