[PATCH] TOKENRING: Remote memory corruptor in ibmtr.c
ip_summed changes last summer had missed that one. As the result, we have ip_summed interpreted as CHECKSUM_PARTIAL now. IOW, ->csum is interpreted as offset of checksum in the packet. net/core/* will both read and modify the value as that offset, with obvious reasons. At the very least it's a remote memory corruptor. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Chris Wright <chrisw@sous-sol.org>
This commit is contained in:
committed by
Chris Wright
parent
a526d58e9f
commit
ad8ca99ca2
@@ -1826,7 +1826,7 @@ static void tr_rx(struct net_device *dev)
|
||||
skb->protocol = tr_type_trans(skb, dev);
|
||||
if (IPv4_p) {
|
||||
skb->csum = chksum;
|
||||
skb->ip_summed = 1;
|
||||
skb->ip_summed = CHECKSUM_COMPLETE;
|
||||
}
|
||||
netif_rx(skb);
|
||||
dev->last_rx = jiffies;
|
||||
|
||||
Reference in New Issue
Block a user