diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-03-30 09:48:45 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-03-30 09:48:58 +0200 |
commit | c69f203df3e61414fbf1a66d130abfd7c3bf3fd0 (patch) | |
tree | a6850417a1871f7bf321ef0318bd8c43439d7fed /net/ipv4/fib_frontend.c | |
parent | Merge tag 'perf-core-for-mingo-4.12-20170327' of git://git.kernel.org/pub/scm... (diff) | |
parent | Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost (diff) | |
download | linux-c69f203df3e61414fbf1a66d130abfd7c3bf3fd0.tar.xz linux-c69f203df3e61414fbf1a66d130abfd7c3bf3fd0.zip |
Merge branch 'linus' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r-- | net/ipv4/fib_frontend.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index 42bfd08109dd..8f2133ffc2ff 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c @@ -1083,7 +1083,8 @@ static void nl_fib_input(struct sk_buff *skb) net = sock_net(skb->sk); nlh = nlmsg_hdr(skb); - if (skb->len < NLMSG_HDRLEN || skb->len < nlh->nlmsg_len || + if (skb->len < nlmsg_total_size(sizeof(*frn)) || + skb->len < nlh->nlmsg_len || nlmsg_len(nlh) < sizeof(*frn)) return; |