Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp277036pxb; Thu, 30 Sep 2021 06:00:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/2iLOh8sjXyvsXMRp+vU3uZ40fTEfIvCvMpAH2CfsSgTXas5SYROwM0l0mzkloomtEiJh X-Received: by 2002:a17:906:3148:: with SMTP id e8mr6540799eje.240.1633006808430; Thu, 30 Sep 2021 06:00:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633006808; cv=none; d=google.com; s=arc-20160816; b=NujPW85YDLur+Y1OFrWdQ+irGs6HJGVNrGIujyhtdEkIPNbn9rRxZ2uo2e/RY8E3kN r70tkriWoIekWsMGoosCD7zBVayYOr//UtS7WXPPD6ax9ahR/55WTxJwjVAlvEOGvvrr Ty0KTaFLKDxw+kV1+d0Yn8KpPFKq+SDz93GXhAJr85aw/q9eItjJY80ETeDL17q0Ca/T NztMMz1RxDAICrRVetlsQ/0Lg/QrHFzeJSkVUCWukvuCuhlCSWuXBAiC/i0LyOH6sjIU mj49wlYrlVoOWPdAUS3emhHWG8RN0ikJFFbLmPPIhNIsjoRaWFa2SXadOUR+N+O3/x6n 0b3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=PqFwPL5P8Y147cbnzdb+BDfvsLxmhpak6mejudxoDf8=; b=EJ09rVhFcT0w4iHNL2UPTVqxQqzn4iVuL6e6M4S1RxnZjOimx/G4iKnPQD5Goxw7vH 6X9/VAECt236tvfu3eWNDX+eid+uzR7pW6YkHjLJjrXxDxXU6mb5v7BBovY/dfkXnPYE 0pAS0nezwR7cN+pGipFEX8Q5Nx0DK7415ZKj9VjneMOZWqojOxcQFVYU31Fvom7kEXnD vpxoBxar3OtYgCj+QeUiDsj/+4W41VRlotiSl+avfQjEBLTFQRz7LnJ4NNGHboGP/k/g a8/fdXCHKeTzQCDhW44tpcDd/Wj5edMoqGMzv3S2riaUzG8DYvi2ZKSLT3saJeCnBZtz CJ0w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c24si3328896ejj.646.2021.09.30.05.59.44; Thu, 30 Sep 2021 06:00:08 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349345AbhI3JXQ (ORCPT + 99 others); Thu, 30 Sep 2021 05:23:16 -0400 Received: from mga14.intel.com ([192.55.52.115]:18073 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349293AbhI3JXQ (ORCPT ); Thu, 30 Sep 2021 05:23:16 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10122"; a="224800326" X-IronPort-AV: E=Sophos;i="5.85,335,1624345200"; d="scan'208";a="224800326" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2021 02:21:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,335,1624345200"; d="scan'208";a="487253919" Received: from mattu-haswell.fi.intel.com (HELO [10.237.72.170]) ([10.237.72.170]) by orsmga008.jf.intel.com with ESMTP; 30 Sep 2021 02:21:27 -0700 Subject: Re: [PATCH] USB: xhci: dbc: fix tty registration race To: Johan Hovold , Mathias Nyman Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Lu Baolu References: <20210928120400.20704-1-johan@kernel.org> From: Mathias Nyman Message-ID: <87c08115-06e0-6734-887a-7ae4e97fe5ab@linux.intel.com> Date: Thu, 30 Sep 2021 12:24:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210928120400.20704-1-johan@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28.9.2021 15.04, Johan Hovold wrote: > Make sure to allocate resources before registering the tty device to > avoid having a racing open() and write() fail to enable rx or > dereference a NULL pointer when accessing the uninitialised fifo. > > Fixes: dfba2174dc42 ("usb: xhci: Add DbC support in xHCI driver") > Cc: stable@vger.kernel.org # 4.16 > Cc: Lu Baolu > Signed-off-by: Johan Hovold Thanks, adding to queue -Mathias