lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240408084404.31991-1-qiang.zhang1211@gmail.com>
Date: Mon,  8 Apr 2024 16:44:04 +0800
From: Zqiang <qiang.zhang1211@...il.com>
To: tj@...nel.org,
	jiangshanlai@...il.com
Cc: qiang.zhang1211@...il.com,
	linux-kernel@...r.kernel.org
Subject: [PATCH] workqueue: Add destroy_work_on_stack() in workqueue_softirq_dead()

This commit add missed destroy_work_on_stack() operations for
dead_work.work.

Signed-off-by: Zqiang <qiang.zhang1211@...il.com>
---
 kernel/workqueue.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index db004d2180e8..1edb0b06ae7c 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -3661,6 +3661,7 @@ void workqueue_softirq_dead(unsigned int cpu)
 			queue_work(system_bh_wq, &dead_work.work);
 
 		wait_for_completion(&dead_work.done);
+		destroy_work_on_stack(&dead_work.work);
 	}
 }
 
-- 
2.17.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ