Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1096045pxb; Fri, 26 Feb 2021 02:23:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlH+cLh8h75SbsCIPIgLcHeBdvInbMvyWS0rL1ZnD45IBo6TY9dxI0+zWQopFbhbdtbmwJ X-Received: by 2002:a17:906:600f:: with SMTP id o15mr2638251ejj.76.1614334985356; Fri, 26 Feb 2021 02:23:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614334985; cv=none; d=google.com; s=arc-20160816; b=DT67FBHqR94VuKjEOvtyTTL8sh68nrtuRb5pJab5w1UFQCqtgx9WAgidpkstZNaU9J 2DU0yTkXF3VcUHn/NnC1DPmt3LZIdYdj2g4bsEkW7N3QfNMuwfsi+XdwRC2OSprOfOf0 BW7xqMISvvvmEthO4abMcKL0A9jlpKb8zIvVpP1O/Kx15fxPk+nskrpud1Z6BubeRlcH tPKiVgoFIP4T7hT8HkImFGCYP249OpwlX58sJB3VnfXMbQ7lLFTwGeKQA7WCv5TXw7gI Y65LY+HXecqKAJQlNaVjySBL1WauFO+Z+T3KVJiaN1XaCxaWggYjShJaFjD1fy2Q2EeX aNbw== 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=HHJqBZbuynpxQfdvSYqeD/VV5QryQtE2hhurs6PQTOY=; b=xyq26dYWrvaCDl8CQPlaZ/UaxypP3pBrWSTIRRNRS6no+eqsp5C32cFtNtNljZ6EMo ZNQY0pxdDUpZ158NwMZEeTQ13QJKTaEq5YMINK+7hrL8b1zb6L77bGPLj506rrfb4Nt2 lUJsAmM45uGJ0KJZY+emGduBOByZCW+F4eY3Vg1zI/Fi8fsaO3n666Uu5YaCwSjpFimW xIZgyzfzEYddq1W6A8r9ktSDu/RwIN02O+QijELcOzoOoFMRDwTOJHSd8DHvWVmExJXT tnnYAPhFZABwtFF++rMwvpsMqQaMmvl6GchnSB3UT+WWYC58ejU9w+pjrTLaA5oP4rym xsPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vkSxfb1L; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx24si5460811ejb.98.2021.02.26.02.22.42; Fri, 26 Feb 2021 02:23:05 -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=@linuxfoundation.org header.s=korg header.b=vkSxfb1L; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230224AbhBZKVY (ORCPT + 99 others); Fri, 26 Feb 2021 05:21:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:43324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230087AbhBZKVR (ORCPT ); Fri, 26 Feb 2021 05:21:17 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A61CC64EC4; Fri, 26 Feb 2021 10:20:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614334837; bh=iWoZ9kHmPVIJSFXhHK4exoa0+baGdJRJwmGpiqNK+/Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vkSxfb1LL2dxJG2mqrUt7S7SoeFC66rpgkblbUXYtmiAlNUBUzaptcDXgjYjTzJbD 1f84Ihy8HQQiYdp6/p0BCWqB6nPl4AyPKKObowfYamz8qlslOVMIDEjbErFCryQ9FJ dCFsRMJoDc1RZ+Ixw5PAQA8GMl8oIxuYltKd7hck= Date: Fri, 26 Feb 2021 11:20:34 +0100 From: Greg KH To: Johan Hovold Cc: linux-usb@vger.kernel.org, Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Manivannan Sadhasivam Subject: Re: [PATCH] USB: serial: xr: fix NULL-deref on disconnect Message-ID: References: <20210226100826.18987-1-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210226100826.18987-1-johan@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 26, 2021 at 11:08:26AM +0100, Johan Hovold wrote: > Claiming the sibling control interface is a bit more involved and > specifically requires adding support to USB-serial core for managing > either interface being unbound first, something which could otherwise > lead to a NULL-pointer dereference. > > Similarly, additional infrastructure is also needed to handle suspend > properly. > > Since the driver currently isn't actually using the control interface, > we can defer this for now by simply not claiming the control interface. > > Fixes: c2d405aa86b4 ("USB: serial: add MaxLinear/Exar USB to Serial driver") > Reported-by: Mauro Carvalho Chehab > Cc: Manivannan Sadhasivam > Signed-off-by: Johan Hovold Reviewed-by: Greg Kroah-Hartman