From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.169 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796417946; b=u3Tpk2RJdmj4RGpvWVUDDnnO4tc19/SiE7CIjvIFYsyi0Luk7whZTsvDAnrhbzTeZHfz jk5pPlgn4aM5820PGTnmmjc3L2/8p3JMqLmHJiLs/R3K+pFF29Bp4JFw6tHNt0lAmMvvF KxB47Qr6gIdY+9RfGsHnXO0AlgH2UEoL9lJ2OzjF5wq2AL/qI6wstD3UFrKOlgv+DUrak THz+ZySFXoLhhYssv/P0dryguUeD3Q41P+jCidndRAgqGUmVParHQpJxIZDzqTr3jSUsE gCdZ8xVre+W5eMLb4TIbpX4smW6/DdlipKjXuGb9pCrlOGBtHeOiaDKywIrgl6nec5g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796417946; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:Message-ID:From:Subject:To:Cc:MIME-Version:Content-Type: Content-Disposition:User-Agent; bh=arVgAMmtq5VRyueRIijJmwx1kxu5LTqcxXucufWYdDc=; b=OV2to2zq6hRpH6OBGSGFOuZcp/dE68M/ATUQERYaD+OguqH5ljcu5YBl+PzEPkr8ldUe A+tADWYqahu0VQaGoepwcEe5WoN642M6JtaYc3frgtDXTkRmSfi/BCNdjYH/kGE+NEcKY eJbNNQ6Rx7qh4OPK0ii81ZeOEjfyHPNkxhfXgSAAeYxeAYkgqLqTWZ04X7V8ocxaCzgpc DSwtr5+Q5KOXbFKl3z2V0mzj/IQJvXAJ+QusPIdx68yFstK+j3/f4k22nfGwfa3jEZ2vI UTsga2PRE70iN0h2paGBp+M54AUXKBSF0lPxxqd1HOmw/pPMeOObfoBs/br3X4xvHnA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=chrisdown.name; spf=pass smtp.mailfrom=chrisdown.name; dkim=pass header.d=chrisdown.name header.i=@chrisdown.name header.a=rsa-sha256 header.s=google header.b="ZDmI//LW"; arc=none smtp.remote-ip=209.85.128.169 Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8492606A338 for ; Fri, 4 Dec 2026 20:59:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D8492606A338 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=chrisdown.name Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chrisdown.name Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chrisdown.name header.i=@chrisdown.name header.a=rsa-sha256 header.s=google header.b=ZDmI//LW Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-8b503e2a87bso14272677b3.3 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=vger.kernel.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=ZDmI//LWWo+HRVaJ7SOq+ElwzWlYGzeEbB7qWL9NLYZWII5LBwifQZVkCWFzvplkgd /h34CRmyr28MnFA/ra/IJ2du/+CefCtGkpX9v6zsPKlTlMaH96WT7Ar3jtTeq0Z31/Tx 4ZTO8wVNTrFDUjkukBRJovAGkCXN9Ebm2uIq4= 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=n4d4fEDDr+dV20Hy+pNKi+bX9afVBJ1alV5Ap9cJmlO8Ox1G7fFjBxeoKKjbO4a0wB hfi/xVrfbAUBu+v1xKcDi38pdHliH6TvKkYzQsUBeq/fmZ4IFCVyGUM9JPIbyVnOXHX7 BxjZ9F03+IE1oy6iP5/fgQj2x/Bp8nXSz2TXf5ZMXHPwI8j0o3ryrbt7yf44s5bTNE/P BT+g3E7U+a7n1ZMngN0LnAq1zdT0qiyTSeNNMdyPD7GBXxKSjI1NUEgSS5RAL/5dYOf4 SP4+GeL/iijDiFWM0s1IpDgsJP4J4j4Hzsc58YXpQN0W6cBuTApxMg/W+7kbFJiUqYP3 ExBQ== X-Forwarded-Encrypted: i=1; AL+hErFBqNiAFnPzERyDQvyMcWwXqFgHL3X/bOV0t+uJQexbL8J+gDbol0XsoheBi+mMroJGWmmPTJa4BQg=@vger.kernel.org X-Gm-Message-State: AB4q+uFNYSwe9e1ojDP4KRABMnhc+zP+jrcUDckR7n/SM+EkKohSjVtl ogvBGSdqZcpAdgvrMxIXinsWm6dyFvorCIlNwh0/BOsqXqklN+lDvrBa6lfUdYIjv2I= X-Gm-Gg: AZFdTZdcQD0usIMLWtqgKcbjt0bmhLZ/sV9dvVBA+vyWHG4adYJ57Njg/OT2Oe7AywJ mNEb/HIKPAHfXsHx9NLGagaan/98khwab+Bb3n3+M/zPOUXVdP83x50fyVpPHEt3pB1rLrHGUrz 5C0JDWUJTr/+SIcr2sLIkTMKg4Y++YZ8FAnOp5pB0NKUNT6cnFqnoPyohWXxGUbhuENhz6Rfkcg mtQam7hxPMQXmmR4PfEkX9fMF+kdLNYCSpaB7aJDtsAIhyqiI9Sp9yzXg5PbXs95LGNBfCkwY1F uQaRanlF2S9wsHOX0Z3yydoIGkFnYdB+IDAcZqPPOkn9rX7yJM3kOJnHApMBrqd3WMJg0tIj5c1 Az0juNH3B7jTkhSbOU6WiMufpiGAGT44XefpbJ14GfVfpAJiP+zSsHgVXu4AWuio9Y2OAV79q9d mUVizIdQVI5Tu5FnPPdJ5hIfBkBOLcNmqD8XapkPRdGL1P1qbf4ceaShnh4PpaHEORPTL5bNbyg HqX94A97RyypSpZfbZuCgv9/PvjShbBqtVLcKY8qkUSsNFh49JvX9jVAh37sIR9W0ZDLDjFT7CE cJYqZ4AGiGO/HjUPWyOlvxwVWRLmwbmwPLX+0tV14Bl53hsgjO4USmSZ2B7gajrRbWdYu18DjY2 zlyj1+Fki2YNjPJfsEIuvE6dlggsLulTTRtcpH6O3IBaiYZ6lnJnmwQoUDkptyByZoiJRMlACbK J64FCqs39b5c2YI49y86xiD5iHjki2GLWjvIz55/kZii4u/uVMD4IFw1EGB/7RRNlEnA5FwHy35 WCTclyEb6kNmd5fqigkZSw= 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-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/2.4.3 (cc9e3943) (2026-10-09) 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