Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5539862pxb; Wed, 26 Jan 2022 14:31:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQUcNHLmDxItW0J33hGuPza0Mvime2HzkzplgoZw8/Jp5N5TngyFc5nUid1+w7mxpDfxiQ X-Received: by 2002:a17:902:dacd:: with SMTP id q13mr593811plx.168.1643236301215; Wed, 26 Jan 2022 14:31:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643236301; cv=none; d=google.com; s=arc-20160816; b=VLlqmfVCLiDT69uXLxZxFkSaus7gIzJsGa8VI1eICOS0tdn56FPd6t0k+rQ79w3Z6Z zpKCdSuOygQxbzZ/HHxSF7KtQH2FU+td0e2DxTFfr1cZal12QfJ2HLWMYPHaJDQ6ymk6 9KUxcevijoXtJ7biM2qhSWCRi0TQJFik/iOp3LwP2VAZey9dCMg7Eq6dVWOX4hKG7BY3 3wdFIuRLcKg8epRe1+H7YYpHK1a5WTEQynwpLq4wGstvPv/3CoaZ6c6F7rgDp6b2Fr6R knOo6p7ZQ0xBCaDFKBHFjqHD03z4cXJxVCAilE0OhuN2nuotGHsaO9Gf/lLo4UYaYmoj LlKA== 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=g6MK/TK9V/JsMbg6KA7Vzzf+vJx0UYLxOdyiVInOIu4=; b=NcG/LAd0I52ciYbBjB/ZUpiad23uX7oQOP1LV3uz+aKhWGVYKkyVagRpsuuZ/1ytur d6Fzbv1qIrhsdhf2mV0WRU2zhjVbRATks7hFOEAnMbSLDGsy/lz6rnZ0OimDRRw+YNfR SIWGMEuC9oVBsQ9R3ZTD+LGAf+RRAzYAB5QayXCNv3IWD072w9BeEVcKo+Gne49DpAwd GzN4ZYwECGBOJzkQ9K2ni5ousiLhNEV9cYlQ2u275Kg57UtcGlp/kginetc8hYsxAm44 SIkoPPo6tq8h4tBkGghTaHOdg7r3BDSUNjyN5DB+xzUzxctk29kuuRA+I5EU+NhQk9Gz FUAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PeG5RBqW; 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 q3si493386pgc.457.2022.01.26.14.31.28; Wed, 26 Jan 2022 14:31:41 -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=PeG5RBqW; 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 S244375AbiAZTL4 (ORCPT + 99 others); Wed, 26 Jan 2022 14:11:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244362AbiAZTLx (ORCPT ); Wed, 26 Jan 2022 14:11:53 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D376C06161C for ; Wed, 26 Jan 2022 11:11:53 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id s2-20020a17090ad48200b001b501977b23so5249571pju.2 for ; Wed, 26 Jan 2022 11:11:53 -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=g6MK/TK9V/JsMbg6KA7Vzzf+vJx0UYLxOdyiVInOIu4=; b=PeG5RBqWvbBw2kchCn8oJAvldZRvSWRqZnC5dB2eq9VsnnGRH1pNI3XxFY2z9WaZNl EkUFqCXuEOvMFwIz5I9UmReFRI7rNAanKhVvWsithEswW8ykd1ZWlh3uPkhKC05LmolH Qtwz5OXU8q0BKiaEWs/Cz/H4Ycpa86rOBklLA= 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=g6MK/TK9V/JsMbg6KA7Vzzf+vJx0UYLxOdyiVInOIu4=; b=Ivk2X7tmShQQA1Xv+swKAMNPN+dC2epYWcVMWT+gcDROK2w/LbJ31zUVJ0WOE3KMqd kkK4MqtNKAiPLkKM2XQ27U0BvFo3IQ6tmSCkz7CuMsBdUf5TEDsUdtY1H7TmBHvnlL81 GPC1jwQtpUhvQq7vs96gPBJyJKKC4GGSzNpzHoTo40m0iJjRnI9LpiGJfgFr8p/ya9dW s8jLb0CAVijDSovy6mD9lamlTl5KRZD1vJ3ico1SRq8oiXaed8lxwqYm2qJkp5zCZOFS NikP7wnJstZV9EcxS8ihhlYC0G9h/6yJYnOQasOINis+Rvox76qe3GG6nPL8a8P1JAoO /+aw== X-Gm-Message-State: AOAM533ITBcoxbZ3kNhPTmzrhbPQrQre2W12W+5INdQQmniORtdRFL2W WmdUMVDYET3TKZrjWsDk+ak4Fw== X-Received: by 2002:a17:90a:c901:: with SMTP id v1mr10067555pjt.203.1643224313056; Wed, 26 Jan 2022 11:11:53 -0800 (PST) Received: from chromium.org (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id 10sm2791338pfm.56.2022.01.26.11.11.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 11:11:52 -0800 (PST) Date: Wed, 26 Jan 2022 19:11:51 +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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Jan 20 23:51, Prashant Malani wrote: > 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 To close the loop here, the above patch has been submitted successfully. Additionally, I've also pushed another patch to the kernel driver [1] which checks for the null pointer (for folks using older firmware). Thanks all, -Prashant [1] https://lore.kernel.org/lkml/20220126190219.3095419-1-pmalani@chromium.org/