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: <174246126447.14745.7024307702923339978.tip-bot2@tip-bot2>
Date: Thu, 20 Mar 2025 09:01:04 -0000
From: "tip-bot2 for Ard Biesheuvel" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: syzbot+06fd1a3613c50d36129e@...kaller.appspotmail.com,
 Ard Biesheuvel <ardb@...nel.org>, Ingo Molnar <mingo@...nel.org>,
 Masahiro Yamada <yamada.masahiro@...ionext.com>,
 Michal Marek <michal.lkml@...kovi.net>, Brian Gerst <brgerst@...il.com>,
 Uros Bizjak <ubizjak@...il.com>, "H. Peter Anvin" <hpa@...or.com>,
 x86@...nel.org, linux-kernel@...r.kernel.org
Subject: [tip: x86/core] gendwarfksyms: Define __GENKSYMS__ when processing
 <asm/asm-protoypes.h>

The following commit has been merged into the x86/core branch of tip:

Commit-ID:     fb3135208f688c5cab7d05e3a0d229935ee7611a
Gitweb:        https://git.kernel.org/tip/fb3135208f688c5cab7d05e3a0d229935ee7611a
Author:        Ard Biesheuvel <ardb@...nel.org>
AuthorDate:    Thu, 20 Mar 2025 08:07:47 +01:00
Committer:     Ingo Molnar <mingo@...nel.org>
CommitterDate: Thu, 20 Mar 2025 09:48:49 +01:00

gendwarfksyms: Define __GENKSYMS__ when processing <asm/asm-protoypes.h>

Ensure that __GENKSYMS__ is #define'd when passing <asm/asm-prototypes.h>
through the compiler to capture the exported symbols. This ensures that
exported symbols such as __ref_stack_chk_guard on x86, which is declared
conditionally, is visible to the tool.

Otherwise the build might break when CONFIG_GENDWARFKSYMS=y:

  <stdin>:4:15: error: use of undeclared identifier '__ref_stack_chk_guard'

Reported-by: syzbot+06fd1a3613c50d36129e@...kaller.appspotmail.com
Signed-off-by: Ard Biesheuvel <ardb@...nel.org>
Signed-off-by: Ingo Molnar <mingo@...nel.org>
Tested-by: syzbot+06fd1a3613c50d36129e@...kaller.appspotmail.com
Cc: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: Michal Marek <michal.lkml@...kovi.net>
Cc: Brian Gerst <brgerst@...il.com>
Cc: Uros Bizjak <ubizjak@...il.com>
Cc: "H. Peter Anvin" <hpa@...or.com>
Link: https://lore.kernel.org/r/20250320070746.101552-2-ardb+git@google.com
---
 scripts/Makefile.build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 993708d..7855cdc 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -305,6 +305,7 @@ $(obj)/%.rs: $(obj)/%.rs.S FORCE
 getasmexports =								\
    { echo "\#include <linux/kernel.h>" ;				\
      echo "\#include <linux/string.h>" ;				\
+     echo "\#define  __GENKSYMS__" ;					\
      echo "\#include <asm/asm-prototypes.h>" ;				\
      $(call getexportsymbols,EXPORT_SYMBOL(\1);) ; }
 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ