Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp702679pxk; Wed, 2 Sep 2020 12:29:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpjlXR0frmywVX7WsaLBlHbgzb5lLVXMZp6E/HlH75fz6iUJFhl21aZoCVDzZV4WyW+qPz X-Received: by 2002:a17:906:1986:: with SMTP id g6mr1651886ejd.404.1599074950901; Wed, 02 Sep 2020 12:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599074950; cv=none; d=google.com; s=arc-20160816; b=oCtwUni6Wh3VdYz/JygbS6hB5/Qy/1/IL4S93XqMg0kcgOoeIOBoeJsUfJzUWslYmq BMDjTREUAvKJzALS8qVPty8wocIySb32e4YYGB82l71TUW/FsOBKHuhrcmEguEa6JjH0 qrqV/OP+ustRr2iC4i3qi+/8uffEPvTyqafe4hXM1tBhKDWPaAhipDlnj5L62eSx4pfr E9UEqc9x7Tn/6xLhHf8Puqp2FiySxen3yzQMXWntqKs26hDouJpzA306+XJMaqKOBI8x WL41mOa4S/uHri0mJpvWGq8OGwwCmnR7n/DVuQbQIZJSkn6/kYgY4bxwcynAu/b+gGuA mIZA== 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:dkim-signature; bh=O+3fzIDZD6dB4Dw6aLJ8wyJ60xmGq/K5MrVPSuFfpYg=; b=lbEtnZsv5xp3knq6U+T/4TUbdGqIUEnXRcrwTRf6vrwVv7x0CP4RcXmkXh2DlfM+Uy T5eHW39S+MKMwWgUADofKmNE/iv66eOBFE6TNdi4HHF8h2W1+8q3vIh0ANqePwrWEYLV LFfMaGQeE3qnMn46hrJFdi9VksRHoVDFd+bDUqyGV9z4kGfONi7SxOMSCSBGLdrc44YU yr60uyaz6audhWy6XbkjHaGnsamqQmfAtyE2jTsU3SeL1clGw9s5UWbHYGqoolIxNDfT qg5B7fim4oNOUofaEtEXr8PgsjK8Q8jKoY6nO+jQV16XI9JViFpcyNYeLEzBK1PshTH3 qM2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Dk4d2sKC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u20si131724edy.509.2020.09.02.12.28.48; Wed, 02 Sep 2020 12:29:10 -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=@linux-foundation.org header.s=google header.b=Dk4d2sKC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726938AbgIBRlo (ORCPT + 99 others); Wed, 2 Sep 2020 13:41:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbgIBRll (ORCPT ); Wed, 2 Sep 2020 13:41:41 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ECDEC061244 for ; Wed, 2 Sep 2020 10:41:40 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id c2so100944ljj.12 for ; Wed, 02 Sep 2020 10:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=O+3fzIDZD6dB4Dw6aLJ8wyJ60xmGq/K5MrVPSuFfpYg=; b=Dk4d2sKC9aHKI0/Jp4sIy5gZVnevd126YEnMPVUCxfGj2azHnWnaDF8qKQEVfAT+Mg 5OkseLzs6rYWX6xbPHAyOXgj2Vcuuo+JWH+rhknFrZgh9CMYO50wFa1JD4fiLIAn/Vob 5ZyfVDjLlq8ZFXy3EZlU93BiOqVhXsNyfQTVg= 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=O+3fzIDZD6dB4Dw6aLJ8wyJ60xmGq/K5MrVPSuFfpYg=; b=Qa8D0azsooMiUPt4GEQPaNmMffPhI2dFQYSfp35cSOv1jFBBqT4gdgFIiIulG5GA89 DzCTtnRDNfM1pV+a+KKhrq8Bt1LsSoIpNggwDcMwCSozR9pN6xI7/kHPley4x3vx6aXD 5o7hpkGNfFkzXL3x7uI1Ec51Zy3jsqA4NccbmXXjibuOSLve4FmEKv4g8T9NVTtloDcH daMC1EeZWBbaUmcfSuJzGhX/AJgPpMhKjef+o8/wIwcOZG36kmVjCHaqXi/BkltEizt0 nBt0k46d0LwWWYqH+NEif+cBf8slcO2JnODv+VttMBwpl/klreA/tMQ+1u477uLoe4yK XhPA== X-Gm-Message-State: AOAM530E85UQqc9yDxH7ZAJQqqYqBFRh6PeltnkkQQlO17fZpvBR1n1A AsXmsVvcBYib5yFK5Evg1eF2UeFGDiO7+g== X-Received: by 2002:a2e:9607:: with SMTP id v7mr3692724ljh.174.1599068498429; Wed, 02 Sep 2020 10:41:38 -0700 (PDT) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com. [209.85.208.175]) by smtp.gmail.com with ESMTPSA id b15sm54832lji.140.2020.09.02.10.41.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Sep 2020 10:41:37 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id w14so167430ljj.4 for ; Wed, 02 Sep 2020 10:41:37 -0700 (PDT) X-Received: by 2002:a2e:b5a3:: with SMTP id f3mr3579210ljn.70.1599068497154; Wed, 02 Sep 2020 10:41:37 -0700 (PDT) MIME-Version: 1.0 References: <20200902085513.748149-1-leon@kernel.org> <20200902085513.748149-4-leon@kernel.org> In-Reply-To: <20200902085513.748149-4-leon@kernel.org> From: Linus Torvalds Date: Wed, 2 Sep 2020 10:41:21 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH rdma-next 3/4] gcov: Protect from uninitialized number of functions provided by GCC 10.2 To: Leon Romanovsky Cc: Peter Oberparleiter , Leon Romanovsky , Linux Kernel Mailing List , Colin Ian King , Andrew Morton 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 Wed, Sep 2, 2020 at 1:55 AM Leon Romanovsky wrote: > > This trace is seen because n_function value provided by GCC through > __gcov_init() is ridiculously high, in my case it was 2698213824, > which probably means that the field is not initialized. This seems to be wrong - since a different (smaller) uninitialized value will succeed in the kcalloc, but will then walk some random array size when copying and fail later instead. So this doesn't actually seem to _fix_ anything, it just hides one special case of bogus values. Linus