[driver] fixing possible app/driver/nfsd race
entry->filename points to something the app address space. if app was started and the ctrl-ed c, then when nfsd picks up the upcall it should check if the pointer is still valid
This commit is contained in:
parent
863db2735b
commit
c6ee60b362
1 changed files with 7 additions and 4 deletions
|
|
@ -558,10 +558,13 @@ NTSTATUS marshal_nfs41_header(
|
|||
tmp += sizeof(HANDLE);
|
||||
|
||||
#ifdef DEBUG_MARSHAL_HEADER
|
||||
if (MmIsAddressValid(entry->filename))
|
||||
DbgP("[upcall header] xid=%lld opcode=%s filename=%wZ version=%d "
|
||||
"session=0x%x open_state=0x%x\n", entry->xid,
|
||||
opcode2string(entry->opcode), entry->filename,
|
||||
entry->version, entry->session, entry->open_state);
|
||||
else
|
||||
status = STATUS_INTERNAL_ERROR;
|
||||
#endif
|
||||
out:
|
||||
return status;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue