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: <eda3af4a-8dfe-4f82-a934-2d0256b754e2@sirena.org.uk>
Date: Wed, 21 May 2025 14:03:37 +0100
From: Mark Brown <broonie@...nel.org>
To: Thomas Weißschuh <linux@...ssschuh.net>
Cc: Willy Tarreau <w@....eu>, Shuah Khan <shuah@...nel.org>,
	linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org
Subject: Re: [PATCH 1/9] tools/nolibc: move ioctl() to sys/ioctl.h

On Thu, May 15, 2025 at 09:57:47PM +0200, Thomas Weißschuh wrote:
> This is the location regular userspace expects this definition.
> 
> Signed-off-by: Thomas Weißschuh <linux@...ssschuh.net>

This is in -next as b8c436bbef0f2a and breaks the build of all the arm64
selftests using nolibc: 

clang --target=aarch64-linux-gnu -fintegrated-as -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \
	-static -include ../../../../include/nolibc/nolibc.h \
	-ffreestanding -Wall tpidr2.c -o /home/broonie/git/bisect/tools/testing/selftests/arm64/abi/tpidr2 -lgcc
In file included from <built-in>:1:
In file included from ./../../../../include/nolibc/nolibc.h:100:
./../../../../include/nolibc/sys/ioctl.h:8:10: fatal error: 'nolibc.h' file not found
    8 | #include "nolibc.h"
      |          ^~~~~~~~~~
1 error generated.

This happens because:

> +++ b/tools/include/nolibc/sys/ioctl.h
> @@ -0,0 +1,29 @@
> +/* SPDX-License-Identifier: LGPL-2.1 OR MIT */
> +/*
> + * Ioctl definitions for NOLIBC
> + * Copyright (C) 2017-2021 Willy Tarreau <w@....eu>
> + */
> +
> +/* make sure to include all global symbols */
> +#include "nolibc.h"

assumes that the nolibc include directory is in the include path, or
otherwise set up with a -I path, previously you just had to include
nolibc.h with the includes that are there working due to being relative
to nolibc.h.  I'll send a patch for the arm64 tests.

It looks like the RISC-V selftests are also impacted, I didn't spot any
other users that didn't already have an -I.

Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ