<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/nfsd, branch linux-2.6.37.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.37.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.37.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2011-03-27T19:00:22Z</updated>
<entry>
<title>nfsd: wrong index used in inner loop</title>
<updated>2011-03-27T19:00:22Z</updated>
<author>
<name>Mi Jinlong</name>
</author>
<published>2011-03-11T04:13:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3c923393d39b88dd97cfc3a99899fab22518cae7'/>
<id>urn:sha1:3c923393d39b88dd97cfc3a99899fab22518cae7</id>
<content type='text'>
commit 5a02ab7c3c4580f94d13c683721039855b67cda6 upstream.

We must not use dummy for index.
After the first index, READ32(dummy) will change dummy!!!!

Signed-off-by: Mi Jinlong &lt;mijinlong@cn.fujitsu.com&gt;
[bfields@redhat.com: Trond points out READ_BUF alone is sufficient.]
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>nfsd4: fix struct file leak</title>
<updated>2011-03-27T19:00:21Z</updated>
<author>
<name>J. Bruce Fields</name>
</author>
<published>2011-03-02T23:01:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=692f0703b01ec1d7f367a30c01f28f246bf30624'/>
<id>urn:sha1:692f0703b01ec1d7f367a30c01f28f246bf30624</id>
<content type='text'>
commit 0997b173609b9229ece28941c118a2a9b278796e upstream.

Make sure we properly reference count the struct files that a lock
depends on, and release them when the lock stateid is released.

This fixes a major leak of struct files when using locking over nfsv4.

Reported-by: Rick Koshi &lt;nfs-bug-report@more-right-rudder.com&gt;
Tested-by: Ivo Přikryl &lt;prikryl@eurosat.cz&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>nfsd4: minor nfs4state.c reshuffling</title>
<updated>2011-03-27T19:00:21Z</updated>
<author>
<name>J. Bruce Fields</name>
</author>
<published>2011-03-03T04:48:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d7e18902cd8c5c45fa170d76cf4b90f74743d054'/>
<id>urn:sha1:d7e18902cd8c5c45fa170d76cf4b90f74743d054</id>
<content type='text'>
commit 529d7b2a7fa31e9f7d08bc790d232c3cbe64fa24 upstream.

Minor cleanup in preparation for a bugfix--moving some code to avoid
forward references, etc.  No change in functionality.

Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>nfsd41: modify the members value of nfsd4_op_flags</title>
<updated>2011-03-27T19:00:17Z</updated>
<author>
<name>Mi Jinlong</name>
</author>
<published>2011-02-18T01:08:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3eb8695fb23b0ea7823736e1dae62367fe08f9bc'/>
<id>urn:sha1:3eb8695fb23b0ea7823736e1dae62367fe08f9bc</id>
<content type='text'>
commit 5ece3cafbd88d4da5c734e1810c4a2e6474b57b2 upstream.

The members of nfsd4_op_flags, (ALLOWED_WITHOUT_FH | ALLOWED_ON_ABSENT_FS)
equals to  ALLOWED_AS_FIRST_OP, maybe that's not what we want.

OP_PUTROOTFH with op_flags = ALLOWED_WITHOUT_FH | ALLOWED_ON_ABSENT_FS,
can't appears as the first operation with out SEQUENCE ops.

This patch modify the wrong value of ALLOWED_WITHOUT_FH etc which
was introduced by f9bb94c4.

Reviewed-by: Benny Halevy &lt;bhalevy@panasas.com&gt;
Signed-off-by: Mi Jinlong &lt;mijinlong@cn.fujitsu.com&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>nfsd: wrong index used in inner loop</title>
<updated>2011-03-14T21:17:35Z</updated>
<author>
<name>roel</name>
</author>
<published>2011-03-08T21:32:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b3d26c5dbee6a6a088221017b817ed34e445da6e'/>
<id>urn:sha1:b3d26c5dbee6a6a088221017b817ed34e445da6e</id>
<content type='text'>
commit 3ec07aa9522e3d5e9d5ede7bef946756e623a0a0 upstream.

Index i was already used in the outer loop

Signed-off-by: Roel Kluin &lt;roel.kluin@gmail.com&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>nfsd: correctly handle return value from nfsd_map_name_to_*</title>
<updated>2011-02-24T22:54:30Z</updated>
<author>
<name>NeilBrown</name>
</author>
<published>2011-02-16T02:08:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1b461f1d7997b56e27d43ceda8bddbdee2071cc4'/>
<id>urn:sha1:1b461f1d7997b56e27d43ceda8bddbdee2071cc4</id>
<content type='text'>
commit 47c85291d3dd1a51501555000b90f8e281a0458e upstream.

These functions return an nfs status, not a host_err.  So don't
try to convert  before returning.

This is a regression introduced by
3c726023402a2f3b28f49b9d90ebf9e71151157d; I fixed up two of the callers,
but missed these two.

Reported-by: Herbert Poetzl &lt;herbert@13thfloor.at&gt;
Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>NFSD: memory corruption due to writing beyond the stat array</title>
<updated>2011-02-24T22:54:22Z</updated>
<author>
<name>Konstantin Khorenko</name>
</author>
<published>2011-02-01T14:16:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a8ebfc0286ec46f4367d77a4f02938c611bbc3bd'/>
<id>urn:sha1:a8ebfc0286ec46f4367d77a4f02938c611bbc3bd</id>
<content type='text'>
commit 3aa6e0aa8ab3e64bbfba092c64d42fd1d006b124 upstream.

If nfsd fails to find an exported via NFS file in the readahead cache, it
should increment corresponding nfsdstats counter (ra_depth[10]), but due to a
bug it may instead write to ra_depth[11], corrupting the following field.

In a kernel with NFSDv4 compiled in the corruption takes the form of an
increment of a counter of the number of NFSv4 operation 0's received; since
there is no operation 0, this is harmless.

In a kernel with NFSDv4 disabled it corrupts whatever happens to be in the
memory beyond nfsdstats.

Signed-off-by: Konstantin Khorenko &lt;khorenko@openvz.org&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>nfsd4: name-&gt;id mapping should fail with BADOWNER not BADNAME</title>
<updated>2011-02-17T23:14:14Z</updated>
<author>
<name>J. Bruce Fields</name>
</author>
<published>2011-01-04T23:02:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=39708a71e7632872d2678d0cba0448bd867cddf9'/>
<id>urn:sha1:39708a71e7632872d2678d0cba0448bd867cddf9</id>
<content type='text'>
commit f6af99ec1b261e21219d5eba99e3af48fc6c32d4 upstream.

According to rfc 3530 BADNAME is for strings that represent paths;
BADOWNER is for user/group names that don't map.

And the too-long name should probably be BADOWNER as well; it's
effectively the same as if we couldn't map it.

Reported-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Reported-by: Simon Kirby &lt;sim@hostway.ca&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>nfsd: Fix possible BUG_ON firing in set_change_info</title>
<updated>2010-12-08T16:44:04Z</updated>
<author>
<name>Neil Brown</name>
</author>
<published>2010-12-02T00:14:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c1ac3ffcd0bc7e9617f62be8c7043d53ab84deac'/>
<id>urn:sha1:c1ac3ffcd0bc7e9617f62be8c7043d53ab84deac</id>
<content type='text'>
If vfs_getattr in fill_post_wcc returns an error, we don't
set fh_post_change.
For NFSv4, this can result in set_change_info triggering a BUG_ON.
i.e. fh_post_saved being zero isn't really a bug.

So:
 - instead of BUGging when fh_post_saved is zero, just clear -&gt;atomic.
 - if vfs_getattr fails in fill_post_wcc, take a copy of i_ctime anyway.
   This will be used i seg_change_info, but not overly trusted.
 - While we are there, remove the pointless 'if' statements in set_change_info.
   There is no harm setting all the values.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
Cc: stable@kernel.org
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
<entry>
<title>BKL: remove references to lock_kernel from comments</title>
<updated>2010-11-17T16:59:32Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2010-11-17T15:26:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=460781b54253e3ed10a0a2a433bdc548ec952269'/>
<id>urn:sha1:460781b54253e3ed10a0a2a433bdc548ec952269</id>
<content type='text'>
Lock_kernel is gone from the code, so the comments should be updated,
too.  nfsd now uses lock_flocks instead of lock_kernel to protect
against posix file locks.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Acked-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
Cc: linux-nfs@vger.kernel.org
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
