aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/vsec.c
diff options
context:
space:
mode:
authorAndrea Righi <[email protected]>2025-03-03 17:51:59 +0000
committerTejun Heo <[email protected]>2025-03-03 17:55:48 +0000
commit9360dfe4cbd62ff1eb8217b815964931523b75b3 (patch)
tree02d5452f2b0b802bc740957174f43c9d2914e90c /drivers/platform/x86/intel/vsec.c
parentsched_ext: Fix pick_task_scx() picking non-queued tasks when it's called with... (diff)
downloadkernel-9360dfe4cbd62ff1eb8217b815964931523b75b3.tar.gz
kernel-9360dfe4cbd62ff1eb8217b815964931523b75b3.zip
sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()
If a BPF scheduler provides an invalid CPU (outside the nr_cpu_ids range) as prev_cpu to scx_bpf_select_cpu_dfl() it can cause a kernel crash. To prevent this, validate prev_cpu in scx_bpf_select_cpu_dfl() and trigger an scx error if an invalid CPU is specified. Fixes: f0e1a0643a59b ("sched_ext: Implement BPF extensible scheduler class") Cc: [email protected] # v6.12+ Signed-off-by: Andrea Righi <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/vsec.c')
0 files changed, 0 insertions, 0 deletions