[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20151222.153425.727988801786072877.davem@davemloft.net>
Date: Tue, 22 Dec 2015 15:34:25 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: vegard.nossum@...cle.com
Cc: acme@...nel.org, edumazet@...gle.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] dccp: fix use-after-free after cloning struct dccp_sock
From: Vegard Nossum <vegard.nossum@...cle.com>
Date: Sun, 20 Dec 2015 21:53:27 +0100
> @@ -115,6 +115,10 @@ struct sock *dccp_create_openreq_child(const struct sock *sk,
> newdp->dccps_isr = dreq->dreq_isr;
> newdp->dccps_gsr = dreq->dreq_gsr;
>
> + newdp->dccps_hc_rx_ackvec = NULL;
> + newdp->dccps_hc_rx_ccid = NULL;
> + newdp->dccps_hc_tx_ccid = NULL;
->dccps_hc_rx_ackvec is set to NULL several lines above this, so you don't
need to add that case here.
WRT the ccid pointers, I don't think we can just NULL them out.
If the parent socket has these CCID features enabled, we have to
clone them into the child somehow.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists