From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43897C433E7 for ; Wed, 2 Sep 2020 19:05:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 08E77207EA for ; Wed, 2 Sep 2020 19:05:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599073518; bh=TZkYeftYIZvFm8om9eRxlmYs1+BSqUJLy9pVRfQ4qaU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=YNQeTb57EsrKhLQqHbPTj0n5apDGaJtoBXD4Db2CzwCeaMZTs4Oj1ZWdMUMfSLRXi /LKg+coOybuywEmF0Bdz5N5R5+UoiZKVM3KtleKNxIgdcsT1lZ+pZ0yFgejjH/2FEP y4h9QuKlI2i4QqF0ySTtiZOKlneFod34EhIrwe3s= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728239AbgIBTFR (ORCPT ); Wed, 2 Sep 2020 15:05:17 -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-Google-Smtp-Source: ABdhPJxNMKP60wACdTGZrQr9zaypEmm8eoGl2m+TPp9QnQ3yehlq7StB2+jvifmZb6rPtbYnNWybdQ== 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