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>] [day] [month] [year] [list]
Message-ID: <927f7547-ae55-474c-b211-24854bd988c9@paulmck-laptop>
Date: Wed, 11 Jun 2025 09:40:48 -0700
From: "Paul E. McKenney" <paulmck@...nel.org>
To: Christian Brauner <christian@...uner.io>
Cc: linux-kernel@...r.kernel.org, rcu@...r.kernel.org
Subject: Warnings in allmodconfig builds in
 samples/vfs/test-list-all-mounts.c?

Hello, Christian!

Imagine my surprise to learn that "make allmodconfig" builds
of the kernel also build userspace components, including
samples/vfs/test-list-all-mounts.c.  ;-)

On CentOS, "make allmodconfig" gives a zero exit code, but gets the
following warnings:

In file included from samples/vfs/../../tools/testing/selftests/pidfd/../clone3/clone3_selftests.h:8,
                 from samples/vfs/../../tools/testing/selftests/pidfd/pidfd.h:20,
                 from samples/vfs/test-list-all-mounts.c:11:
usr/include/linux/sched.h:114: warning: "SCHED_NORMAL" redefined
  114 | #define SCHED_NORMAL            0
      |
In file included from /usr/include/sched.h:43,
                 from samples/vfs/../../tools/testing/selftests/pidfd/pidfd.h:9,
                 from samples/vfs/test-list-all-mounts.c:11:
/usr/include/bits/sched.h:32: note: this is the location of the previous definition
   32 | # define SCHED_NORMAL           SCHED_OTHER
      |
In file included from samples/vfs/../../tools/testing/selftests/pidfd/../clone3/clone3_selftests.h:8,
                 from samples/vfs/../../tools/testing/selftests/pidfd/pidfd.h:20,
                 from samples/vfs/test-list-all-mounts.c:11:
usr/include/linux/sched.h:137: warning: "SCHED_FLAG_KEEP_ALL" redefined
  137 | #define SCHED_FLAG_KEEP_ALL     (SCHED_FLAG_KEEP_POLICY | \
      |
In file included from /usr/include/sched.h:43,
                 from samples/vfs/../../tools/testing/selftests/pidfd/pidfd.h:9,
                 from samples/vfs/test-list-all-mounts.c:11:
/usr/include/bits/sched.h:51: note: this is the location of the previous definition
   51 | #define SCHED_FLAG_KEEP_ALL             0x18
      |
In file included from samples/vfs/../../tools/testing/selftests/pidfd/../clone3/clone3_selftests.h:8,
                 from samples/vfs/../../tools/testing/selftests/pidfd/pidfd.h:20,
                 from samples/vfs/test-list-all-mounts.c:11:
usr/include/linux/sched.h:140: warning: "SCHED_FLAG_UTIL_CLAMP" redefined
  140 | #define SCHED_FLAG_UTIL_CLAMP   (SCHED_FLAG_UTIL_CLAMP_MIN | \
      |
In file included from /usr/include/sched.h:43,
                 from samples/vfs/../../tools/testing/selftests/pidfd/pidfd.h:9,
                 from samples/vfs/test-list-all-mounts.c:11:
/usr/include/bits/sched.h:52: note: this is the location of the previous definition

But on older Ubuntu, it builds without any warnings.

Is this the sort of problem you would like reported, or should we go
back to looking only at the build's exit code for allmodconfig builds?

							Thanx, Paul

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ