Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3482953pxy; Mon, 26 Apr 2021 02:53:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVqCOv5+k/oJrRA9skjvr3AHfxIui4FK2uMqhy8FWsjPDUPdi5iYL5z/mxbKxE+vb4BQYP X-Received: by 2002:a17:902:bd8b:b029:ec:7e58:a544 with SMTP id q11-20020a170902bd8bb02900ec7e58a544mr17951669pls.26.1619430824539; Mon, 26 Apr 2021 02:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619430824; cv=none; d=google.com; s=arc-20160816; b=qNtoMoe3sgj7ZwIxrayFg4ciQg/6qGOnTDVnXoBySruXJ1e3cN0lMu9WYJbX9GHFDG 8hfCPPqSNsFCpaKLQVWLDU4rZPs4bgBXVzV8WbPLQP3C84h6vjTkm+SoSetrVGqF1LgG ywutWgvMXzGlJz6qprrdgMyIcf2dQIoYRvU+bx3tVKNSPMiy20ibGFCo14G5D0PBemQ3 r7DD9FjhuzSwVhoixkQL37yETIXItz9XO9rnunRttfh14JCmA5R6M2s/ZDqm3AMJ2yvY 6rMuwSjrlYlMi4v2SuNx02PgfvRMFQMDuM7ns0XCNhWUrrkDz7s01hIWMtAxwJ5cyIAN BuDQ== 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=MVSGfXrcKq16zoXWqDx3fxcTdWqd/46ytAIF3f8osz8=; b=eB90lgM8axEd8bmdZ+/iFuQB6c74pHIAoHfQToqHLN3Qi2KLjlvp4Th16ri7Zm+DGR 2Zu0ZsSbzaE04rWbMbjLgORFEr3f3CPG1v8pm6NHdrvp+P9r76OruZHXEBOynlCBS447 qmwt+aY09fxu2hr/WraDEE4KyLkJaWAjBUdz8pUX5fXEOi5ZG/22cW9N9hKJ3sWXh/d2 aaekjvaYmi7Zalum/7jldhKlnPj2XpRZuwJ0mXftTycTHi/pgEbCz4jlPmnxDmlopzkB c3DEEOubvTpWVVI0ruBheTnC0vOcWftPW0gVz5CAt0LQ0wvTtOAREnWwZlTCAk6L1YoG sefQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VwlwhaKh; 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 t9si17864782plo.335.2021.04.26.02.53.32; Mon, 26 Apr 2021 02:53:44 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VwlwhaKh; 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 S232950AbhDZJva (ORCPT + 99 others); Mon, 26 Apr 2021 05:51:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:35660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232239AbhDZJv3 (ORCPT ); Mon, 26 Apr 2021 05:51:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3EE98610A5; Mon, 26 Apr 2021 09:50:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619430647; bh=5HK7sHxtSNFTvEowRYNk3JfWcvB1OJlsfiq4lhdMea4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VwlwhaKhG0Sib4seccmy6Azz+GwQS6EmVmoqM5RFbKA13KYdW/XtmANzxcPc9ef55 NUU8ahsJp80dYw9dxvItK9tCdaSZq9du+Q5Anh95xOoT06Qz/9Z7al9sie7sX5gfUh 9n7mQaIGYfEtVN1KICrlKbxZ/SSTOjb8BdxTPzEk= Date: Mon, 26 Apr 2021 11:50:44 +0200 From: Greg Kroah-Hartman To: Johan Hovold Cc: Leonardo Antoniazzi , linux-usb@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Anirudh Rayabharam , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: hso: fix NULL-deref on disconnect regression Message-ID: References: <20210426081149.10498-1-johan@kernel.org> <20210426112911.fb3593c3a9ecbabf98a13313@aruba.it> 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 On Mon, Apr 26, 2021 at 11:35:46AM +0200, Johan Hovold wrote: > On Mon, Apr 26, 2021 at 11:29:11AM +0200, Leonardo Antoniazzi wrote: > > On Mon, 26 Apr 2021 10:11:49 +0200 > > Johan Hovold wrote: > > > > > Commit 8a12f8836145 ("net: hso: fix null-ptr-deref during tty device > > > unregistration") fixed the racy minor allocation reported by syzbot, but > > > introduced an unconditional NULL-pointer dereference on every disconnect > > > instead. > > > > > > Specifically, the serial device table must no longer be accessed after > > > the minor has been released by hso_serial_tty_unregister(). > > > > > > Fixes: 8a12f8836145 ("net: hso: fix null-ptr-deref during tty device unregistration") > > > Cc: stable@vger.kernel.org > > > Cc: Anirudh Rayabharam > > > Reported-by: Leonardo Antoniazzi > > > Signed-off-by: Johan Hovold > > > --- > > > the patch fix the problem > > Thanks for confirming. > > Next time, please keep the CC list intact when replying so that everyone > sees that you've tested it. Wonderful. Johan, thanks for the quick fix. netdev maintainers, mind if I take this fix through my tree to Linus this week, or can you all get it to him before -rc1 through the networking tree? thanks, greg k-h