Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp688539pxk; Wed, 2 Sep 2020 12:07:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx50nn5Tq0TAQH7cdP2Y+Ye9XuEAY3fJw1i8AHpFLrejj2mc5SGFiVUmdxPekm7p/XEMUeY X-Received: by 2002:a17:906:15cc:: with SMTP id l12mr1553870ejd.7.1599073623188; Wed, 02 Sep 2020 12:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599073623; cv=none; d=google.com; s=arc-20160816; b=TqawC/gygJwmbeAMgoRBF1EfT3LgYkAgXzOQlLpwYhRiGgi/NMDS+LcVP3+1D3mTK4 CK+Jvie+7VkPDOr+9cAffEZxm2QJ2+ldrkhaL+UX6nO32lgKMZEvYzBnCRFu2KO+qFNy bh6gkCIAGlgVmwTCn9QT8le5F8RgMd8l9Z7O4GvXu4gN12d29/BHB9bEdr8DGDp9xtzV QBQl50GXLfNLRc8vKtvXhfCPp3UBTVWZXi92HZ/sujDps8SnW0nMu6wDzPbLqaAQHjjH 8INO5FmHZ7qlpwGwTnmiGSszx4exjntcfSGqNKfZcUx9FDch5Yj8LgdBm/4yGMUOjVJW tSHw== 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=p6R0efz9XWd+oW+lHxqck6JB8UpHV1U85RBybyhOaC4=; b=Rz1MFzLNBlGJoLOJxNv3bu+r/2RIquh+RDtxNN0o2z0FK2W0wHIKZ29GPx+8w87LO/ gTvhqaIUuV1RcotYptcS2q5I5UTPVkJw9Va/3B1yviWw/TYA2AWfXMGCzVlXL++jHMbR O1WSKfNwiPnBfXtmWkwM/UbIx37lVc+DcPCpG41XoNZ4GAvKaTjN8XjQyB2Y0B1lkfVh aNarUxvp+EveRcRXi6IWzljA/V3n8jxuZse3ml/wni9qZmnjlQyWnZjSZGa2V4nkFZHM Ii24lNmDnHs+H+8bffKqwg7vmAQ8DPUfB1lK3fKC4ZhYALSeSOSNzs35xnIpiIvZdZT1 a9yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=FFjcggiL; 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 a1si100609edn.356.2020.09.02.12.06.32; Wed, 02 Sep 2020 12:07:03 -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=FFjcggiL; 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 S1728233AbgIBTFQ (ORCPT + 99 others); Wed, 2 Sep 2020 15:05:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727894AbgIBTFP (ORCPT ); Wed, 2 Sep 2020 15:05:15 -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 E846CC061244 for ; Wed, 2 Sep 2020 12:05:14 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id t23so487988ljc.3 for ; Wed, 02 Sep 2020 12:05:14 -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=p6R0efz9XWd+oW+lHxqck6JB8UpHV1U85RBybyhOaC4=; b=FFjcggiLAJRLsoGGisAB/RvYoVPa45By1Cc42PbUrHcWQfkEb/1IWBC4x6C/DCKx2v KqxW8Ac/K9/R38SwKfttu4rEyrBFd+8X1wsL6Lb5V0BzJhDaHCyc7DcAg0NubmArQtOS zH2/jL5q7snagATz4hnkvau7EI4CqWLrrliI0= 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=p6R0efz9XWd+oW+lHxqck6JB8UpHV1U85RBybyhOaC4=; b=qCTrPskuvJ1R+//caFlHQUKL4ITnYCaWQoZ7DY+U31mJhrk5aDHm+l1+OQgbEdHJuf SZxxjxkiyXYJtL2UhwuIxFWcML/U8uvbQih4FxGgn9KzBh0ey8rBIx8y35mpNiXHmaqR 69lh2/IcKMeHiQ0dZ7WKsXHDtrzwHGneS2SfO7Jlj+M6InNDJlo3tV1Tm0Ah4lXaK45U XQw68GqBlxn7/0ZD9/eXqui1J5dl7yjBiEwrh3mDEa3r8wnFEpTUWRCEmJDaz2ciHA3f eywZT/+Z2D2HEyA9/XSjxAYOh4klYqe3nAUaUOiwQ4CxN1rD1eM0D7u7Zi1eGvOCLSaj wWfw== X-Gm-Message-State: AOAM532hSo3YEfdb99rdOqUhPHbD3dBd55EiC0d1cdvTUGG8PePpArFT 0cinaGRtP2wF7b/YcT3DmFcTjoQIDjhkmg== X-Received: by 2002:a2e:a54f:: with SMTP id e15mr3659966ljn.115.1599073512958; Wed, 02 Sep 2020 12:05:12 -0700 (PDT) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com. [209.85.208.176]) by smtp.gmail.com with ESMTPSA id b1sm101058ljp.78.2020.09.02.12.05.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Sep 2020 12:05:11 -0700 (PDT) Received: by mail-lj1-f176.google.com with SMTP id w14so476642ljj.4 for ; Wed, 02 Sep 2020 12:05:11 -0700 (PDT) X-Received: by 2002:a2e:2e04:: with SMTP id u4mr3829066lju.102.1599073511288; Wed, 02 Sep 2020 12:05:11 -0700 (PDT) MIME-Version: 1.0 References: <20200902085513.748149-1-leon@kernel.org> <20200902085513.748149-2-leon@kernel.org> <20200902174600.GK59010@unreal> <20200902184449.GN59010@unreal> In-Reply-To: <20200902184449.GN59010@unreal> From: Linus Torvalds Date: Wed, 2 Sep 2020 12:04:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH rdma-next 1/4] gcov: Open-code kmemdup() to work correctly with kernel and user space pointers To: Leon Romanovsky Cc: Peter Oberparleiter , 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 11:44 AM Leon Romanovsky wrote: > > I already don't remember why, but copy_from_user() caused to second flow > of gcov_info_dup() through gcov_event() to generate another set of warnings. > > As a summary, I have a workaround, but I don't know why it works and not > proud about it. Ok, it does sound like "let's just disable gcov for the affected compilers" is the way to go. If/when somebody figures out exactly what's up and how to work around it properly, maybe we can then revisit the issue. Thanks, Linus