]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commit
[NET] netloop: Do not clobber cloned skb page frags
authorkfraser <kfraser@localhost.localdomain>
Wed, 1 Aug 2007 14:16:46 +0000 (15:16 +0100)
committerkfraser <kfraser@localhost.localdomain>
Wed, 1 Aug 2007 14:16:46 +0000 (15:16 +0100)
commita0040e01d675b67a5390cd4446532ed064ff99a3
tree4471e810af17ab11708477565c4146c5d79a139a
parentfd98eea3ffc7f81271fe62a8039a36be5cb8bfdc
[NET] netloop: Do not clobber cloned skb page frags

The netloop driver tries to localise foreign mappings by
copying them.  Unfortunately, it does so by directly modifying
skb page frags without checking whether the skb is cloned or
not.  In fact, the packet is going to be cloned more often
than not.

This may result in either data corruption on DMA or a
page fault in dom0 which kills the whole machine.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/xen/netback/loopback.c