Commit 27146b8
committed
bpf: Reject bpf_timer for PREEMPT_RT
JIRA: https://issues.redhat.com/browse/RHEL-83826
commit e25ddfb
Author: Leon Hwang <leon.hwang@linux.dev>
Date: Wed Sep 10 20:57:39 2025 +0800
bpf: Reject bpf_timer for PREEMPT_RT
When enable CONFIG_PREEMPT_RT, the kernel will warn when run timer
selftests by './test_progs -t timer':
BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:48
In order to avoid such warning, reject bpf_timer in verifier when
PREEMPT_RT is enabled.
Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
Link: https://lore.kernel.org/r/20250910125740.52172-2-leon.hwang@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Gregory Bell <grbell@redhat.com>1 parent 2c415ad commit 27146b8
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7763 | 7763 | | |
7764 | 7764 | | |
7765 | 7765 | | |
| 7766 | + | |
| 7767 | + | |
| 7768 | + | |
| 7769 | + | |
7766 | 7770 | | |
7767 | 7771 | | |
7768 | 7772 | | |
| |||
0 commit comments