]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix a tracepoint NULL-pointer dereference
authorAnna Schumaker <Anna.Schumaker@netapp.com>
Mon, 5 Oct 2015 20:43:26 +0000 (16:43 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 6 Oct 2015 22:56:25 +0000 (18:56 -0400)
commitb9ab01b9059d0bc308dfcba4ff2bb3ddce554730
tree34bfd328291cecfa188a80e3674de0873aa5ceb1
parent50c38056b8e3be96c715c69636b58acb997a8f3c
NFS: Fix a tracepoint NULL-pointer dereference

Running xfstest generic/013 with the tracepoint nfs:nfs4_open_file
enabled produces a NULL-pointer dereference when calculating fileid and
filehandle of the opened file.  Fix this by checking if state is NULL
before trying to use the inode pointer.

Reported-by: Olga Kornievskaia <aglo@umich.edu>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4trace.h