Re: [PATCH rdma-next 1/4] gcov: Open-code kmemdup() to work correctly with kernel and user space pointers
From: Linus Torvalds
Date: Wed Sep 02 2020 - 15:05:19 EST
On Wed, Sep 2, 2020 at 11:44 AM Leon Romanovsky <leon@xxxxxxxxxx> 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