Re: [PATCH net] net/sched: act_pedit: limit negative offset

2016-11-27 Thread Amir Vadai"
On Mon, Nov 28, 2016 at 12:49:36AM -0500, David Miller wrote: > From: Cong Wang > Date: Sun, 27 Nov 2016 21:39:33 -0800 > > > On Sun, Nov 27, 2016 at 7:58 AM, Amir Vadai wrote: > >> Should not allow setting a negative offset that goes below the skb head. > > ... > >> diff --git a/net/sched/act_p

Re: [PATCH net] net/sched: act_pedit: limit negative offset

2016-11-27 Thread David Miller
From: Cong Wang Date: Sun, 27 Nov 2016 21:39:33 -0800 > On Sun, Nov 27, 2016 at 7:58 AM, Amir Vadai wrote: >> Should not allow setting a negative offset that goes below the skb head. > ... >> diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c >> index b54d56d4959b..e79e8a88f2d2 100644 >>

Re: [PATCH net] net/sched: act_pedit: limit negative offset

2016-11-27 Thread Cong Wang
On Sun, Nov 27, 2016 at 7:58 AM, Amir Vadai wrote: > Should not allow setting a negative offset that goes below the skb head. ... > diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c > index b54d56d4959b..e79e8a88f2d2 100644 > --- a/net/sched/act_pedit.c > +++ b/net/sched/act_pedit.c > @@

[PATCH net] net/sched: act_pedit: limit negative offset

2016-11-27 Thread Amir Vadai
Should not allow setting a negative offset that goes below the skb head. Signed-off-by: Amir Vadai --- Hi Dave, Please pull to -stable branches. Thanks, Amir net/sched/act_pedit.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/sched/act_pedit.c b/net/sched/act_ped