Commit 85952cd3 authored by Dave Wysochanski's avatar Dave Wysochanski Committed by Zheng Zengkai
Browse files

NFS4: Fix use-after-free in trace_event_raw_event_nfs4_set_lock



stable inclusion
from stable-5.10.9
commit 1b42712e43e5d574a985661e336e48b0f6ba06b6
bugzilla: 47457

--------------------------------

commit 3d1a90ab upstream.

It is only safe to call the tracepoint before rpc_put_task() because
'data' is freed inside nfs4_lock_release (rpc_release).

Fixes: 48c9579a ("Adding stateid information to tracepoints")
Signed-off-by: default avatarDave Wysochanski <dwysocha@redhat.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent e52931bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment