/* * Copyright (c) 2014 LSI Corporation * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. */ #ifndef _DT_BINDINGS_CLK_AXM5516_H #define _DT_BINDINGS_CLK_AXM5516_H #define AXXIA_CLK_FAB_PLL 0 #define AXXIA_CLK_CPU_PLL 1 #define AXXIA_CLK_SYS_PLL 2 #define AXXIA_CLK_SM0_PLL 3 #define AXXIA_CLK_SM1_PLL 4 #define AXXIA_CLK_FAB_DIV 5 #define AXXIA_CLK_SYS_DIV 6 #define AXXIA_CLK_NRCP_DIV 7 #define AXXIA_CLK_CPU0_DIV 8 #define AXXIA_CLK_CPU1_DIV 9 #define AXXIA_CLK_CPU2_DIV 10 #define AXXIA_CLK_CPU3_DIV 11 #define AXXIA_CLK_PER_DIV 12 #define AXXIA_CLK_MMC_DIV 13 #define AXXIA_CLK_FAB 14 #define AXXIA_CLK_SYS 15 #define AXXIA_CLK_NRCP 16 #define AXXIA_CLK_CPU0 17 #define AXXIA_CLK_CPU1 18 #define AXXIA_CLK_CPU2 19 #define AXXIA_CLK_CPU3 20 #define AXXIA_CLK_PER 21 #define AXXIA_CLK_MMC 22 #endif ion value='emaclite-cleanup'>emaclite-cleanup net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-02-04 23:18:55 -0800
committerDavid S. Miller <davem@davemloft.net>2017-02-05 17:23:04 -0500
commit7892032cfe67f4bde6fc2ee967e45a8fbaf33756 (patch)
treecbadc1cb0484fbdcd3d5d68d5189c1d022d0d0d4 /net
parentd71b7896886345c53ef1d84bda2bc758554f5d61 (diff)
ip6_gre: fix ip6gre_err() invalid reads
Andrey Konovalov reported out of bound accesses in ip6gre_err() If GRE flags contains GRE_KEY, the following expression *(((__be32 *)p) + (grehlen / 4) - 1) accesses data ~40 bytes after the expected point, since grehlen includes the size of IPv6 headers. Let's use a "struct gre_base_hdr *greh" pointer to make this code more readable. p[1] becomes greh->protocol. grhlen is the GRE header length. Fixes: c12b395a4664 ("gre: Support GRE over IPv6") Signed-off-by: Eric Dumazet <edumazet@google.com> Reported-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/ip6_gre.c40
1 files changed, 21 insertions, 19 deletions
diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c