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: NDave Wysochanski <dwysocha@redhat.com> Signed-off-by: NTrond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录