Merge branch 'bpf-ctx-narrow'
authorDavid S. Miller <davem@davemloft.net>
Wed, 14 Jun 2017 18:56:26 +0000 (14:56 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Jun 2017 18:56:26 +0000 (14:56 -0400)
commit2fae5d0e647c6470d206e72b5fc24972bb900f70
treebc04b4c45c52a732e1d92c7348e3a1354bfd47f6
parenta88e2676a6cd3352c2f590f872233d83d8db289c
parent18f3d6be6be124316d3abfee667c5e8b88dec100
Merge branch 'bpf-ctx-narrow'

Yonghong Song says:

====================
bpf: permit bpf program narrower loads for ctx fields

Today, if users try to access a ctx field through a narrower load, e.g.,
__be16 prot = __sk_buff->protocol, verifier will fail.
This set contains the verifier change to permit such loads for
certain ctx fields as well as the new test cases in selftests/bpf.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>