Commit ea66bf8
committed
Merge tag 'sched-urgent-2023-01-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fixes from Ingo Molnar:
- Fix scheduler frequency invariance bug related to overly long
tickless periods triggering an integer overflow and disabling the
feature.
- Fix use-after-free bug in dup_user_cpus_ptr().
- Fix do_set_cpus_allowed() deadlock scenarios related to calling
kfree() with the pi_lock held. NOTE: the rcu_free() is the 'lazy'
solution here - we looked at patches to free the structure after the
pi_lock got dropped, but that looked quite a bit messier - and none
of this is truly performance critical. We can revisit this if it's
too lazy of a solution ...
* tag 'sched-urgent-2023-01-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
sched/core: Use kfree_rcu() in do_set_cpus_allowed()
sched/core: Fix use-after-free bug in dup_user_cpus_ptr()
sched/core: Fix arch_scale_freq_tick() on tickless systems1 file changed
+60
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2604 | 2604 | | |
2605 | 2605 | | |
2606 | 2606 | | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
| 2610 | + | |
2607 | 2611 | | |
2608 | 2612 | | |
2609 | | - | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
| 2620 | + | |
| 2621 | + | |
| 2622 | + | |
| 2623 | + | |
| 2624 | + | |
| 2625 | + | |
| 2626 | + | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
2610 | 2630 | | |
2611 | 2631 | | |
2612 | 2632 | | |
2613 | 2633 | | |
2614 | 2634 | | |
| 2635 | + | |
2615 | 2636 | | |
2616 | 2637 | | |
2617 | | - | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
2618 | 2650 | | |
2619 | 2651 | | |
2620 | | - | |
2621 | | - | |
| 2652 | + | |
| 2653 | + | |
2622 | 2654 | | |
2623 | 2655 | | |
2624 | | - | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
2625 | 2662 | | |
2626 | | - | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
2627 | 2667 | | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
2628 | 2672 | | |
2629 | 2673 | | |
2630 | 2674 | | |
| |||
3581 | 3625 | | |
3582 | 3626 | | |
3583 | 3627 | | |
| 3628 | + | |
| 3629 | + | |
| 3630 | + | |
| 3631 | + | |
| 3632 | + | |
3584 | 3633 | | |
3585 | 3634 | | |
3586 | 3635 | | |
| |||
5504 | 5553 | | |
5505 | 5554 | | |
5506 | 5555 | | |
5507 | | - | |
| 5556 | + | |
| 5557 | + | |
| 5558 | + | |
5508 | 5559 | | |
5509 | 5560 | | |
5510 | 5561 | | |
| |||
8239 | 8290 | | |
8240 | 8291 | | |
8241 | 8292 | | |
8242 | | - | |
8243 | | - | |
| 8293 | + | |
| 8294 | + | |
8244 | 8295 | | |
8245 | 8296 | | |
8246 | 8297 | | |
| |||
0 commit comments