From: Eric Dumazet Date: Fri, 17 Mar 2017 15:05:28 +0000 (-0700) Subject: sch_dsmark: fix invalid skb_cow() usage X-Git-Tag: v3.2.91~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d940902921d277f53338dddd5068840893e9b372;p=pandora-kernel.git sch_dsmark: fix invalid skb_cow() usage commit aea92fb2e09e29653b023d4254ac9fbf94221538 upstream. skb_cow(skb, sizeof(ip header)) is not very helpful in this context. First we need to use pskb_may_pull() to make sure the ip header is in skb linear part, then use skb_try_make_writable() to address clones issues. Fixes: 4c30719f4f55 ("[PKT_SCHED] dsmark: handle cloned and non-linear skb's") Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed