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-next>] [day] [month] [year] [list]
Message-ID: <cover.1741975349.git.jpoimboe@kernel.org>
Date: Fri, 14 Mar 2025 12:28:58 -0700
From: Josh Poimboeuf <jpoimboe@...nel.org>
To: x86@...nel.org
Cc: linux-kernel@...r.kernel.org,
	Peter Zijlstra <peterz@...radead.org>,
	Brendan Jackman <jackmanb@...gle.com>,
	Nathan Chancellor <nathan@...nel.org>
Subject: [PATCH 00/13] Fail the build on objtool warnings

Add an option to fail the build on objtool warnings, and enable it by
default except for CONFIG_COMPILE_TEST.

This is long overdue, probably the only reason we didn't do it before
(other than lack of time) was because there are still some obscure
warnings out there, especially once KCOV and sanitizers get added to the
mix.

But those are mostly bot issues, the main concern for objtool warnings
is actual real live kernels.  Hopefully the !COMPILE_TEST guard will
avoid too much wreckage for now.


Josh Poimboeuf (13):
  x86/traps: Make exc_double_fault() consistently noreturn
  objtool: Fix error handling inconsistencies in check()
  objtool: Improve __noreturn annotation warning
  objtool: Update documentation
  objtool: Increase per-function WARN_FUNC() rate limit
  objtool: Remove --unret dependency on --rethunk
  objtool: Consolidate option validation
  objtool: Upgrade "Linked object detected" warning to error
  objtool: Add --output option
  objtool: Add --Werror option
  objtool: Change "warning:" to "error:" for --Werror
  objtool: Create backup on error and print args
  objtool: Add CONFIG_OBJTOOL_WERROR

 arch/x86/kernel/traps.c                 |  18 +-
 lib/Kconfig.debug                       |  12 ++
 scripts/Makefile.lib                    |   1 +
 tools/objtool/Documentation/objtool.txt | 105 ++++++------
 tools/objtool/builtin-check.c           | 212 ++++++++++++++++++------
 tools/objtool/check.c                   |  60 +++----
 tools/objtool/elf.c                     |   3 -
 tools/objtool/include/objtool/builtin.h |   3 +-
 tools/objtool/include/objtool/elf.h     |   2 +-
 tools/objtool/include/objtool/warn.h    |  20 ++-
 tools/objtool/objtool.c                 |  78 +--------
 tools/objtool/orc_dump.c                |   7 +-
 12 files changed, 290 insertions(+), 231 deletions(-)

-- 
2.48.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ