Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1357386pxb; Fri, 21 Jan 2022 16:24:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIHad3cZkcDEMfyjAxtHuXuPW+4kCW2ho5pfBaMMysoWNd7GJiyETXzTpjBRpi5FBqTuoX X-Received: by 2002:a63:a50f:: with SMTP id n15mr2671338pgf.428.1642811088353; Fri, 21 Jan 2022 16:24:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642811088; cv=none; d=google.com; s=arc-20160816; b=TdXps/pyXWLBmKGjx2C+ura+JnrWeA98ow9mQaqi8eQHBYUQiy7z8ZY9Ak2tcIacF/ wPtxvCUexOvOhUJy83gwtrV0juJIyUumHshVakDaRQKIj/c7DyJ/cnaGGclM0RSZ4Omf y8ohx1NcdRCwSHxTQfMK4lYxj32q00b0ce4b8RawhmP2SQebvXovySQ1x6DG9oprgW2G QkPvIIn0T2AJ6jK3vNyjY7bBUPwDgkftz1DyAT1zGTzWiKkqjO2u74ZiaLhEaAou/TjV 2JWFo+5iKkFYtHonvW0h7pSjChJXfJJzw7hTPoVlFpvlfhTagYLDmQtQe2K1IfFPGU6I ttdQ== 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=sduWb0Nvw1COmM42DpEYFdXHLJwAxVfDURuvJPcjjFw=; b=Fwa1Op7ENEhzZ8MLx/uyzScAW6vC2oQt2TCuWiS5VzuCHmy5As9mHvZzquP4tkzVUK BNanN/dbfwARP/eZfefpPsfASnjaYjLJAqEPC20HRpP4NqBJ63zo8YcswnJ3BleIus2F r9T2NQj1cPoe9Njs6nSCKBKvU+V5+Lo8Yz7B34JVVJFlikqBqDXcz4nahq/ZKm/rT0SL e59Rss6eD4PpMurYnj014HoVj5/CtB9zgMewAhVmLG6oYBuaaB1CufVjGGSgHUvy/nxk m/as/rRrWywKrr+Iw+rb09K5iSw4sMREH5r5A7o7QhYzbTc3UyHzmYiQbuoOyq6icpi+ Emfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kniFNKoN; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m5si6774769pjl.20.2022.01.21.16.24.36; Fri, 21 Jan 2022 16:24:48 -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=@chromium.org header.s=google header.b=kniFNKoN; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378227AbiATXvb (ORCPT + 99 others); Thu, 20 Jan 2022 18:51:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231563AbiATXva (ORCPT ); Thu, 20 Jan 2022 18:51:30 -0500 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C747C061574 for ; Thu, 20 Jan 2022 15:51:30 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id e8so6805890plh.8 for ; Thu, 20 Jan 2022 15:51:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=sduWb0Nvw1COmM42DpEYFdXHLJwAxVfDURuvJPcjjFw=; b=kniFNKoNNXu9eWVpnbtx93A0MzPWJT6hbt3d4UWRU4OWNz+Qn0lYXdujM8WhKxNSvr 4GxPEVkYiwWM6YrkJ5QTN2E++PNkC+ui1IsPnJae6Wrq3Ztiuu8/VA7r2QvrNGrbKUvG MI1JiFK5Px43H4sFwJHoc19LqXzC1/ZCYiY0I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=sduWb0Nvw1COmM42DpEYFdXHLJwAxVfDURuvJPcjjFw=; b=NpNUdfwy/qJHV97Bun2Mm5aqNeXSLl27p+4XxjE6ESYxoO/Wl8kYXUSTwJVyCExHaY iBQpopC+yaK9fOurQyEOkEpshJPH2MqTRfZbjxl1TTjlorugqUScDIZPMMgmUJwKLQAX DXasdXTJu+VPSX4IsaPeu9CsvVXuxxWNuzDjyAP6/gXkoLNnvbJd7IIvd5i/IlVM5L08 8MscrFldUAuEYyIjPU0LHWsbBHyqr6KCSppKRFSZt4RckeLZuxCQ5ingsJw1L8ltPzxZ T/Xa08dxE3G12RKRShN081BsGGQjISuDg2jMER5UWWoa+G/uMWjYI+nXn3nrZ0aKgeHs rPEg== X-Gm-Message-State: AOAM5301UkWPZagBuYvtIgvYPQRlgCAbk5R0ykLTHdytbUg/pPWOOHJR vVPfg65800xRHPmFdTnw8uR5rQ== X-Received: by 2002:a17:90a:6b05:: with SMTP id v5mr13749120pjj.194.1642722690025; Thu, 20 Jan 2022 15:51:30 -0800 (PST) Received: from chromium.org (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id w10sm3987765pfn.153.2022.01.20.15.51.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 15:51:29 -0800 (PST) Date: Thu, 20 Jan 2022 23:51:28 +0000 From: Prashant Malani To: Alyssa Ross Cc: "Mr. Chromebox" , Benson Leung , Benson Leung , linux-kernel@vger.kernel.org, Tim Wawrzynczak Subject: Re: Null pointer dereference in cros-ec-typec Message-ID: References: <20220119023752.ad34u6hgjpkpk4dw@eve> <20220119203243.3zh6mcb2fauczn5k@eve> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220119203243.3zh6mcb2fauczn5k@eve> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Alyssa, On Jan 19 20:32, Alyssa Ross wrote: > On Wed, Jan 19, 2022 at 12:44:06PM -0600, Mr. Chromebox wrote: > > On Wed, Jan 19, 2022 at 12:24 PM Prashant Malani wrote: > > > > > > Thanks Alyssa, > > > > > > It looks like the right fix here should go in coreboot. > > > > > > I'll wait for a response from Matt regarding whether those EC commands > > > are supported on the eve EC firmware image Mr.Chromebox releases. > > > > looking at Chrome-EC branch firmware-eve-9584.B, > > > > EC_CMD_GET_PD_PORT_CAPS is *not* supported > > EC_CMD_USB_PD_PORTS is supported > > > > no difference in this regard between my updated EC firmware and the > > latest stock EC firmware provided by Google for EVE > > > > > I have a fix but I can't test it since : > > > - I am not sure how the Mr.Chromebox eve BIOS is compiled. > > > > same build system as upstream coreboot > > > > > - I don't have an eve. > > > > me neither :) > > I'd be more than happy to test Coreboot patches on my eve and report > back on anything that needs to be checked, if that helps? I've built > and installed it from source before. Yes, this would be very helpful! Here is the link: https://review.coreboot.org/c/coreboot/+/61262 Thanks a lot! -Prashant