From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sowmini Varadhan Subject: Re: net/rds: use-after-free in inet_create Date: Tue, 28 Feb 2017 16:37:38 -0500 Message-ID: <20170228213738.GB28302@oracle.com> References: <20170228153737.GG31155@oracle.com> <20170228210623.GA28302@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: syzkaller , netdev To: Dmitry Vyukov Return-path: Received: from aserp1050.oracle.com ([141.146.126.70]:22819 "EHLO aserp1050.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751396AbdB1WbO (ORCPT ); Tue, 28 Feb 2017 17:31:14 -0500 Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) by aserp1050.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v1SLcjgF006704 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 28 Feb 2017 21:38:45 GMT Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On (03/01/17 00:14), Dmitry Vyukov wrote: > > But the other 2 use-after-frees happened on cp->cp_send_w. Shouldn't > we cancel it as well? And cp_recv_w? yes, good point, I missed that. let me see if I can refactor the code to release the netns as the last thing before free..