Received: by 2002:a05:6622:f08:0:0:0:0 with SMTP id l8csp4488460ivc; Tue, 3 Nov 2020 13:22:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXXM9ze9VqLTyFnAAA9Ixbn6OZ9RbEJk5zi2s9I3XVaA7DYU/F0UbLMMbE0y6enOTqGOvQ X-Received: by 2002:a17:906:b7cc:: with SMTP id fy12mr17403535ejb.458.1604438527443; Tue, 03 Nov 2020 13:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604438527; cv=none; d=google.com; s=arc-20160816; b=QWP2chqSp6P3e0n0AxUV4Q+4XjRHVFosYM50cOsEJMz3c0NkJ+6UZu5SnYI3ws6rhy 9fiT7vFYwAit3lL94LjnC9FdJxolYbrXkJy1GuYM0WaGFNojsEYqQSv96rfPNLYaueVI bFmQp176XZ2HpesaejWzXKmbHgr42GixXEG5Z1reHrDHl1pqAEZmtH2zBYQ1wwWpceRD UbAoysGsACco6LsflRmj5LIGR8KY8vl4ioqDPDn+T0u7CB4WPl5+X/Vccv3C4dAIL7bI O1Vc/fusIbEtlmZDq4JVUq8IvsYT7CfhpqwMOpvd+ZMDN84pyYI92iyqTY49ZpBCoO1Z 6yRw== 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=3o192Ju8cqZgTIz9CYSMbUYw55dncheliTohqZlwiD4=; b=eHF3Ti0KCKCeo+1kaVJ0WKpzotCTQadgq/AjQBVtpS5Zm8F3aiFbgi+f21xwu8Y4BE cqDzaZq2FBgnP1jBjS7ddnxbqm13VxS7Gkwm+kcZKzQWE/JE8JBzhfBtc0OWSfRkeXgg bfNOiNS2sgTuBqi3Vs3TV8rrauNKTdrt8de8RPKwUWdsXhUzQFHSZibTUftbBumIgiN5 tjyrnLXlYKDNtkKNs2Hh68H8S6ePnjU4fqnl5Em4pXs4SFZFGjI/6RZRf8WLXeqUHmfb vFAdck4wTe857uIc7YvXOxocz35jAg1JMbfv+Vy7YgTw5ufwK3C9V3Cbz3UNdd9QQaM0 tHVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=woAVHHx9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z22si6531ejx.130.2020.11.03.13.21.44; Tue, 03 Nov 2020 13:22:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=woAVHHx9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387899AbgKCVTP (ORCPT + 99 others); Tue, 3 Nov 2020 16:19:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:48300 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388599AbgKCVIs (ORCPT ); Tue, 3 Nov 2020 16:08:48 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 36E1F207BC; Tue, 3 Nov 2020 21:08:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437727; bh=3KSKvUm5ZkRkwxCc0W0Zk+dSy3snRkDj8hsCqDGc6w4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=woAVHHx95rsP7sjIS0gjA5FBrXPRnmZlUmu3dwieeBYT2HUg4yAtSUsTr871UiQ+J F++uOoVNp/HNL/DI8bPNxEoqUUyckRl/gop+R3DDuuDprfqkegvAYE3mXVjvPCowVy 4dO3kwE/LY/plL2858IpXTqkepTut2hHf6G+f74I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alex Deucher , Nicholas Kazlauskas , Takashi Iwai Subject: [PATCH 4.19 167/191] drm/amd/display: Dont invoke kgdb_breakpoint() unconditionally Date: Tue, 3 Nov 2020 21:37:39 +0100 Message-Id: <20201103203248.105268892@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203232.656475008@linuxfoundation.org> References: <20201103203232.656475008@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takashi Iwai commit 8b7dc1fe1a5c1093551f6cd7dfbb941bd9081c2e upstream. ASSERT_CRITICAL() invokes kgdb_breakpoint() whenever either CONFIG_KGDB or CONFIG_HAVE_KGDB is set. This, however, may lead to a kernel panic when no kdb stuff is attached, since the kgdb_breakpoint() call issues INT3. It's nothing but a surprise for normal end-users. For avoiding the pitfall, make the kgdb_breakpoint() call only when CONFIG_DEBUG_KERNEL_DC is set. https://bugzilla.opensuse.org/show_bug.cgi?id=1177973 Cc: Acked-by: Alex Deucher Reviewed-by: Nicholas Kazlauskas Signed-off-by: Takashi Iwai Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/os_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/display/dc/os_types.h +++ b/drivers/gpu/drm/amd/display/dc/os_types.h @@ -57,7 +57,7 @@ * general debug capabilities * */ -#if defined(CONFIG_HAVE_KGDB) || defined(CONFIG_KGDB) +#if defined(CONFIG_DEBUG_KERNEL_DC) && (defined(CONFIG_HAVE_KGDB) || defined(CONFIG_KGDB)) #define ASSERT_CRITICAL(expr) do { \ if (WARN_ON(!(expr))) { \ kgdb_breakpoint(); \