]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS: Fix use after free issues in pnfs_do_read()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 25 Apr 2017 15:26:53 +0000 (11:26 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 25 Apr 2017 19:42:34 +0000 (15:42 -0400)
commit4f924c4b740995535c651242868428aa517f4d9b
tree4cdc02f84e2246efef3fe50dfb138e9cff9aeadd
parentb76b2e2e736dc7c35e7e74767f2eacd4b489cfa5
pNFS: Fix use after free issues in pnfs_do_read()

The assumption should be that if the caller returns PNFS_ATTEMPTED, then hdr
has been consumed, and so we should not be testing hdr->task.tk_status.
If the caller returns PNFS_TRY_AGAIN, then we need to recoalesce and
free hdr.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c