Re: memory leak in do_ipv6_setsockopt

From: Daniel Borkmann
Date: Tue Dec 01 2015 - 09:24:40 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/