Skip to contentSkip to conversation

x86, alternative: bump MAX_PATCH_LEN

PATCH New Alexey Dobriyan 1 participant 1 message Feb 14, 2022 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86, alternative: bump MAX_PATCH_LEN

Replacement instructions are raw data, there is no need to reserve space for the NUL terminator.

---

 arch/x86/kernel/alternative.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/alternative.c +1 -1
@@ -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;