Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp120604lqd; Tue, 23 Apr 2024 17:30:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWejIU06kPQCedloKdFfDzHvSrCFqiY1mT/Jd+eFvGPWDTOcbMV9d7kjeNhpXmFV2DpLkwhnpijYRNlxeHyK9oEHVGyZ140sDHcSDnySw== X-Google-Smtp-Source: AGHT+IEBXhBsIlVNRgnoqcXm2rqEaNavvAF8ez7bhdIdVx7Pgnt4K6dpTTLqHk2tjb+zkZi7ymXz X-Received: by 2002:a05:6e02:1a23:b0:36b:3c9c:5599 with SMTP id g3-20020a056e021a2300b0036b3c9c5599mr1420735ile.0.1713918614152; Tue, 23 Apr 2024 17:30:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713918614; cv=pass; d=google.com; s=arc-20160816; b=G6DmlpThX/lZGxEEkFUcoTHuI93NOvwATEaVfecbZzgRPFpKyPWvR7+GsS6s1XEHBi n6PwOaauZOCuEchgMsNT3chT/N0F4dUxuQMot9PM0fexmkhwe3x7RLeqjaymNvmFZCSN I2DCp0gecoUkTHkAVETbdQXDZZwhhIR/XqiD2RFuE1aWhtZAESN9BL679PzcaQ87kg7x J8CSvcuhHn5PaNyBF9Tdgpgr3wGRMvmRWfHF5wyGpsimZnbYLorU+l8u7oKrk67CL9ka CXmv6l/ItuQvuBywPTaFxHhV3vmZxM/foC65VZxZ9LgVU/c9QOKVCX/4biEAn3Iiklez SlJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=ZU2dyypC35hTtMaDNugRfvH+64b+VBcAIVyJtYe7dgc=; fh=sJ9fpUFPMr5fyUYXf4MZchuQQ0CkxNR77Re8l30kxIc=; b=IOYnnqc1oYGwgrUqdnlZLZmRrxtP5wUIrggBDVv/c0B2B2aaHAe/WPSo66Lu7MMkAM ixFGzvx/X6iLS//7a1yvcGaPGxKviYDazcXXtfAf7LFsDNcnYmWZtCZk62OnTnDM3wms w36ZU8lyYpiLVcNzmKDdI4DhTvaNFy2+HpDiW7vnnmwnVY/8Qc3fxwgK9cuzVHItWL2t exmHnsleFnrPZO2qUk5Kczks4NDUdo/OA9YcxHjvQxZsgYwp/pmFlskflm3Cwm1ps46a 4oVyTFrT9XCRRpxta/RkRH3c6dgiwR68XE0R0VcynoHzGezlo7zQBiImEeXwxIIo5Mse L7Ew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=1iFiOUfD; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-156058-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156058-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m11-20020a63580b000000b005e84e71d9b6si10568578pgb.93.2024.04.23.17.30.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 17:30:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156058-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=1iFiOUfD; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-156058-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156058-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id EAD86B23527 for ; Wed, 24 Apr 2024 00:29:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B6B923CB; Wed, 24 Apr 2024 00:29:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="1iFiOUfD" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE68E800 for ; Wed, 24 Apr 2024 00:29:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713918590; cv=none; b=MZAwMNuX2aFSmmrpkZYUR0XxfgmL5vNe3JQjxTkjXP5yVypGiOxfP/kFGrjpW9uoBenJpvRrHEFEu3jFJ/g+2tuodvZ0D+eHpZI4FaDCiCXfTTZRqckRr23bSeTEduxc475Zh7XWuPMt9XJbLWadynoOKtICyW4QEYe8BvCwCL8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713918590; c=relaxed/simple; bh=ZU2dyypC35hTtMaDNugRfvH+64b+VBcAIVyJtYe7dgc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=MXPn1vuGrJWgBIA28qDqicxuSE6bQTUVJvPoeEv4LGmmAtiR7urpl1uH/th+4barSl+OI9FkRHbwJqXqMoFmcHHBbmGw5q7gjFNBK0JmO4O9L9C0WNnvTP8x5htmyazwANZ+tGEXc6gMmCnKAOn6pPDJ+Tv93jckkc2b2wvRuuQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=1iFiOUfD; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-571b5fba660so3293a12.1 for ; Tue, 23 Apr 2024 17:29:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1713918587; x=1714523387; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZU2dyypC35hTtMaDNugRfvH+64b+VBcAIVyJtYe7dgc=; b=1iFiOUfDqYlEmFiefm1hpNlf9brmTcOAwgcz3pRfxqvHZkS7H+eJ70NpFTWK/nXyL2 VH6D7Dr2WRiFFnZlhwSqSw8YOvU8cxzo8xGTZXW5w48sr1y64c55kMlBx9wv5a8/ixEL SajEQgxydURJdufcZv1HU5DFVJ252C97SusSBJAQY01Rp/koka52u+1dm7w+Zy+FSEcc 4GXe1IFNjTUBETEgGzoS9qgt6R0ar25+0MNdLpzWbWJN2Yxc+52g+XyzEgpUcrhVhOjr Xj9fhfHPfGBRDLSMt9Rmvz+1Yf5Q7Qa5JYapmSZccBlqIHDm+rFTuLX/yJ+Rh55NU17c Rs+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713918587; x=1714523387; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZU2dyypC35hTtMaDNugRfvH+64b+VBcAIVyJtYe7dgc=; b=fMb7/8gf8U/imNswN+SVElyPMme0f6MfETnu/aGwcZjmJmvSZMK06Jfi/kaU5SXZfZ 9EYLOrG3qHJroLdRHshc49KTSX4jIQgtSuDth0pwkvP20jUrjPIjL7C666ljerr+6GKX Dxm9l5ImWgiwsMJ1NPJusmOgNNUD9CRBNtsmbq/ta1LDjRvgXCMJiKInr/69GU/yPXwi 3bQB2Etno1VIq3YPu2HbpyXuAILuWnxojKQu9UJixbTr4iG2ZLyYwExoDp0atts8aX8E vUsxQQ6KoRRP/ptC7tBz5fKa5lLixGnaCO38Xv1Cicat9Ee1uJWVpX5dMN4ySoNTpWSg 0Tqw== X-Forwarded-Encrypted: i=1; AJvYcCX6m/8uaem9soHakWLiberp1SrwC4IqnvytdgG8hY4ESzpN9CrEjACMcEeliSbGdAD+K2eVUPIiDDjkn9pQHoe2ITPOJ2zYyYrjiQBj X-Gm-Message-State: AOJu0YzX3tnYlmjARJfnnxoRtLpaI0s19oOPIY97UgxHYBZ9NN2xMg1v AUNJQmfGikiQCFIOK5xy2RPWh517li/5VUDKB00R606o2Mnqq9H7QNdz7wZGgI/an+sEugWZJI4 K0j0XRHLCzvwDMwtlKrZI9VPbGFwqcruuSKb3 X-Received: by 2002:a50:d6ca:0:b0:571:b2c2:5c3e with SMTP id l10-20020a50d6ca000000b00571b2c25c3emr41728edj.1.1713918587067; Tue, 23 Apr 2024 17:29:47 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240419211650.2657096-1-jthies@google.com> <20240419211650.2657096-2-jthies@google.com> In-Reply-To: From: Jameson Thies Date: Tue, 23 Apr 2024 17:29:33 -0700 Message-ID: Subject: Re: [PATCH v1 1/4] usb: typec: ucsi: Fix null deref in trace To: "Christian A. Ehrhardt" Cc: heikki.krogerus@linux.intel.com, linux-usb@vger.kernel.org, pmalani@chromium.org, bleung@google.com, abhishekpandit@chromium.org, andersson@kernel.org, dmitry.baryshkov@linaro.org, fabrice.gasnier@foss.st.com, gregkh@linuxfoundation.org, hdegoede@redhat.com, neil.armstrong@linaro.org, rajaram.regupathy@intel.com, saranya.gopal@intel.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Hi Christian, thank you for catching this. You are correct, this would prevent correct altmode registration if CONFIG_TYPEC_DP_ALTMODE is not set. There was a miscommunication on our end when setting up this series. The intention was to check for the EOPNOTSUPP response and fall back to default altmode registration when CONFIG_TYPEC_DP_ALTMODE is not set. Sorry about the confusion, I'll fix this in a v2 series shortly. Thanks, Jameson