aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2018-04-18 15:55:59 -0700
committerDaniel Borkmann <[email protected]>2018-04-19 21:46:24 +0200
commit179cde8cef7e88fc7c0f00c3f23482720d8c4a21 (patch)
tree2c336fb5ccae57da2a4d8a1eeb117664ffc40a11 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parenteb3f595dab40b61011c5f123507a7db2df6f0e65 (diff)
bpf: btf: Check members of struct/union
This patch checks a few things of struct's members: 1) It has a valid size (e.g. a "const void" is invalid) 2) A member's size (+ its member's offset) does not exceed the containing struct's size. 3) The member's offset satisfies the alignment requirement The above can only be done after the needs_resolve member's type is resolved. Hence, the above is done together in btf_struct_resolve(). Each possible member's type (e.g. int, enum, modifier...) implements the check_member() ops which will be called from btf_struct_resolve(). Signed-off-by: Martin KaFai Lau <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions