From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96E9A606A322 for ; Fri, 4 Dec 2026 20:59:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=QfolNEdA; dkim=pass (1024-bit key) header.d=chrisdown.name header.i=@chrisdown.name header.a=rsa-sha256 header.s=google header.b=VMnmICCQ DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version:Cc :To:Subject:From:Message-ID:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=arVgAMmtq5VRyueRIijJmwx1kxu5LTqcxXucufWYdDc=; b=QfolNEdADtHOMYDLYixC9izByH VvPLKuu3k6/Ch1a2OTWZWsIkwmiYx5/Dv/fSonihAYhRG2nYAq9DmldJu9voKqhOj2ZOroOzBd5Tj aMgBXPNdRjOGMDGhO7/AZTBDhRAWwcZ4HOAIlYH9zgdW1AaPV8AwZJzg2qu4vNmFBEBZoTZLI7dfP 5S9YvHILOJqz0P/JXWgxA6xrnfzWVvFcElJhkmyEMxwp0thXGCxVsU1p8gc8Bj3B/WoA96RRnbDNR 8/s2wSEgmEUMbLSSq6bnTpLyzb1IOQWcITOgvrviaGjCk7w2zM9g+DUPwmIPx6Btk9bVxGaWg3u5R mp9nZsnQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZaNC-00000001Ui9-2fNx; Fri, 04 Dec 2026 20:59:22 +0000 Received: from mail-yx1-xb130.google.com ([2607:f8b0:4864:20::b130]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZaN0-00000001UhA-1uxV for kexec@lists.infradead.org; Fri, 04 Dec 2026 20:59:09 +0000 Received: by mail-yx1-xb130.google.com with SMTP id 956f58d0204a3-67db8985419so1556940d50.1 for ; Fri, 04 Dec 2026 12:59:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; t=1796417945; x=1797022745; darn=lists.infradead.org; h=user-agent:content-disposition:content-type:mime-version:cc:to :subject:from:message-id:date:from:to:cc:subject:date:message-id :reply-to:content-type; bh=arVgAMmtq5VRyueRIijJmwx1kxu5LTqcxXucufWYdDc=; b=VMnmICCQT5qzpU0OLRZup3ZnXfchT5PGC4m22sER/iWO2NDhrpHvD0zOQndsA/Vd2C nCiXcJPNJfEPfrmnfeWMgVgWUKmM05qJciKoNCeZG2B2pHV5g0t0+ey1cRtj64Bq8wB4 N0+pwmK8Zqb1TkA87g6INbwgOQjIc7n0Y+YTk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796417945; x=1797022745; h=user-agent:content-disposition:content-type:mime-version:cc:to :subject:from:message-id:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=arVgAMmtq5VRyueRIijJmwx1kxu5LTqcxXucufWYdDc=; b=q9lk5NTgCAFfTj3L4njVc7Zus+vC7CbNB214D5jZdpPA9sXC2X9F7y+pBDnLQf86hk xnKA2F4DgROBVncdr3UqhxW1TQixaAsOlL8dNKfuCewQsoy1eKvcMs6CwpskKBRxMbVL Dcrk1yIticTSdX7Z3Z2WK554djftexS5JgiI43/rBv2eWyYC7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KBT fYMdXIfCyJPit98l8fAkHNFF6+Ri+fAwNerOJs2+Bjio/ibw9oB5hxIf9bCkOFPr3ii+B1C9+2t XnFKTE7OWvUBh7NB+jNOtd36dq5pUeckaT7KV7Uq79YHVQpDKOyIxrEBozq39ybpLNU3hcfqDp3 iEQ8pW4BPGLRS8Ou2Ukvig= X-Received: by 2002:a05:690c:586:b0:8b1:88ad:1fce with SMTP id 00721157ae682-8b660d93039mr19397297b3.42.1796417944847; Fri, 04 Dec 2026 12:59:04 -0800 (PST) Received: from [172.18.0.2] (c-73-207-185-9.hsd1.ga.comcast.net. [73.207.185.9]) by smtp.gmail.com with ESMTPSA id 00721157ae682-8b660d5c3desm14730127b3.23.2026.12.04.12.59.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 12:59:03 -0800 (PST) Date: Fri, 04 Dec 2026 12:59:01 -0800 Message-ID: From: Chris Down Subject: [PATCH 0/3] crash: Restore 1M crashkernel offsets on x86 and report misaligned ones To: Andrew Morton , Baoquan He , Mike Rapoport Cc: Jonathan Corbet , Shuah Khan , Randy Dunlap , Pasha Tatashin , Pratyush Yadav , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-doc@vger.kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@meta.com X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/2.4.3 (cc9e3943) (2026-10-09) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261204_125906_533351_22D80938 X-CRM114-Status: GOOD ( 13.46 ) X-Spam-Score: -2.1 (--) X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kexec" X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Since v6.7, crashkernel=size@offset on x86 only reserves anything when offset is a multiple of 16M, and the kernel just says that the memory is in use otherwise. Before that, any 1M-aligned offset worked. The result is that unfortunately, some existing crashkernel configs stopped working. Of course, they are in the minority, since usually most sensible people would set it to powers of two above 16M... but anyway. Patch 1 fixes that by asking for 1M alignment again for an explicit offset on x86. This is the one that probably should go to stable, given this is a somewhat unintended behaviour change. Patch 2 reports misalignment, since previously we just write that it failed, with no docs or message to really help the user understand why. The new message gives the alignment the offset has to meet, instead of claiming that the memory is in use. Patch 3 documents the alignment. kdump.rst currently says that a misaligned offset only wastes the memory below the alignment point, but on x86, arm64, riscv and loongarch nothing is reserved at all. Patches 2 and 3 build on patch 1, but don't need to go to stable. Chris Down (3): x86/crash: Reserve crashkernel=size@offset at 1M-aligned offsets again crash: Don't report a misaligned crashkernel offset as memory in use Documentation: kdump: Mention that the crashkernel offset must be aligned Documentation/admin-guide/kdump/kdump.rst | 15 ++++++++++----- Documentation/admin-guide/kernel-parameters.txt | 4 +++- arch/x86/include/asm/crash_reserve.h | 2 ++ include/linux/crash_reserve.h | 3 +++ kernel/crash_reserve.c | 9 ++++++++- 5 files changed, 26 insertions(+), 7 deletions(-) base-commit: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106 -- 2.56.1