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

bpf: Do not allow to load sleepable BPF_TRACE_RAW_TP program #4351

Closed
wants to merge 3 commits into from

Commits on Jan 17, 2023

  1. adding ci files

    Kernel Patches Daemon committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    cb53306 View commit details
    Browse the repository at this point in the history
  2. bpf: Do not allow to load sleepable BPF_TRACE_RAW_TP program

    Currently we allow to load any tracing program as sleepable,
    but BPF_TRACE_RAW_TP can't sleep. Making the check explicit
    for tracing programs attach types, so sleepable BPF_TRACE_RAW_TP
    will fail to load.
    
    Updating the verifier error to mention iter programs as well.
    
    Acked-by: Song Liu <song@kernel.org>
    Acked-by: Yonghong Song <yhs@fb.com>
    Signed-off-by: Jiri Olsa <jolsa@kernel.org>
    olsajiri authored and Kernel Patches Daemon committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    5aab6fb View commit details
    Browse the repository at this point in the history
  3. bpf/selftests: Add verifier tests for loading sleepable programs

    Adding verifier tests for loading all types od allowed
    sleepable programs plus reject for tp_btf type.
    
    Acked-by: Song Liu <song@kernel.org>
    Signed-off-by: Jiri Olsa <jolsa@kernel.org>
    olsajiri authored and Kernel Patches Daemon committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    6098bb1 View commit details
    Browse the repository at this point in the history