Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'sched-urgent-2025-03-07' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull misc scheduler fixes from Ingo Molnar:

- Fix deadline scheduler sysctl parameter setting bug

- Fix RT scheduler sysctl parameter setting bug

- Fix possible memory corruption in child_cfs_rq_on_list()

* tag 'sched-urgent-2025-03-07' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
sched/rt: Update limit of sched_rt sysctl in documentation
sched/deadline: Use online cpus for validating runtime
sched/fair: Fix potential memory corruption in child_cfs_rq_on_list

+8 -3
+3
Documentation/scheduler/sched-rt-group.rst
··· 102 102 * sched_rt_period_us takes values from 1 to INT_MAX. 103 103 * sched_rt_runtime_us takes values from -1 to sched_rt_period_us. 104 104 * A run time of -1 specifies runtime == period, ie. no limit. 105 + * sched_rt_runtime_us/sched_rt_period_us > 0.05 inorder to preserve 106 + bandwidth for fair dl_server. For accurate value check average of 107 + runtime/period in /sys/kernel/debug/sched/fair_server/cpuX/ 105 108 106 109 107 110 2.2 Default behaviour
+1 -1
kernel/sched/deadline.c
··· 3189 3189 * value smaller than the currently allocated bandwidth in 3190 3190 * any of the root_domains. 3191 3191 */ 3192 - for_each_possible_cpu(cpu) { 3192 + for_each_online_cpu(cpu) { 3193 3193 rcu_read_lock_sched(); 3194 3194 3195 3195 if (dl_bw_visited(cpu, gen))
+4 -2
kernel/sched/fair.c
··· 4045 4045 { 4046 4046 struct cfs_rq *prev_cfs_rq; 4047 4047 struct list_head *prev; 4048 + struct rq *rq = rq_of(cfs_rq); 4048 4049 4049 4050 if (cfs_rq->on_list) { 4050 4051 prev = cfs_rq->leaf_cfs_rq_list.prev; 4051 4052 } else { 4052 - struct rq *rq = rq_of(cfs_rq); 4053 - 4054 4053 prev = rq->tmp_alone_branch; 4055 4054 } 4055 + 4056 + if (prev == &rq->leaf_cfs_rq_list) 4057 + return false; 4056 4058 4057 4059 prev_cfs_rq = container_of(prev, struct cfs_rq, leaf_cfs_rq_list); 4058 4060