Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2924667rwb; Mon, 15 Aug 2022 14:09:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR6s2XXEKCstyS9o596ge7BdUbQ0FBVlApdP76aQg4XsjgXRXsIFr60NF+jgQv62ZkcuYLKR X-Received: by 2002:a63:88c8:0:b0:41d:260c:ea29 with SMTP id l191-20020a6388c8000000b0041d260cea29mr15150639pgd.284.1660597778929; Mon, 15 Aug 2022 14:09:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597778; cv=none; d=google.com; s=arc-20160816; b=cy6QdfZQigQdT7fdZSmCDODMXCcEeMYVhlXs6G11iK+UrhugSzEIprn86+auXRGXDb 6/0U84C5z+MlvW6qgg8jITKdj3pSvBl9VpRKvr5UI+/FiW2teYoT/05LYkjVj+TKsL1S eQka/kE+kJ2smHHRPVo7n24WI2NTRVn2LBzpgrZtNwYwMYOlcjKmsAb6YZLfSZ/dk0kB xXzl6Is1vUfiiJAjQUCAZeks8/RGV3hTO88gtfeFNi1BMIPJdeBmF5DSEjQkHY29aFK6 WsJ8DQMFSE3PS7jtzj9Ptq8cbltrJjcSGPTtJ4IZzoELLdJtPkJzZxFtq2WE3i5gyJKs M+Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1VyhBn+7730JjzXIk1+JZJevSMP5FFJ3b59ITohPBeU=; b=TVxQour/PfpHQZj/fIhxH6lmDjATdnHxAkpTxigDZpLNYSmCLFMNr9RjVoUuXW3mNL lgtTbX/q5/T1wsfai2J4iEAX/Iy2Eo2BNaDO38ujJ0cRO5cKgQXH+f7NZjUdKYuFSD8s c0PdKOPySM9Qa7nvDaLJK/WpQv6bdZSChGeTi2kn0H3L3P4+Nr+AWDO1F+qmFvms/ztI i2KRw/awUxYGIOquZoWTlzkun3MG9Hhr3RdZXs7QHRcQ9XyCLeNGjfFumfsWfLUzIxQF AEArYbd6avpoXtbIK+IdOe3oNj5fspkNdaJA7Aq5XXSdLUBZ11kK0ikuUaMrN6svOD4a +gZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ft5y9Ptt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a170902f68c00b0016daefb1c72si13980154plg.263.2022.08.15.14.09.27; Mon, 15 Aug 2022 14:09:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ft5y9Ptt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347991AbiHOUb4 (ORCPT + 99 others); Mon, 15 Aug 2022 16:31:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347520AbiHOUZz (ORCPT ); Mon, 15 Aug 2022 16:25:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB5369C8E9; Mon, 15 Aug 2022 12:03:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B526DB81109; Mon, 15 Aug 2022 19:03:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08EF9C433C1; Mon, 15 Aug 2022 19:03:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590189; bh=3ujAZeKEOLhx37OJc1LDzbpYlVYHE67f9O0jS+7wG8I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ft5y9Pttgxu8NtJFZvnFtwfNYaHAHCHjzYd8q8/j2nTVfICEpEWVWBZrr3RJBdhGu 9ZZ5qqPZoApClQ7D9SPzrR57VB+JaWb6XrmVSC5QgucATOUiizrO+JouQPlc9Io56N 8SUWR7PTQdsEAnT9CYzHA4but6PZmtxePL2N3cvU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, madcatx@atlas.cz, jwrdegoede@fedoraproject.org, Mario Limonciello , Hans de Goede , Linus Walleij , Sasha Levin Subject: [PATCH 5.18 0181/1095] pinctrl: Dont allow PINCTRL_AMD to be a module Date: Mon, 15 Aug 2022 19:53:00 +0200 Message-Id: <20220815180437.131239314@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 From: Mario Limonciello [ Upstream commit 41ef3c1a6bb0fd4a3f81170dd17de3adbff80783 ] It was observed that by allowing pinctrl_amd to be loaded later in the boot process that interrupts sent to the GPIO controller early in the boot are not serviced. The kernel treats these as a spurious IRQ and disables the IRQ. This problem was exacerbated because it happened on a system with an encrypted partition so the kernel object was not accesssible for an extended period of time while waiting for a passphrase. To avoid this situation from occurring, stop allowing pinctrl-amd from being built as a module and instead require it to be built-in or disabled. Reported-by: madcatx@atlas.cz Suggested-by: jwrdegoede@fedoraproject.org Link: https://bugzilla.kernel.org/show_bug.cgi?id=216230 Signed-off-by: Mario Limonciello Acked-by: Hans de Goede Link: https://lore.kernel.org/r/20220713175950.964-1-mario.limonciello@amd.com Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/pinctrl/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index f52960d2dfbe..bff144c97e66 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig @@ -32,7 +32,7 @@ config DEBUG_PINCTRL Say Y here to add some extra checks and diagnostics to PINCTRL calls. config PINCTRL_AMD - tristate "AMD GPIO pin control" + bool "AMD GPIO pin control" depends on HAS_IOMEM depends on ACPI || COMPILE_TEST select GPIOLIB -- 2.35.1