]> git.hungrycats.org Git - linux/commit
Make sure to kunmap() the right address in fs/nfs/dir.c.
authorLinus Torvalds <torvalds@home.transmeta.com>
Fri, 11 Apr 2003 04:52:08 +0000 (21:52 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 11 Apr 2003 04:52:08 +0000 (21:52 -0700)
commit8f44c5c2a379c847e823624f7c2da0039bbc0f2f
tree612e4f079653cc8b2d6964d9e5a9d705641548dd
parentd26a42bb44a67428ffbf8ade8e0ba8a6aa4e41c5
Make sure to kunmap() the right address in fs/nfs/dir.c.

Found by Rik van Riel:

 "There's a serious bug in the handling of the pointer returned
  by kmap_atomic() in nfs/dir.c.   The pointer (part of desc) is
  passed into find_dirent_name and from there into dir_decode,
  which modifies the pointer.

  That means you end up passing a wrong address to kunmap_atomic()."
fs/nfs/dir.c