netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* TCP_COOKIE_TRANSACTIONS synack data
@ 2010-03-08 14:27 Penttilä Mika
  2010-03-08 16:01 ` Eric Dumazet
  0 siblings, 1 reply; 5+ messages in thread
From: Penttilä Mika @ 2010-03-08 14:27 UTC (permalink / raw)
  To: netdev@vger.kernel.org


The TCP_COOKIE_TRANSACTIONS synack data seems pretty unsafe atm. 
>From tcp_make_synack():


	u8 *buf = skb_put(skb, cvp->s_data_desired);

	/* copy data directly from the listening socket. */
    	memcpy(buf, cvp->s_data_payload, cvp->s_data_desired);


The skb here is allocated for MAX_TCP_HEADER + 15 and synack data could be as long as TCP_MSS_DEFAULT, panic():ing at the skb_put().

--Mika



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-08 19:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-08 14:27 TCP_COOKIE_TRANSACTIONS synack data Penttilä Mika
2010-03-08 16:01 ` Eric Dumazet
2010-03-08 16:33   ` Penttilä Mika
2010-03-08 19:28     ` Eric Dumazet
2010-03-08 19:32       ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).