Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6009097pxb; Mon, 14 Feb 2022 13:02:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4fYBFHiVr3wXKj5kNWvNB2LIB8qWMV2CXsRPxM/i+bJUYmHe4OQ+npSrtfKLWlV1RdIiV X-Received: by 2002:a65:4088:: with SMTP id t8mr722674pgp.241.1644872565653; Mon, 14 Feb 2022 13:02:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644872565; cv=none; d=google.com; s=arc-20160816; b=rs8BuWmEbOzQMmmMKA4tSoHJiPFfQzJ98MVoEH+0aDENpNfsWlYJxa7N5zgynl5rVC 6V8xVTbrUqjLv0ULzcq9iOTMiFLFT1A4lor+3DKnmiSmimRhh6c9wh2VHkKqGpweueHS AK/FMQgs2AtLUIjPP7YwQBSyi7pmvlYBtWvzEE4Ep65IBFLyxsYjBMVdS8CdC9S10t+x kVD1BCD7e2DBDmoS0XDmU9Gj6WKtOJipIjIf5fTns5DjR18Pfsu4P8EMnO8Tc0Xdoz2t y/ZThmJLVjQMzwzLQKM8N7s7u/9VreGN819BUHC5JZzKTgr1vL4VgiR6rkjnatVVVxmf Bt4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=COv/JfRRrIlYexTxxYlC5EFg8w0U7LpqChTxU8wlLIc=; b=reQ1wf/5LpFajB8FrrAhFLa6QZOWTXu8uhODr6P+6vA6NncrCTPCXL6SYm4DfumA+Z zo8jZhGhyTYnVn/V5LT9uB8kK8fOEpdo37oM5iMQ34i70EPHtD5LLdxake1TuyncZZbc mBJx5GSwXZzKXtkNnjjs32UPAvKcEQmOkOTnKnHAU45e+olJiKs8OfBMHE1g4Ex+Ij1a Zbk8uqYSgVCPRRXyGCZs0rpswGfQY1mPIFxwzHT82V5pupHe7vcU/g5rjrSmYBK5xu/P plTNKPxFXABt3eUHnSJnqlVbbbmXnH1uAyOJk60zP/Gpv8c4YVCwY1BeBZ7u68ryRVwM nQNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hvyUrRjt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v14si767171pgk.382.2022.02.14.13.02.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 13:02:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hvyUrRjt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 46670136863; Mon, 14 Feb 2022 12:24:36 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245102AbiBNRc4 (ORCPT + 99 others); Mon, 14 Feb 2022 12:32:56 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231965AbiBNRcz (ORCPT ); Mon, 14 Feb 2022 12:32:55 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 898876540A for ; Mon, 14 Feb 2022 09:32:46 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id l67-20020a1c2546000000b00353951c3f62so11351227wml.5 for ; Mon, 14 Feb 2022 09:32:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=COv/JfRRrIlYexTxxYlC5EFg8w0U7LpqChTxU8wlLIc=; b=hvyUrRjtSeyQHJIt6u+50oogQzvKDNbcd+ORZ89zqwkqc/9xQMmJJFtDwFBzeSfZhj pOOumU2YQseakVQCCfLEthFfGYpgUmTui2yDc6HxkkiN3rKQV+Sa+HhnU4Quu/V6s+IY z25KYKjwRj5Xk+UeHJWF8PTcBypbUmRqIn6Nm0VUrBxIl5yvEXHTdic/R3RgVlLwk5r0 SXYdvBaWEQOlcGcRkZkARuvlH/vUaNcChvf+PNZlCUmbhwMMJhZS3bx4IT386SuyoitZ 7n/+7d3s1ZGFh7Jta6dFt55hv8qinp9wQ4N0byX3xniq6wdkgci8vX+9QFd0oxWhg3/x TC9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=COv/JfRRrIlYexTxxYlC5EFg8w0U7LpqChTxU8wlLIc=; b=4fU/fNySPmbyqXsIxB6mXeUaUSLhoBgFN19DfBONMh3H/4j+3z0J0fmF0fevRpu//G mLal5A9ajtKZttmVMiQtUiPX+sB64eD90bs5fG5RXNgI5R2L2l3LoAWFyQAQ/l/MTHhn R/8kyVsFKgllGzZ3alYnHH3/EilCZPj5VJ0FIGXjI8NeImWXtmDfn6x3tdWqROUBGKGg LEoPjbfQr/BxAi6sDDyH4RxvBDF0yOZnpR/Ml3XVXavDp5ZVpH4KWxT/5BL4wHbKM8K7 MR90sVY/KK4wWOEtXMXajrfLcar4dlPylngL2EI3Alk9KxGZQrO3bcjguMMJGWal54gn gYcg== X-Gm-Message-State: AOAM532CjVC8j3UvSpcMGjaCGk+Hq7w0smT2ch8Omwndm8Ik0jnxAgLR vN8d5BGXd1C6OSsGe5b+IA== X-Received: by 2002:a05:600c:1c03:: with SMTP id j3mr6316373wms.106.1644859965155; Mon, 14 Feb 2022 09:32:45 -0800 (PST) Received: from localhost.localdomain ([46.53.254.86]) by smtp.gmail.com with ESMTPSA id a18sm26871528wrg.13.2022.02.14.09.32.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 09:32:44 -0800 (PST) Date: Mon, 14 Feb 2022 20:32:43 +0300 From: Alexey Dobriyan To: bp@suse.de Cc: linux-kernel@vger.kernel.org, peterz@infradead.org Subject: [PATCH] x86, alternative: bump MAX_PATCH_LEN Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replacement instructions are raw data, there is no need to reserve space for the NUL terminator. Signed-off-by: Alexey Dobriyan (CloudLinux) --- 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;