netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* skb_try_coalesce bug?
@ 2014-04-22 12:01 Erik Hugne
  2014-04-22 13:11 ` Eric Dumazet
  0 siblings, 1 reply; 12+ messages in thread
From: Erik Hugne @ 2014-04-22 12:01 UTC (permalink / raw)
  To: netdev

It seems that if the head skb of a reassembly chain have enough tailroom
to hold the data of a received fragment, skb_try_coalesce() will append this
directly to the head, even if preceding fragments have been put on a frag list.
This will cause a corrupted buffer to be passed to userland when 
skb_copy_datagram_iovec() later copies the contents of head, and then each frag
one by one to the target iovec.
 
Is skb_try_coalesce() broken, or are we using it wrongly in tipc?

//E

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

end of thread, other threads:[~2014-04-23 17:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-22 12:01 skb_try_coalesce bug? Erik Hugne
2014-04-22 13:11 ` Eric Dumazet
2014-04-22 19:38   ` Jon Maloy
2014-04-22 20:05     ` Eric Dumazet
2014-04-22 20:35       ` Jon Maloy
2014-04-22 21:28         ` Jon Maloy
2014-04-22 21:29         ` Eric Dumazet
2014-04-22 21:31           ` Jon Maloy
2014-04-22 21:37           ` Eric Dumazet
2014-04-23 16:56             ` Jon Maloy
2014-04-23 17:33               ` David Miller
2014-04-23 17:54                 ` Jon Maloy

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).