Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756413AbbLAOYh (ORCPT ); Tue, 1 Dec 2015 09:24:37 -0500 Received: from www62.your-server.de ([213.133.104.62]:56499 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755327AbbLAOYf (ORCPT ); Tue, 1 Dec 2015 09:24:35 -0500 Message-ID: <565DAD8D.9020800@iogearbox.net> Date: Tue, 01 Dec 2015 15:24:13 +0100 From: Daniel Borkmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Eric Dumazet CC: Dmitry Vyukov , "David S. Miller" , Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Patrick McHardy , netdev , LKML , Vlad Yasevich , Neil Horman , linux-sctp@vger.kernel.org, syzkaller , Kostya Serebryany , Alexander Potapenko , Sasha Levin , Eric Dumazet Subject: Re: memory leak in do_ipv6_setsockopt References: <1448977016.25582.18.camel@edumazet-glaptop2.roam.corp.google.com> <565DA9BE.3060006@iogearbox.net> <1448979404.25582.23.camel@edumazet-glaptop2.roam.corp.google.com> In-Reply-To: <1448979404.25582.23.camel@edumazet-glaptop2.roam.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 744 Lines: 21 On 12/01/2015 03:16 PM, Eric Dumazet wrote: > On Tue, 2015-12-01 at 15:07 +0100, Daniel Borkmann wrote: > >> Yeah, we miss inet6_destroy_sock() in SCTP. :-( >> >> Looks good to me. > > OK, I will send a formal (and tested ;) ) patch. I was shortly wondering whether there could be a use-after-free by doing this after sctp_destroy_sock() due to the sctp_endpoint_destroy() that would eventually drop a ref on the socket, but the endpoint holds a separate ref, so we should be good. Thanks, Daniel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/