From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.45 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796417946; b=gY9LHVjLHTsRzNrZJhBsLS8oo3OoO8lDOc23CcMVui3WdUK6hMFcgmvWO7DzR0f+B5OO K6x62IJGV8SM/Zj8AakWyni/hfsQJq40ZM+KItikpws0SEFpGX15uQBGMAbGCSfSjkcmR XdQbdCqKvXsOyoMwASJfn2poxBEj5y8ne0cuQkRkZcC46n2Vj3kpNA1ZLrSlvI61aIEDU z1H+OW0Z/5gnDWO9G5aBY8+3c038PgICiS+NMDzNlnb/6pehnrDI5IDvP93ajvRkBorBj xq1LjJZoNhXDCignCOjYjUyoNMTJhnqpouV4amKXTo7P+LdDhFg/QOPaUOdIVgxlhTg== 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=5DKwklgpmCDXLKwZAniRAMyovo4GBcJVPpHcijESkoWpr3imxDtS/43MZwPSu9HLl6LP Fdby1gjYhajO8+bZlfcQ2GQRSgBc+1uTyw2IDbcUwzIe6CGZWfdQJxPzbTo11ebcz+l+q 7yOt2z/+OkjLScFfIdVo2JY5sQYCOObJbAL87cXkwOvQz29bhhpxzcjD6UhLvOXbIxGPW IxZAEz4/9mGroQ9CCtdAki/DDdImNrYi10HjcOxZ3Vibtm2FXqRye3vMjTBxfB8IIoUzq WLpNWhQj6kQ1CXNkB7CFQKolWo4HqMUPxBRwB/UlkZr4WP7sGDCsna2ykzDbCZXwkZg== 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=74.125.224.45 Received: from mail-yx1-f45.google.com (mail-yx1-f45.google.com [74.125.224.45]) (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 D0A61606A337 for ; Fri, 4 Dec 2026 20:59:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D0A61606A337 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, unprotected) header.d=chrisdown.name header.i=@chrisdown.name header.a=rsa-sha256 header.s=google header.b=ZDmI//LW Received: by mail-yx1-f45.google.com with SMTP id 956f58d0204a3-67c24619b19so1293637d50.2 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=2OAqD+rrvXvoo3Ly0yfTn2f6M6j6tVOe37GQ3zoJkGC5h+Ty9YFjIjOOsW5qdV625Z I13RAwOxVe9DrtzlQZdsrCg3GQyUJTdzvTHnI8vBTdoTKYw0rD7Iy8P7NCGAIs0hNtg2 UljsiRz6U2RX6bRWo8tNvrkkTab9bgnvrvfiwLviPe2flHRBZ6P8iJC09ZB0pleuJ8Lc NeTAXWxxz/XRw1M7i52VTtB/D/HeQ0loeBezF1PpPg6fyBda1o01iaKdanOy0px+Q5YU sQHW9Ztd5q1AnD4eWe5zxxVQCl47pS8ZpCmzQog8LBYUxIhBvVZRSlC2onS3PX2tlTOI hsEA== X-Forwarded-Encrypted: i=1; AL+hErEmoyTy4z/s/PoYyIZnzUhcgzwR3Yx2yC1STkN1eiJhm7ZXOxiI77scSIq8bQ2ZA2WChLo4UaE9OL7xqKE=@vger.kernel.org X-Gm-Message-State: AB4q+uFxH442a4wC53wafur6sCRlnQ5/fU2z+A+4K2jqjUFHgkJYoLBg vA/qJo+NL1/eiv4EHc+QGi1ZebZb2YcwNchdah/n3ZNY0wH7vMOVnGaBkLOfn/o+UBQ= X-Gm-Gg: AZFdTZexnYQ2vbERAJcMUIQHBZd9gRhG737qEhAeAKYKrl2vNUMdrqp2/P2hiZPA5A6 iyHzZ+ETErCPdkNAZNiYz2DcdFgPvNS21ZNUgVYQdGo2z0k5NsG3VGNXhASAUUfLfBC6T4i3uON xCmO7Au6/NpIkDzLL8HI+RMKCCpSmXsRhiVg/4fY56V9s/eNuiZXA+LdgNUdFI7hy7+ucrTpT8U adR9oAQTFtff3f+s3FNbSau4YSpgCb82TjqhMPkwNF3AW49RuoxTcpldcCPFHSUwxtFTnPpXdD7 WMVurdtIZB3udYmadW5el7i8GF+Neyp4+KM7jcu4D5xO7aJir7jk/MSM6VuwcC3iXsekF59PLn5 lRgmGgLDxYFz7fqPo30LSTg15u4TS6sO02BxPHqntbwsTc3s7ZTpbFRJde9ONSVEC0ShCMYor4s UK3PrxC2n1kUJwqJVoja2AvIRCxmWfYpABLkVv/b59aWA6PMIaMh5sOWTpirncZIQd4B8MD72TY F2FmC5XBAK4mXwBz1qh5k9dxDFqKiZ5/by3XZcvcKRlKJDcsfEQ2LZBs5PGrooExh5vbZlj3/T+ WaOlW0eArloW9oSlhmvvNLvwkk3UbXDHwz1XBrlqx7OweUfR4biHzmSG1ic/SAgIfLcuKclqSvO d+phheG15AAdRjnK6ONr/rJjxvNPIv5mWBUi/OCHIimVTZ9nPHL6FSsxYUNLLFVpIIwNHr5efJl wtVAHbO1yluhMAPK1eaaYHMXh2xKYMRnPwcqSOEmWS4JGJ9aePmX0mZSBKKC+Kg9y5ktbvRlx+S M5GHwSzDCJjPG9q0O1Jk+Q= 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-kernel@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