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] [day] [month] [year] [list]
Message-ID: <lnq5canqlg62lga2bxzihu6ufelvytwwbrm4taihzewrpevfac@cncvdlbxc73r>
Date: Tue, 18 Feb 2025 17:03:20 +0800
From: Shung-Hsi Yu <shung-hsi.yu@...e.com>
To: Michal Suchánek <msuchanek@...e.de>
Cc: linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org, 
	Michael Ellerman <mpe@...erman.id.au>, Madhavan Srinivasan <maddy@...ux.ibm.com>, 
	Nicholas Piggin <npiggin@...il.com>, Christophe Leroy <christophe.leroy@...roup.eu>, 
	Naveen N Rao <naveen@...nel.org>, Nathan Chancellor <nathan@...nel.org>, 
	Nick Desaulniers <ndesaulniers@...gle.com>, Bill Wendling <morbo@...gle.com>, 
	Justin Stitt <justinstitt@...gle.com>, Segher Boessenkool <segher@...nel.crashing.org>, 
	Vitaly Chikunov <vt@...linux.org>, Abhishek Dubey <dubeyabhishek777@...il.com>, 
	Yonghong Song <yonghong.song@...ux.dev>
Subject: Re: [PATCH 1/1] powerpc: use __clang__ instead of CONFIG_CC_IS_CLANG

On Tue, Feb 18, 2025 at 08:54:03AM +0100, Michal Suchánek wrote:
> Hello,
> 
> how does this happen?
> 
> On Tue, Feb 18, 2025 at 12:48:01PM +0800, Shung-Hsi Yu wrote:
> > Due to include chain (below), powerpc's asm-compat.h is part of UAPI,
...
> >   include/uapi/linux/ptrace.h
> >   arch/powerpc/include/asm/ptrace.h
> 
> There is arch/powerpc/include/uapi/asm/ptrace.h
> 
> and if the installed header is used this is what should be included.
> 
> That does no include other asm headers.

Ah. Then asm-compat.h not, my bad.

I thought bcc[1] was pulling the kernel headers like a userspace
program, but it's actually pulling them in as if building a kernel
module, thus include path has arch/powerpc/include/asm/ptrace.h before
arch/powerpc/include/uapi/asm/ptrace.h[2].

> Thanks
> 
> Michal
...

1: https://github.com/iovisor/bcc
2: https://github.com/iovisor/bcc/blob/5bc97bb/src/cc/frontends/clang/kbuild_helper.cc#L81-L120

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ