Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5281079ybe; Tue, 10 Sep 2019 01:00:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFimXnP6h0ZizTkiXPuLDGMH9YnQXoC1dRds3aFkzzFg2YRsgtD1DLWlOhSo7tfq65lOP8 X-Received: by 2002:a50:c19a:: with SMTP id m26mr28525118edf.184.1568102407016; Tue, 10 Sep 2019 01:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568102407; cv=none; d=google.com; s=arc-20160816; b=j2SE6J27/HpjNns+4V+QNiL7lqOEEZFnAMD7TEYIl9AGsizKEOgR3rwEoZILWEPq5i juOaTBG2mh7WG6FIWlfhJQHvOqfDLqy2eCb4crEvCu2ogl2AiikLOFgyAk7aMMtsBlBw QNWtlObFedei0wDqZWsmOkVOzEChttlFTiotkNM/maZlJgJ/JmRNZyb05NG2m4DhbDEd e5+VACm+MYJjTbR/BTPV/pn8yGGlSWa1P4nZ30bpPm0UmfsqBfveQ5odRU2ED7YOyxbM YCPkJhGKo+jU9z4Smsl/JEjCer29bDq3dOO7xb6cUpX/jNscCTtABAZhssmGLhPnJXZK OIcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=642cFtI3f24XPx+5CJOS0tuBt/rWYPYIkmSER4gGvqI=; b=uGm0Km+tTW4fIyon/OLIGs7eGHNf+aaN5tawEqeQIfh3MMKBhO39xMVk7XTNU0vzTp jHDu79fpQfueBoPuETtbNs18bJVNXSQIAAwdqJhdlbOPIJwK+OcTD77Jd7UV8LFAMohp ZMrjemtGDSrhmafaNFnn05e/NrlVahr8OTkZfLFYYbJYOsUsxiRIlmBD0TsrkGSd2b0U buCo8gRyLy8ym1Xc7BBFPOQiTcIwgeCmZ5Aw0rTwuTUwQz7ntp416nHHAmVlRl5iq737 6JUXW5ucvtqkUPUTPvgcb9SkMwwthz9Gs1nac2w5buL4IPTrpp4LbC+caGXJXD+KFfDn 1u9w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j6si2338402ejm.157.2019.09.10.00.59.42; Tue, 10 Sep 2019 01:00:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730905AbfIINnr (ORCPT + 99 others); Mon, 9 Sep 2019 09:43:47 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:37914 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729438AbfIINnr (ORCPT ); Mon, 9 Sep 2019 09:43:47 -0400 Received: by mail-qt1-f194.google.com with SMTP id b2so16188093qtq.5; Mon, 09 Sep 2019 06:43:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=642cFtI3f24XPx+5CJOS0tuBt/rWYPYIkmSER4gGvqI=; b=ZfxSEkfquoKKvIngIqHiKeW0stnX8fa31cKbbjtZR5p6yVeasDtthawj+wFp1QLEHX jeRw1NPSApPboksxvSHchSoGOyFz5tb8oBbTU/JUrHlJGJ3z3zej/b5yqhgxak84dFbC NlK5MusQ/n9Ecvey1GmMfqP10/ClSKajACUpWnkr7/5KUVpWNUNdMkIXeTJCODOItkho ShsAi6qbx699/iu61YSPFz/03kxGr8sFA+ZRCDNGPgVnIgY1gucJ1LopUDxGeM0z5PYF 8zKqr1fOtOqPwemXZ+HdeCii5y1+ZC+INCrW7lt8lWFZOlkrtrHAML64u+UchkU37VAT 4+wQ== X-Gm-Message-State: APjAAAWxZrR2/247MhNabzKSFMCJkSKvQJaFbBMsN/LWQ+zRLmgDEjiK dqYjknGg4vlj5Phaxe2FBLwOAEHCMTGztIZfUh8= X-Received: by 2002:ad4:4529:: with SMTP id l9mr9849589qvu.45.1568036625284; Mon, 09 Sep 2019 06:43:45 -0700 (PDT) MIME-Version: 1.0 References: <20190909105317.20473-1-yamada.masahiro@socionext.com> <20190909105317.20473-2-yamada.masahiro@socionext.com> In-Reply-To: <20190909105317.20473-2-yamada.masahiro@socionext.com> From: Arnd Bergmann Date: Mon, 9 Sep 2019 15:43:29 +0200 Message-ID: Subject: Re: [PATCH 2/2] export.h, genksyms: do not make genksyms calculate CRC of trimmed symbols To: Masahiro Yamada Cc: Linux Kbuild mailing list , Denis Efremov , Nicolas Pitre , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 9, 2019 at 12:53 PM Masahiro Yamada wrote: > Since commit 15bfc2348d54 ("modpost: check for static EXPORT_SYMBOL* > functions"), it is harmful because the bogus __crc* symbols make > modpost call sym_update_crc(), and then new_symbol(), but there is > no one that clears the ->is_static member. > > I gave Fixes to the first commit that uncovered the issue, but the > potential problem has long existed since commit f235541699bc > ("export.h: allow for per-symbol configurable EXPORT_SYMBOL()"). > > Fixes: 15bfc2348d54 ("modpost: check for static EXPORT_SYMBOL* functions") > Reported-by: Arnd Bergmann > Signed-off-by: Masahiro Yamada Tested-by: Arnd Bergmann Thanks for providing a proper fix! Arnd