]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix memory corruption caused by nfsd readdir+
authorPetr Vandrovec <petr@vandrovec.name>
Sat, 14 Nov 2009 09:47:07 +0000 (10:47 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 14 Nov 2009 20:55:55 +0000 (12:55 -0800)
commit479c2553af9a176a0613894b9f1ec73425fd56a3
tree3d306d6ee61bfbd6117f2a6e8ec54bffe472c9a2
parent156171c71a0dc4bce12b4408bb1591f8fe32dc1a
Fix memory corruption caused by nfsd readdir+

Commit 8177e6d6dfb9cd03d9bdeb647c32161f8f58f686 ("nfsd: clean up
readdirplus encoding") introduced single character typo in nfs3 readdir+
implementation.  Unfortunately that typo has quite bad side effects:
random memory corruption, followed (on my box) with immediate
spontaneous box reboot.

Using 'p1' instead of 'p' fixes my Linux box rebooting whenever VMware
ESXi box tries to list contents of my home directory.

Signed-off-by: Petr Vandrovec <petr@vandrovec.name>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfsd/nfs3xdr.c