NFSv4: Fix memory corruption in nfs4_proc_open_confirm
nfs41_wake_and_assign_slot() relies on the task->tk_msg.rpc_argp and task->tk_msg.rpc_resp always pointing to the session sequence arguments. nfs4_proc_open_confirm tries to pull a fast one by reusing the open sequence structure, thus causing corruption of the NFSv4 slot table. Cc: stable@vger.kernel.org # 3.12+ Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
@@ -379,12 +379,14 @@ struct nfs_openres {
|
||||
* Arguments to the open_confirm call.
|
||||
*/
|
||||
struct nfs_open_confirmargs {
|
||||
struct nfs4_sequence_args seq_args;
|
||||
const struct nfs_fh * fh;
|
||||
nfs4_stateid * stateid;
|
||||
struct nfs_seqid * seqid;
|
||||
};
|
||||
|
||||
struct nfs_open_confirmres {
|
||||
struct nfs4_sequence_res seq_res;
|
||||
nfs4_stateid stateid;
|
||||
struct nfs_seqid * seqid;
|
||||
};
|
||||
|
Reference in New Issue
Block a user