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>