Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp79246rdf; Mon, 20 Nov 2023 17:06:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEaIqhydzJ1EQe/5q3hVYXgU3knvt0Qk8D2fY3rw7ppALH0y/KBvuoKxurll/S7dtHa3/Oj X-Received: by 2002:a05:6a20:3ca5:b0:188:290f:3da7 with SMTP id b37-20020a056a203ca500b00188290f3da7mr11555802pzj.14.1700528805422; Mon, 20 Nov 2023 17:06:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700528805; cv=none; d=google.com; s=arc-20160816; b=ObbJIT57DUn1tIEExpZpngw0QeSk1mP34QfKw+G7/tFD7NcrAPDafPJ/zAnDhXtqNk WMOtgdYsTGb1eOI+HReKoJbbNC3Nd7oij1YXxPotbEzUyrNVRbMXBZ2xh7V6bl9Lut2K HZeep6E/zeUqMkt+hU0mbcy6keNDusG9E9xkSA3Z9+52C7VfzWuYffDmb54bAT/vvA0W kTTmBpeLpepc7rMWWIRe6XkW754ntHVIo2R9+Ae0YWz71YRr1rDNwFvoOAVfgs8xVGtR 3b8VbWSFM7peU3i9mIJvhPENEJUtNeOIaRAa9A45FcvZSb08Xpzf94LuLoX1U++cWQll EzVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=a1oDztLoqCcees2awcLjiaomu8bb0ZU8fyFhFCJHT4Y=; fh=GOw6hlFHDI0q2kD22rhsYVDJIOm/cJe1YnGwOcf8nNY=; b=a6DQ0Brogr33K0GauVV3XyOL6hXrbAaiDZj+2W1Q1sYKxdPHYOJtHbLYUrtdsS+1Fb 79bSRRwkS/g8YzNhg14UxiR9HdpInugeux3JWBBC0dCIX4GAAMRqclfFSTspojx+e0Eg ppbXC+spTNu15i/GOcPcMf1i8zHJsPrxvpq0w/ZSUtHhPO1V5uXrkFkjhfKuIIPbmZSP p5KDk0xFWXa5YVFtHij0HzJnrKQqV8x4EIC9pcP1lWScq1c71U8v8y/JUgEatKZ62isj YCaQvyrKbu9208wrBbSHJd1SRxXogDS4hhUL93zF4aIzHgXrO/U0qF82aU6A63UGvPP3 0gQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=oWW1QkZz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id a22-20020a656416000000b00578666614f1si9359794pgv.63.2023.11.20.17.06.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 17:06:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=oWW1QkZz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id DC1E0802F7CF; Mon, 20 Nov 2023 17:06:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232876AbjKUBG2 (ORCPT + 99 others); Mon, 20 Nov 2023 20:06:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230107AbjKUBG1 (ORCPT ); Mon, 20 Nov 2023 20:06:27 -0500 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D83F1BC; Mon, 20 Nov 2023 17:06:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1700528778; bh=a1oDztLoqCcees2awcLjiaomu8bb0ZU8fyFhFCJHT4Y=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=oWW1QkZze+kq8dXCMwzP9xmtsiBPKW/hq5HCmqkQq67lD/f/fkTpd/U8FMenAoeLl J1jHM3vpiqO6+SZ8oTRmtfdXJh/kl4ccKcHX93lWk6Fma5jYDgW+qHGJ9G1c3wWEWD 7wf1DanMy/hBgRK5n8rOjbSflcR7GKDrM1MFeaKqqOQQlvcOByEoS81ZnH8kRCiVRW Sitlo5WEKfvTkyRjxvm6DcVAjGDg3Q0vGj0AeAoNLiUIP8cnYZXsQFMSjypuMtAUTc 2SzMvY2J7oKCYA9k2z45igYP3WpwqyzkKDLwx57xpFYnZrXJC9CTNoEySocvsKn9xW xnByzdpmU0vWQ== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4SZ5mB3sycz4wd7; Tue, 21 Nov 2023 12:06:02 +1100 (AEDT) From: Michael Ellerman To: Ignat Korchagin , eric.devolder@oracle.com Cc: linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, chenhuacai@kernel.org, geert@linux-m68k.org, tsbogend@alpha.franken.de, James Bottomley , deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, Thomas Gleixner , Ingo Molnar , Borislav Petkov , dave.hansen@linux.intel.com, x86@kernel.org, linux-kernel , linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, kernel@xen0n.name, npiggin@gmail.com, christophe.leroy@csgroup.eu, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, hpa@zytor.com, keescook@chromium.org, paulmck@kernel.org, Peter Zijlstra , frederic@kernel.org, Andrew Morton , Ard Biesheuvel , samitolvanen@google.com, juerg.haefliger@canonical.com, arnd@arndb.de, rmk+kernel@armlinux.org.uk, linus.walleij@linaro.org, sebastian.reichel@collabora.com, rppt@kernel.org, kirill.shutemov@linux.intel.com, anshuman.khandual@arm.com, ziy@nvidia.com, masahiroy@kernel.org, ndesaulniers@google.com, mhiramat@kernel.org, ojeda@kernel.org, thunder.leizhen@huawei.com, xin3.li@intel.com, tj@kernel.org, Greg KH , tsi@tuyoix.net, bhe@redhat.com, hbathini@linux.ibm.com, sourabhjain@linux.ibm.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, kernel-team Subject: Re: Potential config regression after 89cde455 ("kexec: consolidate kexec and crash options into kernel/Kconfig.kexec") In-Reply-To: References: Date: Tue, 21 Nov 2023 12:05:59 +1100 Message-ID: <87y1er6hl4.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 20 Nov 2023 17:06:43 -0800 (PST) Ignat Korchagin writes: > Good day! > > We have recently started to evaluate Linux 6.6 and noticed that we > cannot disable CONFIG_KEXEC anymore, but keep CONFIG_CRASH_DUMP > enabled. It seems to be related to commit 89cde455 ("kexec: > consolidate kexec and crash options into kernel/Kconfig.kexec"), where > a CONFIG_KEXEC dependency was added to CONFIG_CRASH_DUMP. > > In our current kernel (Linux 6.1) we only enable CONFIG_KEXEC_FILE > with enforced signature check to support the kernel crash dumping > functionality and would like to keep CONFIG_KEXEC disabled for > security reasons [1]. > > I was reading the long commit message, but the reason for adding > CONFIG_KEXEC as a dependency for CONFIG_CRASH_DUMP evaded me. And I > believe from the implementation perspective CONFIG_KEXEC_FILE should > suffice here (as we successfully used it for crashdumps on Linux 6.1). > > Is there a reason for adding this dependency or is it just an > oversight? Would some solution of requiring either CONFIG_KEXEC or > CONFIG_KEXEC_FILE work here? I don't actually see any reason for CRASH_DUMP to depend on KEXEC or KEXEC_FILE. None of the old CRASH_DUMP symbols depended on KEXEC AFAICS. Using something like: $ git diff 89cde455..95d1fef5 | grep -A 3 "^-.*config CRASH_DUMP" It's reasonable to want to build a kernel that supports CRASH_DUMP (ie. can be a dump kernel), but doesn't support kexec and requires a regular reboot. Though I doubt anyone does that in practice? cheers