Thread (21 messages) 21 messages, 6 authors, 2025-09-21

Re: [PATCH v16 09/10] unwind deferred: Use SRCU unwind_deferred_task_work()

From: Steven Rostedt <rostedt@kernel.org>
Date: 2025-09-21 23:36:12
Also in: bpf, lkml

On Fri, 19 Sep 2025 17:31:15 -0700
Josh Poimboeuf [off-list ref] wrote:
On Tue, Jul 29, 2025 at 02:23:13PM -0400, Steven Rostedt wrote:
quoted
@@ -230,6 +232,14 @@ int unwind_deferred_request(struct unwind_work *work, u64 *cookie)
 	if (WARN_ON_ONCE(!CAN_USE_IN_NMI && in_nmi()))
 		return -EINVAL;
 
+	/* Do not allow cancelled works to request again */
+	bit = READ_ONCE(work->bit);
+	if (WARN_ON_ONCE(bit < 0))
+		return -EINVAL;  
The local 'bit' variable is unsigned long, so this will never be < 0.

Should be "bit == -1"?
Yeah, that needs to be fixed. Thanks!

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help