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: <20181129154731.4e5c0f9f@cakuba.netronome.com>
Date:   Thu, 29 Nov 2018 15:47:31 -0800
From:   Jakub Kicinski <jakub.kicinski@...ronome.com>
To:     Yonghong Song <yhs@...com>
Cc:     <ast@...com>, <daniel@...earbox.net>, <netdev@...r.kernel.org>,
        <kernel-team@...com>
Subject: Re: [PATCH bpf-next v2] tools/bpf: make libbpf _GNU_SOURCE friendly

On Thu, 29 Nov 2018 15:31:45 -0800, Yonghong Song wrote:
> During porting libbpf to bcc, I got some warnings like below:
>   ...
>   [  2%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/libbpf.c.o
>   /home/yhs/work/bcc2/src/cc/libbpf/src/libbpf.c:12:0:
>   warning: "_GNU_SOURCE" redefined [enabled by default]
>    #define _GNU_SOURCE
>   ...
>   [  3%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/libbpf_errno.c.o
>   /home/yhs/work/bcc2/src/cc/libbpf/src/libbpf_errno.c: In function ‘libbpf_strerror’:
>   /home/yhs/work/bcc2/src/cc/libbpf/src/libbpf_errno.c:45:7:
>   warning: assignment makes integer from pointer without a cast [enabled by default]
>      ret = strerror_r(err, buf, size);
>   ...
> 
> bcc is built with _GNU_SOURCE defined and this caused the above warning.
> This patch intends to make libpf _GNU_SOURCE friendly by
>   . define _GNU_SOURCE in libbpf.c unless it is not defined
>   . undefine _GNU_SOURCE as non-gnu version of strerror_r is expected.
> 
> Signed-off-by: Yonghong Song <yhs@...com>

Acked-by: Jakub Kicinski <jakub.kicinski@...ronome.com>

FWIW :)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ