From 609d779ffd8f9516393789dd3dfd8397ab5b449a Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 28 Feb 2025 14:21:03 +0800 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@gnu-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@gnu-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 --- 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