Re: [PATCH net] sch_dsmark: fix invalid skb_cow() usage

2017-03-21 Thread David Miller
From: Eric Dumazet Date: Fri, 17 Mar 2017 08:05:28 -0700 > From: Eric Dumazet > > 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

[PATCH net] sch_dsmark: fix invalid skb_cow() usage

2017-03-17 Thread Eric Dumazet
From: Eric Dumazet 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]