Martin KaFai Lau b93ef089d3 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: 8e4597c627fb ("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>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201116200113.2868539-1-kafai@fb.com
2020-11-16 16:46:01 -08:00
..
2020-10-30 11:59:54 -07:00
2020-10-30 11:43:42 -07:00
2020-10-30 11:34:09 -07:00
2020-11-13 12:03:22 -08:00
2020-10-30 11:57:56 -07:00
2020-10-28 09:14:49 -03:00
2020-11-13 12:03:22 -08:00
2020-10-29 19:27:45 +01:00
2020-10-29 19:27:45 +01:00