Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp768149pxp; Fri, 11 Mar 2022 14:36:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrzlJhnkR4kvJ7yNoxJvWWiq40Lkv5TgFRzD0mmWg/aOOVJhUh/UYqEDMg6ngcE2PXOXgG X-Received: by 2002:a17:902:8306:b0:14f:a386:6a44 with SMTP id bd6-20020a170902830600b0014fa3866a44mr12478214plb.140.1647038200562; Fri, 11 Mar 2022 14:36:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647038200; cv=none; d=google.com; s=arc-20160816; b=YOvPywEnBLt8ue5TuaMpXti0DwXml8xEb6upRed33oMa5+JDwgJuQHr8GVvknLLIgX N3shLAJPChbeL0mxRo/pKPzsUGOlKE2TdxwcDfGzueNtBosifgYhTbq10qe3bLnwl46S UIcZ9wLwpERAESaE6n/IiMa/Sm3nIzy9Y5hOD/l6BX81B1KE3RZxoITu6773hK4bm0Ro oiuAb3buaiHRNM8ZsVJVTN8UlAGISBrO3NEK2NSNZ552zBRJn5Z99nGzDe3Ghd7NP1uu 2OYr1j8KwnV8/BRfJ5BWeJhZt01xXRDRK7z8O4hIl5irxvXZSpVf9HbiADtW6oxxdHzV wqiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=boKU/a4CJ2ryMq3B7IEVcU17hRGdK89wnwI0kITSIaA=; b=azWCO8EG8MVMj7dyiA0f4H0nZQ8MVYhUoXkbFVpIkifn4/bBhxdx4/T+UFLtQLhz0v mO7MAverQMDfAkkwCF8wAcV2fdYWQqBcuAjph3apuQw0tcBOHMXW4pDfyT0ca3n1J8Qa IM8vNZxYO8qDB6tHthi3fVM4lf1grth6RwbIctQYwDnC0SBfnTUgiMGs/IMpzb5NO7yF btXVwgOhDfQU9HqXxaY1TCtT2SGud1i1RJiztQZp0ivHiacA27X4LOCy3hiVosCcwNI0 MIbXFkOqPWKXpNfj/I+IiaMTOo7E9DqupgScqURJOxdw5qUtAwqAwI4bgLPQTomP+UoP YdMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=arspGena; 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 q85-20020a632a58000000b00380228791e0si8785217pgq.40.2022.03.11.14.36.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:36:40 -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=arspGena; 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 27B2B246344; Fri, 11 Mar 2022 13:42:13 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349423AbiCKOo7 (ORCPT + 99 others); Fri, 11 Mar 2022 09:44:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350334AbiCKOoe (ORCPT ); Fri, 11 Mar 2022 09:44:34 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33550142361 for ; Fri, 11 Mar 2022 06:43:28 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id j26so13309535wrb.1 for ; Fri, 11 Mar 2022 06:43:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=boKU/a4CJ2ryMq3B7IEVcU17hRGdK89wnwI0kITSIaA=; b=arspGenadkzN9DuF1gN5kaWrpN55uLvOiAnuidC0K8+XtXsS1Lyl4+SgL2eNTT+1mh LQdjR3PLji0YYvGFT9OGpYrWGYj9mJngin+gXHgChskdl3W/d1oKKd78fINbWQOIYPVy Svs37AondZ6JZzMc8WmWte6gBwx88/ytMU/xyfLr9TQmeZVo4g0kcvoK97ge4Nj4rKLg d4thwkWknCmU5ou2vWkGl+ZVoSLY+NYCGfHmp/ThfHhfxcBFMCYlOeMMKSQwLArgacG3 mU+QIewkRCCuyFcsX0GUPyeknO71xi82txCfQRZR9WJGUzT+5mB+LUIICCmYAcrKX1bR qrSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=boKU/a4CJ2ryMq3B7IEVcU17hRGdK89wnwI0kITSIaA=; b=kop10Kju+beNWxupPaXIR/2SxvCMXvmD2DFILTrj9P3lL02x8JS1X050u0GhBa3fYY rEyB5ZAekgkmRWtujHH46YzjsYpTr2tzfdhNQXlUDJG1mn4NLwxm9UdnsNFtzYnXfwqO MTfKofCoQo4/Z8jzrehKJQITwGjHZc48s6DVifS73nesrLZV2DeDXoF2LColmO+cQ70E OzLkQ9lbPocXe2vFVNhBqawPcY5UBIOwk5A+apfSstzQPDSICqJ3nbkeRicPuSeLOboF S9WOd31k9EW+rIcQEpptNVIzSENNpDj9HBfY8MJkJxqmgR8cDcn2c96YTzvYB/PfpXBr smbw== X-Gm-Message-State: AOAM533Z6v2mDBAaZQ0khs8+ceMp1WjcYC+vr86iVVJk8GOT54d2ykQn vQKPAUpIxTsapnb/C1RAMQ== X-Received: by 2002:adf:d21a:0:b0:1f0:2598:bace with SMTP id j26-20020adfd21a000000b001f02598bacemr7401572wrh.132.1647009806790; Fri, 11 Mar 2022 06:43:26 -0800 (PST) Received: from localhost.localdomain ([46.53.250.95]) by smtp.gmail.com with ESMTPSA id e20-20020adfa454000000b001f01a14dce8sm6877637wra.97.2022.03.11.06.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 06:43:26 -0800 (PST) From: Alexey Dobriyan To: x86@kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, linux-kernel@vger.kernel.org, adobriyan@gmail.com Subject: [PATCH 2/5] x86/alternative: bump MAX_PATCH_LEN Date: Fri, 11 Mar 2022 17:43:09 +0300 Message-Id: <20220311144312.88466-2-adobriyan@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220311144312.88466-1-adobriyan@gmail.com> References: <20220311144312.88466-1-adobriyan@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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(-) diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index 6c9758ee6810..1e6fd814dd08 100644 --- 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; -- 2.34.1