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: Fix the irq and nmi check in bpf_sk_storage for tracing usage #356

Closed
wants to merge 2 commits into from

Commits on Nov 16, 2020

  1. adding ci files

    kernel-patches-bot committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    793c26d View commit details
    Browse the repository at this point in the history
  2. bpf: Fix the irq and nmi check in bpf_sk_storage for tracing usage

    The intention of the current check is to avoid using bpf_sk_storage
    in irq and nmi.  Jakub pointed out that the current check cannot
    do that.  For example, in_serving_softirq() returns true
    if the softirq handling is interrupted by hard irq.
    
    Fixes: 8e4597c ("bpf: Allow using bpf_sk_storage in FENTRY/FEXIT/RAW_TP")
    Suggested-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Martin KaFai Lau <kafai@fb.com>
    iamkafai authored and kernel-patches-bot committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    da2a233 View commit details
    Browse the repository at this point in the history