Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assorted fixes for kernel 4.14 #658

Merged
merged 3 commits into from May 4, 2022
Merged

Assorted fixes for kernel 4.14 #658

merged 3 commits into from May 4, 2022

Commits on May 4, 2022

  1. map_test: BPF_OBJ_GET file_flags appeared in 4.15

    Off by one; 6e71b04a8224 was first tagged in 4.15-rc1.
    
    Signed-off-by: Timo Beckers <timo@isovalent.com>
    ti-mo committed May 4, 2022
    Copy the full SHA
    953d2f5 View commit details
    Browse the repository at this point in the history
  2. link_test: remove AttachType from cgroup fixtures

    Since the test is gated by haveProgAttach(), it should not specify AttachType,
    which is a feature available as of 4.17.
    
    Also, CGroupSKB doesn't require specifying AttachType.
    
    Signed-off-by: Timo Beckers <timo@isovalent.com>
    ti-mo committed May 4, 2022
    Copy the full SHA
    2a6dfb7 View commit details
    Browse the repository at this point in the history
  3. prog_test: remove map from TestProgramInstructions

    Kernels up until 4.16 return kernel pointers in the constant field of map load
    instructions and don't set the source register to pseudo values correctly. This
    results in an incorrect Tag value calculation on the userspace side.
    
    Remove the use of a map fd in TestProgramInstructions to fix the test between
    kernel versions 4.13 and 4.16.
    
    Signed-off-by: Timo Beckers <timo@isovalent.com>
    ti-mo committed May 4, 2022
    Copy the full SHA
    1bf90d8 View commit details
    Browse the repository at this point in the history