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: <CAMe9rOqRRv-pW1GGV5YNA3O6FADLWzg5SzwyaJ-_7fJTB7dCsw@mail.gmail.com>
Date: Fri, 28 Feb 2025 15:03:21 +0800
From: "H.J. Lu" <hjl.tools@...il.com>
To: LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] x86: Increase buffer size in insn_decoder_test.c to 4KB

When building Linux kernel v6.13 on Fedora 41 with GCC 14.2.1, I got

  TEST    posttest
arch/x86/tools/insn_decoder_test: error: malformed line 3729972:
2_>:ffffffff81c91b00
make[2]: *** [arch/x86/tools/Makefile:26: posttest] Error 3

[hjl@...-zen4-1 linux-stable]$ cat 1.out
<__pfx__RNCINvNtNtNtCsbv2001LzuKJ_4core4iter8adapters3map12map_try_foldjNtCs7hQOShE0J6s_12drm_panic_qr7VersionuINtNtNtBa_3ops12control_flow11ControlFlowB10_ENcB10_0NCINvNvNtNtNtB8_6traits8iterator8Iterator4find5checkB10_NCNvMB12_B10_13from_segments0E0E0B12_>:ffffffff81c91b00
ffffffff81c91b00: 90                    nop
ffffffff81c91b01: 90                    nop
ffffffff81c91b02: 90                    nop
ffffffff81c91b03: 90                    nop
ffffffff81c91b04: 90                    nop
ffffffff81c91b05: 90                    nop
ffffffff81c91b06: 90                    nop
ffffffff81c91b07: 90                    nop
ffffffff81c91b08: 90                    nop
ffffffff81c91b09: 90                    nop
ffffffff81c91b0a: 90                    nop
ffffffff81c91b0b: 90                    nop
ffffffff81c91b0c: 90                    nop
ffffffff81c91b0d: 90                    nop
ffffffff81c91b0e: 90                    nop
ffffffff81c91b0f: 90                    nop
[hjl@...-zen4-1 linux-stable]$ arch/x86/tools/insn_decoder_test -y -v < 1.out
arch/x86/tools/insn_decoder_test: error: malformed line 1:
2_>:ffffffff81c91b00

This patch from Red Hat increasing buffer size in insn_decoder_test.c to
4KB fixed:

https://bugzilla.kernel.org/show_bug.cgi?id=219729

Signed-off-by: H.J. Lu <hjl.tools@...il.com>
---
 arch/x86/tools/insn_decoder_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/tools/insn_decoder_test.c
b/arch/x86/tools/insn_decoder_test.c
index 472540aeabc2..366e07546344 100644
--- a/arch/x86/tools/insn_decoder_test.c
+++ b/arch/x86/tools/insn_decoder_test.c
@@ -106,7 +106,7 @@ static void parse_args(int argc, char **argv)
  }
 }

-#define BUFSIZE 256
+#define BUFSIZE 4096

 int main(int argc, char **argv)
 {
-- 
2.48.1

-- 
H.J.

View attachment "0001-x86-Increase-buffer-size-in-insn_decoder_test.c-to-4.patch" of type "text/x-patch" (2289 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ