A previous patch left behind a redundant call to free_bootmem_cpumask_var
possibly leading to a double free (once in the if-branch and once in the
unwind code at the end of the function) if the isolcpus= or nohz_full=
kernel command line parameters failed validation, cf.:

https://lists.yoctoproject.org/g/linux-yocto/message/12797

Signed-off-by: Adrian Cinal <[email protected]>
---
 kernel/sched/isolation.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/kernel/sched/isolation.c b/kernel/sched/isolation.c
index b97d6e05013d..7bebfdc42486 100644
--- a/kernel/sched/isolation.c
+++ b/kernel/sched/isolation.c
@@ -133,7 +133,6 @@ static int __init housekeeping_setup(char *str, unsigned 
long flags)
 
        if (cpumask_empty(non_housekeeping_mask)) {
                pr_info("housekeeping: kernel parameter 'nohz_full=' or 
'isolcpus=' has no valid CPUs.\n");
-               free_bootmem_cpumask_var(non_housekeeping_mask);
                goto free_non_housekeeping_mask;
        }
 
-- 
2.41.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12995): 
https://lists.yoctoproject.org/g/linux-yocto/message/12995
Mute This Topic: https://lists.yoctoproject.org/mt/100796885/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to