From: Takashi Iwai Subject: Re: [PATCH v2] ALSA: hda: Abort capability probe on invalid capability Date: Thu, 19 Oct 2017 09:15:41 +0200 Message-ID: References: <1508370325-3118-1-git-send-email-rakesh.a.ughreja@intel.com> <20171018162651.GA30097@localhost> <85DFEED57DC57344B2483EF7BF8CB605799EAB3D@BGSMSX104.gar.corp.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id D775C266D69 for ; Thu, 19 Oct 2017 09:15:42 +0200 (CEST) In-Reply-To: <85DFEED57DC57344B2483EF7BF8CB605799EAB3D@BGSMSX104.gar.corp.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: "Ughreja, Rakesh A" Cc: "Koul, Vinod" , "alsa-devel@alsa-project.org" List-Id: alsa-devel@alsa-project.org On Wed, 18 Oct 2017 18:52:54 +0200, Ughreja, Rakesh A wrote: > > > > >-----Original Message----- > >From: Koul, Vinod > >Sent: Wednesday, October 18, 2017 9:57 PM > >To: Ughreja, Rakesh A > >Cc: alsa-devel@alsa-project.org; tiwai@suse.de > >Subject: Re: [PATCH v2] ALSA: hda: Abort capability probe on invalid capability > > > >On Thu, Oct 19, 2017 at 05:15:25AM +0530, Ughreja, Rakesh A wrote: > >> From: Rakesh Ughreja > >> > >> Due to bugs in BIOS it's possible that the HDA capability link > > > >It maybe due to BIOS bug or some other issue, lets not quantify that please. > > > >I would say "On reading wrong capablity pointer values we may crash... > > > >> list is not constructed properly. This may lead to driver going > >> into unknown state. > > > >I dont think we maintain driver states which are going wrong here > > > >> So whenever driver discovers unknown HDA > >> capability, log it as error and stop traversing the link list > >> further. > > > >that sound good > > Hi Vinod, Takashi, > > Are you both ok with following commit message ? > > On reading wrong capability pointer values driver may crash, so > whenever driver discovers unknown HDA capability, log it as error > and stop traversing the link list further. Looks good to me. thanks, Takashi