Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp95546rdf; Mon, 20 Nov 2023 17:51:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJZgZAhBxrfIiLQgFYbpqHheFWhD+rf9QIZIAlzUy++r6v0fUK3enKvBh0j1SGLfu42loW X-Received: by 2002:a17:903:11c9:b0:1cc:4677:2f0e with SMTP id q9-20020a17090311c900b001cc46772f0emr13381801plh.45.1700531514063; Mon, 20 Nov 2023 17:51:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700531513; cv=none; d=google.com; s=arc-20160816; b=FAyXY1/3EgOtrChIF+foWAaoQ/xqhWMGRRHMZo1YaEMTX4yQ+yF/Ix1uodBMhXN9P7 vsD46TMWmdtpO3bcAkFhxXTGZJ+HiIEcAGWTUBd7/Kgc5RPfZb32tWpISukUOp02bZM8 btv5c+wZEJqpw2jTnOx9QoRCyQ93qseNHESs/bOJ/AcVLIOv1R9v3H5G9DLXbPfcjXnc EwA1799yBI4/2fScT9CiSBgV2EUwelq3nTRb72rVC57xzqwCzBrTswsfv4MJ8USo/yo3 /hEyydhsBW2qok8RbYm0yrBzJUBT56AysLJd/y2ZUxPkLebb6uF9otalYmUN12HY1Pk1 lb3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=y3Q3tLM9OGu607uvr6IkvxoBRGupiz4hQd2uNEc6wxU=; fh=oWo7eD5HdjoE3n37W3/TJcWXBe1gn5tugpSu2B9GQoI=; b=yZ6Anl26tpboComxhGGmfmCqhnW74vfZr4z+HUQ/+CZEZkbBJrRQBqaoSGSwn9/g5I zKr/E1NmFaRD+96NJXiDxhXCgZA7FPnIaISXJ6EaW8OywO0jcUdXrmbFoOXLOd8hdz2h 4Kji2T6ATDJ+/+NCoBhRLDclsDbHVPx2m9smo+Y1x+mIlC+6ZHy1JM1n53FAT5ttIsce 3GsvoPMkR1tVJjb+q8o8qo6Lk/AT7gUg+Weot9t8fT+CCEXiGBrVQ+DMA2QMUX5LyuLR +ao9USkF+bUd89/Qxsbssl8EpD1xObnZs1naGa5oSYTUU3lK9xR6Gga2aNAMxDXFFQbu 8OCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=h35Vxiqr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id jk11-20020a170903330b00b001cf6b6831b8si1049096plb.58.2023.11.20.17.51.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 17:51:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=h35Vxiqr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 3B26D808EF72; Mon, 20 Nov 2023 17:50:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233065AbjKUBuZ (ORCPT + 99 others); Mon, 20 Nov 2023 20:50:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjKUBuY (ORCPT ); Mon, 20 Nov 2023 20:50:24 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40FC9D8 for ; Mon, 20 Nov 2023 17:50:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700531418; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=y3Q3tLM9OGu607uvr6IkvxoBRGupiz4hQd2uNEc6wxU=; b=h35Vxiqr1QITmJY7boN3uZO1bPYrOgJMJvd+9sbm8tZ47J8t72x9BolqdjlchhsEEzXaSc EHQogQThJQNIqpBk0/VXB0ZaDI4uYCrl9PlsKDeXcgjUBGrYP+Ig+TBcgrlk7CpaV7owwd Ptne/zjbqdKAgOgfQYItq3EcjBbF464= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-317-dGxeOKufP0OB-17nBSQkQA-1; Mon, 20 Nov 2023 20:50:15 -0500 X-MC-Unique: dGxeOKufP0OB-17nBSQkQA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1F0F9811E7B; Tue, 21 Nov 2023 01:50:14 +0000 (UTC) Received: from localhost (unknown [10.72.112.97]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2267D2026D4C; Tue, 21 Nov 2023 01:50:10 +0000 (UTC) Date: Tue, 21 Nov 2023 09:50:05 +0800 From: Baoquan He To: Ignat Korchagin , eric_devolder@yahoo.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, 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") Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 20 Nov 2023 17:50:45 -0800 (PST) Eric DeVolder's Oracle mail address is not available anymore, add his current mail address he told me. On 11/20/23 at 10:52pm, Ignat Korchagin wrote: > 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 searched the patch history, found Eric didn't add the dependency on CONFIG_KEXEC at the beginning. Later a linux-next building failure with randconfig was reported, in there CONFIG_CRASH_DUMP enabled, while CONFIG_KEXEC is disabled. Finally Eric added the KEXEC dependency for CRASH_DUMP. Please see below link for more details: https://lore.kernel.org/all/3e8eecd1-a277-2cfb-690e-5de2eb7b988e@oracle.com/T/#u And besides, the newly added CONFIG_CRASH_HOTPLUG also needs CONFIG_KEXEC if the elfcorehdr is allowed to be manipulated when cpu/memory hotplug hapened. Thanks Baoquan