lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9f1ad3e1-fad7-2fb4-31c0-d31832468143@infradead.org>
Date:   Fri, 29 Mar 2019 11:01:15 -0700
From:   Randy Dunlap <rdunlap@...radead.org>
To:     Nick Desaulniers <ndesaulniers@...gle.com>, oberpar@...ux.ibm.com,
        akpm@...ux-foundation.org
Cc:     Greg Hackmann <ghackmann@...roid.com>, Tri Vo <trong@...roid.com>,
        linux-mm@...ck.org, kbuild-all@...org,
        kbuild test robot <lkp@...el.com>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] gcov: include linux/module.h for within_module

On 3/29/19 10:45 AM, Nick Desaulniers wrote:
> Fixes commit 8c3d220cb6b5 ("gcov: clang support")
> 
> Cc: Greg Hackmann <ghackmann@...roid.com>
> Cc: Tri Vo <trong@...roid.com>
> Cc: Peter Oberparleiter <oberpar@...ux.ibm.com>
> Cc: linux-mm@...ck.org
> Cc: kbuild-all@...org
> Reported-by: kbuild test robot <lkp@...el.com>
> Link: https://marc.info/?l=linux-mm&m=155384681109231&w=2
> Signed-off-by: Nick Desaulniers <ndesaulniers@...gle.com>

Reported-by: Randy Dunlap <rdunlap@...radead.org>
see https://lore.kernel.org/linux-mm/20190328225107.ULwYw%25akpm@linux-foundation.org/T/#mee26c00158574326e807480fc39dfcbd7bebd5fd

Did you test this?  kernel/gcov/gcc_4_7.c includes local "gcov.h",
which includes <linux/module.h>, so why didn't that work or why
does this patch work?

thanks.

> ---
>  kernel/gcov/gcc_3_4.c | 1 +
>  kernel/gcov/gcc_4_7.c | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/kernel/gcov/gcc_3_4.c b/kernel/gcov/gcc_3_4.c
> index 801ee4b0b969..0eda59ef57df 100644
> --- a/kernel/gcov/gcc_3_4.c
> +++ b/kernel/gcov/gcc_3_4.c
> @@ -16,6 +16,7 @@
>   */
>  
>  #include <linux/errno.h>
> +#include <linux/module.h>
>  #include <linux/slab.h>
>  #include <linux/string.h>
>  #include <linux/seq_file.h>
> diff --git a/kernel/gcov/gcc_4_7.c b/kernel/gcov/gcc_4_7.c
> index ec37563674d6..677851284fe2 100644
> --- a/kernel/gcov/gcc_4_7.c
> +++ b/kernel/gcov/gcc_4_7.c
> @@ -13,6 +13,7 @@
>   */
>  
>  #include <linux/errno.h>
> +#include <linux/module.h>
>  #include <linux/slab.h>
>  #include <linux/string.h>
>  #include <linux/seq_file.h>
> 


-- 
~Randy

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ