diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-03-13 02:22:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-13 06:05:04 +0300 |
commit | 76fecd8275be6de76513430e7526825944ab932f (patch) | |
tree | c04917753aa8f8cd07d54140c9580af45c7f5dd8 /net/switchdev/switchdev.c | |
parent | 2c29b2354a06f42493ddd2a5eb65962981e666ed (diff) | |
download | linux-76fecd8275be6de76513430e7526825944ab932f.tar.xz |
mpls: In mpls_egress verify the packet length.
Reobert Shearman noticed that mpls_egress is failing to verify that
the bytes to be examined are in fact present in the packet before
mpls_egress reads those bytes.
As suggested by David Miller reduce this to a single pskb_may_pull
call so that we don't do unnecessary work in the fast path.
Reported-by: Robert Shearman <rshearma@brocade.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions