Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4610329rdb; Tue, 12 Dec 2023 04:45:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5GGlfVhJObcROBbg3HBg4T52SkyIs1MIDA34aEmW2Qkzgea7ItiVmk5H/1RW6A1ZnQv2+ X-Received: by 2002:a05:6a21:1a3:b0:18f:e956:8332 with SMTP id le35-20020a056a2101a300b0018fe9568332mr8330811pzb.8.1702385143742; Tue, 12 Dec 2023 04:45:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702385143; cv=none; d=google.com; s=arc-20160816; b=M5BG1B9SwliCKnAUOTeIKuNoEeVR6ImmY11O8u48jUcJOEXuGaQbd3XAx06buEgaFW pBrbw5CfYxY9n8h32Db/3Qhic7rzN/01+UwmciGsARdngZYvlt7V+XJdNGJbFVXJmSOc 5aGFHewOePdtdM7QhfIUei+wVY/SZBQEXIXE+1hFadF0WH0pq6KT1+FUJ9YMA7OJ0QD+ uzkG2pjABQP3E9/9IT+avItuc1mKNqopbeWCdRfbtosoJ2/a6VWA1054EyWCKlY4DXrm 7SZFRDmrIPs2sig/2kUDSoD6ANd7zDpBOKs8K0XT0RJa2RkZ0HoLxj76y63f8ITbzmHu H0kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:organization:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=WQpnRnVMadbDTCUtd7AKkPEYdX7MCmVH/vzBS2Gt8ck=; fh=R7XF7lOEDYfBszikvVaqLDml3AcU4bNTkwnNHZ4dNe8=; b=bRf5AE0pTt3ehCjZ+KGYJ3QJncGE/ewdhrH1BcD0Oo77954Lu/IYixKjHpVJvJGJhl RoaIACMAxkPPfMSLIG6XiYY/4vkbd3PrG1ZsvgCWYu882jBFy4do6qkJU35z4cXn1OjF YF5eMrhDHZV3nTz18dxJRjt9YfdaxGqokfZzcHP1LDJ+SATyDIDmYfvBniv1ODy0uJ2P 9x25LeiLqC+CrUk7VmoCRygxuUKbyXI9C0JbsaS0czK8nESARdbiAxWVKiGW27B9uqFF nR5SvgrAoPF4tm3h4/ShGKwasBQm4RbkfeZZgz0O9aXlksbTSuC+dJI9pBctLYm4SOBm 0jLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M7uWfJ4T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id p41-20020a056a000a2900b006ce5bf560e1si7672957pfh.73.2023.12.12.04.45.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 04:45:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M7uWfJ4T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 16F08807C640; Tue, 12 Dec 2023 04:45:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346747AbjLLMo5 (ORCPT + 99 others); Tue, 12 Dec 2023 07:44:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346779AbjLLMov (ORCPT ); Tue, 12 Dec 2023 07:44:51 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F21CAC; Tue, 12 Dec 2023 04:44:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702385097; x=1733921097; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=cHqtOeNKP076/ZBIP1FBovIIDSXx16JPG8Oa+T/X2Sk=; b=M7uWfJ4TUHUDKEePSmp97ECavY3/iEbIsfUHXfXgQ9hsqQQVF07cNAHG sK/LhEWIo9fYRRv3B9tdyu0L3RKW4XkYsJ45A/y4i2LAFd5wRghj4o4Ne OtZC8NLteeqgbj/F1HyiieL71oLOVNqb8pT2cYilqxAIhSQvN+uNCdgva d0F64GZGnUcfF64Sd/qAlcEPBYKj38/t9hPGSLsZYLPDrVBfXyQouEIjR /445cO55KrzUPVdXJ67GIfX2OYnYoIsGWDM4R1h/B0JCyMhsipO5zQ6Nz LdcvPM+hvqt5fV6ty5Q1V/QRAb3TzTXvaIYcBbiC8NLDPufdhT4B3NlZS A==; X-IronPort-AV: E=McAfee;i="6600,9927,10921"; a="397586774" X-IronPort-AV: E=Sophos;i="6.04,270,1695711600"; d="scan'208";a="397586774" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2023 04:44:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,270,1695711600"; d="scan'208";a="17634142" Received: from eliteleevi.tm.intel.com ([10.237.54.20]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2023 04:44:54 -0800 Date: Tue, 12 Dec 2023 14:44:41 +0200 (EET) From: Kai Vehmanen X-X-Sender: kvehmane@eliteleevi.tm.intel.com To: Kai-Heng Feng cc: lgirdwood@gmail.com, broonie@kernel.org, Jaroslav Kysela , Takashi Iwai , Bard Liao , Kai Vehmanen , Pierre-Louis Bossart , Peter Ujfalusi , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: hdac_hda: Fix NULL pointer dereference when hda_pvt is not set In-Reply-To: <20231212064533.233748-1-kai.heng.feng@canonical.com> Message-ID: References: <20231212064533.233748-1-kai.heng.feng@canonical.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7 02160 Espoo MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 12 Dec 2023 04:45:13 -0800 (PST) Hi, On Tue, 12 Dec 2023, Kai-Heng Feng wrote: > Kernel splat can be found on boot: > [ 7.906438] BUG: kernel NULL pointer dereference, address: 0000000000000078 > [ 7.906449] #PF: supervisor read access in kernel mode > [ 7.906455] #PF: error_code(0x0000) - not-present page [...] > This is caused by attempting to dereference hda_pvt, so check if it's > NULL before using it. > > Fixes: a0575b4add21 ("ASoC: hdac_hda: Conditionally register dais for HDMI and Analog") can you try this fix already merged to Mark's tree (merged on 7th Dec): "ASoC: SOF: Intel: hda-codec: Delay the codec device registration" https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git/commit/?id=ce17aa4cf2db7d6b95a3f854ac52d0d49881dd49 Br, Kai