Thread (3 messages) 3 messages, 3 authors, 2016-01-22

Re: [PATCH] btrfs: async-thread: Fix a use-after-free error for trace

From: David Sterba <hidden>
Date: 2016-01-22 14:03:19

On Fri, Jan 22, 2016 at 09:28:38AM +0800, Qu Wenruo wrote:
Parameter of trace_btrfs_work_queued() can be freed in its workqueue.
So no one use use that pointer after queue_work().

Fix the user-after-free bug by move the trace line before queue_work().

Reported-by: Dave Jones <redacted>
Signed-off-by: Qu Wenruo <redacted>
Reviewed-by: David Sterba <dsterba@suse.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help