Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp20640rdf; Mon, 20 Nov 2023 14:53:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFe+eDHZcFQreZZgrYfOg8+Y5ij4v027p6dIeU3+Ubjrt1OHS6hZekJIJAXsvMlpOCdFpWD X-Received: by 2002:a05:6a20:8628:b0:187:440b:6e40 with SMTP id l40-20020a056a20862800b00187440b6e40mr5206587pze.17.1700520820182; Mon, 20 Nov 2023 14:53:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700520820; cv=none; d=google.com; s=arc-20160816; b=LDDZyWTBxwiBGnkWyI3vPi+O6Wl7Z1Nxr/gndh42795MrnarpxJ/seo0R4ixlg0LcR cfeg4yf6U0QbeTuEWhT9D5bJkcbixACxtYA1wVjZhK1gULAG0BVzZ+OBq0DJ8T+Cc/kA jSaYlJnyyXAlVsryvVzVaeIetXYXI9bouJbiBn5vAsneas46p1HY9FPSMMW7NQvZiUtF BblZCaYVV4kK9oja0OL0RkblS6BkAVDkPYkz8j3QW7REWZYehTdQ9rVt+6L7Wty3EeFF xeOFbTrNyoa/t5taTgpswzMiWXnxmdl/b4GI8ANdN/asuAUZ/gQFGpvOplzfIu/yX9my LEdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=jj/vQll/FXoy8ynJ7Qc2odNrUXWiiF64P1hSHAKTnLo=; fh=edHpOdAtTTldVlmUJ2gUyWkf9sm852saV6ClYDfsfJc=; b=mjd/kW40iwqXoFeQr9uiHnbxltFjH18nBg/ZrgiRzwQSENxFNRzlvt+EfmaWUsY8Q0 CqFxYtxvNCXuWrVm/EQcIy//wy2+vu+5UfegEzutcCFLvFsYc/Za2vbC9ml7lGFYXkor wDBEv4icYHmp13rD6M4I5x/jnKBeTRfMPGKRD2piRnGc77H0KHER/epM0NYanaWuDvN9 kKeS5xs7v6xX3hJHiI+gmM1aKaHxT0dQhPntzCz0WE49pdvP9pT338Sr1x7uqvojac1p Tzb2mE4KZdzopwBqcpTqrpeKKXDUAiI2wBop+qCPCZjOPbx/p9vklv6WhzpTkgQ5pW5E o1JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google09082023 header.b="TJV+6/Hj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s138-20020a632c90000000b005c1faa82c06si8501830pgs.470.2023.11.20.14.53.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 14:53:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google09082023 header.b="TJV+6/Hj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id BD0208029300; Mon, 20 Nov 2023 14:53:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229719AbjKTWxJ (ORCPT + 99 others); Mon, 20 Nov 2023 17:53:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbjKTWxH (ORCPT ); Mon, 20 Nov 2023 17:53:07 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 104F4C8 for ; Mon, 20 Nov 2023 14:53:04 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-2851a2b30a2so1074020a91.3 for ; Mon, 20 Nov 2023 14:53:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google09082023; t=1700520783; x=1701125583; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=jj/vQll/FXoy8ynJ7Qc2odNrUXWiiF64P1hSHAKTnLo=; b=TJV+6/Hjq4Mewn2fI8FIeDdxzYZ3UyjLy2g1qYqHn0qKm4X5Lai6NZRNtH5YJ98k1I a6l7RGAy8lpggsIo5s8nb6WLFemAN7F8KRsKr0LKn4uZgW8J9rqWNUY4bMSvUIio7204 lQiUwoB54lkZvokSYE0NUY9Ui6mbjBtTp6dw5oDhSzvq+ASDN90KV2jxoowcLbHEewGL D9E8G5H2+dWqZ967YfP02MaS+tqJznZLG2DUYr4BgvUHMq/W0Y5cayHWxgNFPAOQgF/s oSq86P6Z52FcwSMa6/DUyc0mXeAjxFxDTtvYOuNm+tvst2a0Ds4ecgV0bWB6qd36dxr6 99IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700520783; x=1701125583; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=jj/vQll/FXoy8ynJ7Qc2odNrUXWiiF64P1hSHAKTnLo=; b=oYlxx+m6KBNBxX8jmC7Cck8Zk1oAkeFr0UXkBJR9iwyzoTIcsBZJAK9l4oJxFHBOxn ig0GyvzL6aZf9eqaevN8F814oCdo7Plvy1qhmngOdmD2DsoiaARYhez9kEPKDdTgZPuf y7rPoaarTaIWWRKO6TaCflLhQwXpC2hQPHg8GxSSIdgAH8fWNXQobHWdDmSZEnRiv1SQ qeSTn5APnQXnCafSTcsVxGAI3tU4PgJEQf3U8uZSDfC74tluPfUI7bMQTRTIrLIfoMdE /y+86iQycWgaEZ2ADhk/WA8h9iu/1mKTjqd2Nvtmhls1NBy2PCj+meGbxVwrPY647phU CLAQ== X-Gm-Message-State: AOJu0YzfP99hpgG304QKfKo8M44urX1pJwdYdMiwUWZzc8K+tulzwxY9 RNTaMr40HYgrdy8p/5KZ+XXcO4jnSsZ6H3j/Ht38Sw== X-Received: by 2002:a17:90b:1a89:b0:27d:2364:44f6 with SMTP id ng9-20020a17090b1a8900b0027d236444f6mr7022804pjb.6.1700520783377; Mon, 20 Nov 2023 14:53:03 -0800 (PST) MIME-Version: 1.0 From: Ignat Korchagin Date: Mon, 20 Nov 2023 22:52:52 +0000 Message-ID: Subject: Potential config regression after 89cde455 ("kexec: consolidate kexec and crash options into kernel/Kconfig.kexec") To: 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, mpe@ellerman.id.au, 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 20 Nov 2023 14:53:14 -0800 (PST) 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? Ignat [1]: https://mjg59.dreamwidth.org/28746.html