[<prev] [next>] [day] [month] [year] [list]
Message-ID: <YgqSOyubItnEVRQK@localhost.localdomain>
Date: Mon, 14 Feb 2022 20:32:43 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: bp@...e.de
Cc: linux-kernel@...r.kernel.org, peterz@...radead.org
Subject: [PATCH] x86, alternative: bump MAX_PATCH_LEN
Replacement instructions are raw data, there is no need to reserve
space for the NUL terminator.
Signed-off-by: Alexey Dobriyan (CloudLinux) <adobriyan@...il.com>
---
arch/x86/kernel/alternative.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -35,7 +35,7 @@ int __read_mostly alternatives_patched;
EXPORT_SYMBOL_GPL(alternatives_patched);
-#define MAX_PATCH_LEN (255-1)
+#define MAX_PATCH_LEN 255
static int __initdata_or_module debug_alternative;
Powered by blists - more mailing lists