]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
net/sched: pedit: make sure that offset is valid
authorAmir Vadai <amir@vadai.me>
Mon, 28 Nov 2016 10:56:40 +0000 (12:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 00:46:00 +0000 (19:46 -0500)
commit95c2027bfeda21a28eb245121e6a249f38d0788e
tree12a0611996a2975e5e1c527f034eabe1d65e84d6
parent2dbb4c05d048995455857a7c2927a4297fc66c3b
net/sched: pedit: make sure that offset is valid

Add a validation function to make sure offset is valid:
1. Not below skb head (could happen when offset is negative).
2. Validate both 'offset' and 'at'.

Signed-off-by: Amir Vadai <amir@vadai.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_pedit.c