Commit e25ddfb
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>1 parent a3967ba commit e25ddfb
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8547 | 8547 | | |
8548 | 8548 | | |
8549 | 8549 | | |
| 8550 | + | |
| 8551 | + | |
| 8552 | + | |
| 8553 | + | |
8550 | 8554 | | |
8551 | 8555 | | |
8552 | 8556 | | |
| |||
0 commit comments