commit: b8288cc8724600c44ed8e281e969623aef421989 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> AuthorDate: Wed Feb 5 17:09:43 2025 +0000 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> CommitDate: Wed Feb 5 17:09:43 2025 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b8288cc8
x86/insn_decoder_test: allow longer symbol-names Bug: https://bugs.gentoo.org/949240 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> 0000_README | 4 ++ ...sn-decoder-test-allow-longer-symbol-names.patch | 49 ++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/0000_README b/0000_README index 7b1940a4..59bf41fa 100644 --- a/0000_README +++ b/0000_README @@ -59,6 +59,10 @@ Patch: 1730_parisc-Disable-prctl.patch From: https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git Desc: prctl: Temporarily disable prctl(PR_SET_MDWE) on parisc +Patch: 1740_x86-insn-decoder-test-allow-longer-symbol-names.patch +From: https://gitlab.com/cki-project/kernel-ark/-/commit/8d4a52c3921d278f27241fc0c6949d8fdc13a7f5 +Desc: x86/insn_decoder_test: allow longer symbol-names + Patch: 2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch From: https://lore.kernel.org/linux-bluetooth/[email protected]/raw Desc: Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. See bug #686758 diff --git a/1740_x86-insn-decoder-test-allow-longer-symbol-names.patch b/1740_x86-insn-decoder-test-allow-longer-symbol-names.patch new file mode 100644 index 00000000..70c706ba --- /dev/null +++ b/1740_x86-insn-decoder-test-allow-longer-symbol-names.patch @@ -0,0 +1,49 @@ +From 8d4a52c3921d278f27241fc0c6949d8fdc13a7f5 Mon Sep 17 00:00:00 2001 +From: David Rheinsberg <[email protected]> +Date: Tue, 24 Jan 2023 12:04:59 +0100 +Subject: [PATCH] x86/insn_decoder_test: allow longer symbol-names + +Increase the allowed line-length of the insn-decoder-test to 4k to allow +for symbol-names longer than 256 characters. + +The insn-decoder-test takes objdump output as input, which may contain +symbol-names as instruction arguments. With rust-code entering the +kernel, those symbol-names will include mangled-symbols which might +exceed the current line-length-limit of the tool. + +By bumping the line-length-limit of the tool to 4k, we get a reasonable +buffer for all objdump outputs I have seen so far. Unfortunately, ELF +symbol-names are not restricted in length, so technically this might +still end up failing if we encounter longer names in the future. + +My compile-failure looks like this: + + arch/x86/tools/insn_decoder_test: error: malformed line 1152000: + tBb_+0xf2> + +..which overflowed by 10 characters reading this line: + + ffffffff81458193: 74 3d je ffffffff814581d2 <_RNvXse_NtNtNtCshGpAVYOtgW1_4core4iter8adapters7flattenINtB5_13FlattenCompatINtNtB7_3map3MapNtNtNtBb_3str4iter5CharsNtB1v_17CharEscapeDefaultENtNtBb_4char13EscapeDefaultENtNtBb_3fmt5Debug3fmtBb_+0xf2> + +Signed-off-by: David Rheinsberg <[email protected]> +Signed-off-by: Scott Weaver <[email protected]> +--- + 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 472540aeabc23..366e07546344b 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) + { +-- +GitLab +
