From 3c2ae438c266483bb5047c5642056c61e3277953 Mon Sep 17 00:00:00 2001 From: Petr Mladek Date: Apr 18 2023 08:06:20 +0000 Subject: workqueue: Fix missing kfree(rescuer) in destroy_workqueue() (bsc#1210460). --- diff --git a/patches.suse/workqueue-Fix-missing-kfree-rescuer-in-destroy_workq.patch b/patches.suse/workqueue-Fix-missing-kfree-rescuer-in-destroy_workq.patch new file mode 100644 index 0000000..7bed0ba --- /dev/null +++ b/patches.suse/workqueue-Fix-missing-kfree-rescuer-in-destroy_workq.patch @@ -0,0 +1,32 @@ +From 8efe1223d73c218ce7e8b2e0e9aadb974b582d7f Mon Sep 17 00:00:00 2001 +From: Tejun Heo +Date: Fri, 20 Sep 2019 13:39:57 -0700 +Subject: [PATCH] workqueue: Fix missing kfree(rescuer) in destroy_workqueue() +Git-commit: 8efe1223d73c218ce7e8b2e0e9aadb974b582d7f +Patch-mainline: v5.5-rc1 +References: bsc#1210460 + +Signed-off-by: Tejun Heo +Reported-by: Qian Cai +Fixes: def98c84b6cd ("workqueue: Fix spurious sanity check failures in destroy_workqueue()") +Acked-by: Petr Mladek + +--- + kernel/workqueue.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/kernel/workqueue.c b/kernel/workqueue.c +index 93e20f5330fc..3f067f1d72e3 100644 +--- a/kernel/workqueue.c ++++ b/kernel/workqueue.c +@@ -4345,6 +4345,7 @@ void destroy_workqueue(struct workqueue_struct *wq) + + /* rescuer will empty maydays list before exiting */ + kthread_stop(rescuer->task); ++ kfree(rescuer); + } + + /* sanity checks */ +-- +2.35.3 + diff --git a/series.conf b/series.conf index 044839b..51b3f8a 100644 --- a/series.conf +++ b/series.conf @@ -53696,6 +53696,7 @@ patches.suse/edac-ghes-fix-locking-and-memory-barrier-issues.patch patches.suse/edac-ghes-do-not-warn-when-incrementing-refcount-on-0.patch patches.suse/workqueue-Fix-spurious-sanity-check-failures-in-dest.patch + patches.suse/workqueue-Fix-missing-kfree-rescuer-in-destroy_workq.patch patches.suse/0001-workqueue-Fix-pwq-ref-leak-in-rescuer_thread.patch patches.suse/cgroup-pids-use-atomic64_t-for-pids-limit.patch patches.suse/livepatch-keep-replaced-patches-until-post_patch-callback-is-called.patch