summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2016-01-22 09:28:38 +0800
committerSasha Levin <sasha.levin@oracle.com>2016-04-13 20:44:39 -0400
commit03f41fac326b77e5f5baf059f7f007677a1b70c8 (patch)
tree2456afeae2a0a4817f48ef20be9f6b1f0110ea53 /include/linux
parent6050b33fcc3538549cd59a19eb17a4a5fb1e6134 (diff)
downloadlwn-03f41fac326b77e5f5baf059f7f007677a1b70c8.tar.gz
lwn-03f41fac326b77e5f5baf059f7f007677a1b70c8.zip
btrfs: async-thread: Fix a use-after-free error for trace
[ Upstream commit 0a95b851370b84a4b9d92ee6d1fa0926901d0454 ] 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 <davej@codemonkey.org.uk> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: Chris Mason <clm@fb.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions