aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorCraig Gallek <kraig@google.com>2017-10-05 10:41:57 -0400
committerDavid S. Miller <davem@davemloft.net>2017-10-05 21:42:28 -0700
commitb13c5c14dbfd5923d773de9661404ed9600c53ef (patch)
treecfb266d6bb37d00da439d028930d34691ae8e1c0 /net/ipv6
parentnet: qcom/emac: make function emac_isr static (diff)
downloadlinux-dev-b13c5c14dbfd5923d773de9661404ed9600c53ef.tar.xz
linux-dev-b13c5c14dbfd5923d773de9661404ed9600c53ef.zip
libbpf: parse maps sections of varying size
This library previously assumed a fixed-size map options structure. Any new options were ignored. In order to allow the options structure to grow and to support parsing older programs, this patch updates the maps section parsing to handle varying sizes. Object files with maps sections smaller than expected will have the new fields initialized to zero. Object files which have larger than expected maps sections will be rejected unless all of the unrecognized data is zero. This change still assumes that each map definition in the maps section is the same size. Signed-off-by: Craig Gallek <kraig@google.com> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions