<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/net/sunrpc, branch v2.6.39</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>SUNRPC: Allow RPC calls to return ETIMEDOUT instead of EIO</title>
<updated>2011-04-24T18:28:45+00:00</updated>
<author>
<name>Trond Myklebust</name>
<email>Trond.Myklebust@netapp.com</email>
</author>
<published>2011-04-24T18:28:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=7494d00c7b826b6ceb79ec33892bd0ef59be5614'/>
<id>7494d00c7b826b6ceb79ec33892bd0ef59be5614</id>
<content type='text'>
On occasion, it is useful for the NFS layer to distinguish between
soft timeouts and other EIO errors due to (say) encoding errors,
or authentication errors.

The following patch ensures that the default behaviour of the RPC
layer remains to return EIO on soft timeouts (until we have
audited all the callers).

Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On occasion, it is useful for the NFS layer to distinguish between
soft timeouts and other EIO errors due to (say) encoding errors,
or authentication errors.

The following patch ensures that the default behaviour of the RPC
layer remains to return EIO on soft timeouts (until we have
audited all the callers).

Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>NFSv4.1: Don't update sequence number if rpc_task is not sent</title>
<updated>2011-04-18T21:05:48+00:00</updated>
<author>
<name>Bryan Schumaker</name>
<email>bjschuma@netapp.com</email>
</author>
<published>2011-04-18T19:57:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=468f86134ee515234afe5c5b3f39f266c50e61a5'/>
<id>468f86134ee515234afe5c5b3f39f266c50e61a5</id>
<content type='text'>
If we fail to contact the gss upcall program, then no message will
be sent to the server.  The client still updated the sequence number,
however, and this lead to NFS4ERR_SEQ_MISMATCH for the next several
RPC calls.

Signed-off-by: Bryan Schumaker &lt;bjschuma@netapp.com&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we fail to contact the gss upcall program, then no message will
be sent to the server.  The client still updated the sequence number,
however, and this lead to NFS4ERR_SEQ_MISMATCH for the next several
RPC calls.

Signed-off-by: Bryan Schumaker &lt;bjschuma@netapp.com&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>SUNRPC: Fix the SUNRPC Kerberos V RPCSEC_GSS module dependencies</title>
<updated>2011-04-15T22:28:18+00:00</updated>
<author>
<name>Trond Myklebust</name>
<email>Trond.Myklebust@netapp.com</email>
</author>
<published>2011-04-15T16:58:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=e3b2854faabd10438f5e7e34e078b099c3375577'/>
<id>e3b2854faabd10438f5e7e34e078b099c3375577</id>
<content type='text'>
Since kernel 2.6.35, the SUNRPC Kerberos support has had an implicit
dependency on a number of additional crypto modules. The following
patch makes that dependency explicit.

Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since kernel 2.6.35, the SUNRPC Kerberos support has had an implicit
dependency on a number of additional crypto modules. The following
patch makes that dependency explicit.

Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>NFS: Fix infinite loop in gss_create_upcall()</title>
<updated>2011-04-13T19:12:22+00:00</updated>
<author>
<name>Bryan Schumaker</name>
<email>bjschuma@netapp.com</email>
</author>
<published>2011-04-13T18:31:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=d1a8016a2d1e75021ecc8715e3c81442d7218eb6'/>
<id>d1a8016a2d1e75021ecc8715e3c81442d7218eb6</id>
<content type='text'>
There can be an infinite loop if gss_create_upcall() is called without
the userspace program running.  To prevent this, we return -EACCES if
we notice that pipe_version hasn't changed (indicating that the pipe
has not been opened).

Signed-off-by: Bryan Schumaker &lt;bjschuma@netapp.com&gt;

Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There can be an infinite loop if gss_create_upcall() is called without
the userspace program running.  To prevent this, we return -EACCES if
we notice that pipe_version hasn't changed (indicating that the pipe
has not been opened).

Signed-off-by: Bryan Schumaker &lt;bjschuma@netapp.com&gt;

Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6</title>
<updated>2011-04-08T18:47:35+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-04-08T18:47:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=94c8a984ae2adbd9a9626fb42e0f2faf3e36e86f'/>
<id>94c8a984ae2adbd9a9626fb42e0f2faf3e36e86f</id>
<content type='text'>
* 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
  NFS: Change initial mount authflavor only when server returns NFS4ERR_WRONGSEC
  NFS: Fix a signed vs. unsigned secinfo bug
  Revert "net/sunrpc: Use static const char arrays"
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
  NFS: Change initial mount authflavor only when server returns NFS4ERR_WRONGSEC
  NFS: Fix a signed vs. unsigned secinfo bug
  Revert "net/sunrpc: Use static const char arrays"
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "net/sunrpc: Use static const char arrays"</title>
<updated>2011-04-06T18:18:17+00:00</updated>
<author>
<name>Trond Myklebust</name>
<email>Trond.Myklebust@netapp.com</email>
</author>
<published>2011-04-06T17:13:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=0867659fa3c245bf203d837a82e0f6ea5079c2c5'/>
<id>0867659fa3c245bf203d837a82e0f6ea5079c2c5</id>
<content type='text'>
This reverts commit 411b5e05617593efebc06241dbc56f42150f2abe.

Olga Kornievskaia reports:

Problem: linux client mounting linux server using rc4-hmac-md5
enctype. gssd fails with create a context after receiving a reply from
the server.

Diagnose: putting printout statements in the server kernel and
kerberos libraries revealed that client and server derived different
integrity keys.

Server kernel code was at fault due the the commit

[aglo@skydive linux-pnfs]$ git show 411b5e05617593efebc06241dbc56f42150f2abe

Trond: The problem is that since it relies on virt_to_page(), you cannot
call sg_set_buf() for data in the const section.

Reported-by: Olga Kornievskaia &lt;aglo@citi.umich.edu&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Cc: stable@kernel.org	[2.6.36+]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 411b5e05617593efebc06241dbc56f42150f2abe.

Olga Kornievskaia reports:

Problem: linux client mounting linux server using rc4-hmac-md5
enctype. gssd fails with create a context after receiving a reply from
the server.

Diagnose: putting printout statements in the server kernel and
kerberos libraries revealed that client and server derived different
integrity keys.

Server kernel code was at fault due the the commit

[aglo@skydive linux-pnfs]$ git show 411b5e05617593efebc06241dbc56f42150f2abe

Trond: The problem is that since it relies on virt_to_page(), you cannot
call sg_set_buf() for data in the const section.

Reported-by: Olga Kornievskaia &lt;aglo@citi.umich.edu&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Cc: stable@kernel.org	[2.6.36+]
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix common misspellings</title>
<updated>2011-03-31T14:26:23+00:00</updated>
<author>
<name>Lucas De Marchi</name>
<email>lucas.demarchi@profusion.mobi</email>
</author>
<published>2011-03-31T01:57:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=25985edcedea6396277003854657b5f3cb31a628'/>
<id>25985edcedea6396277003854657b5f3cb31a628</id>
<content type='text'>
Fixes generated by 'codespell' and manually reviewed.

Signed-off-by: Lucas De Marchi &lt;lucas.demarchi@profusion.mobi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes generated by 'codespell' and manually reviewed.

Signed-off-by: Lucas De Marchi &lt;lucas.demarchi@profusion.mobi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>NFS: Ensure that rpc_release_resources_task() can be called twice.</title>
<updated>2011-03-27T15:55:36+00:00</updated>
<author>
<name>OGAWA Hirofumi</name>
<email>hirofumi@mail.parknet.co.jp</email>
</author>
<published>2011-03-27T15:48:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=a271c5a0dea418931b6a903ef85adc30ad4c54be'/>
<id>a271c5a0dea418931b6a903ef85adc30ad4c54be</id>
<content type='text'>
BUG: atomic_dec_and_test(): -1: atomic counter underflow at:
Pid: 2827, comm: mount.nfs Not tainted 2.6.38 #1
Call Trace:
 [&lt;ffffffffa02223a0&gt;] ? put_rpccred+0x44/0x14e [sunrpc]
 [&lt;ffffffffa021bbe9&gt;] ? rpc_ping+0x4e/0x58 [sunrpc]
 [&lt;ffffffffa021c4a5&gt;] ? rpc_create+0x481/0x4fc [sunrpc]
 [&lt;ffffffffa022298a&gt;] ? rpcauth_lookup_credcache+0xab/0x22d [sunrpc]
 [&lt;ffffffffa028be8c&gt;] ? nfs_create_rpc_client+0xa6/0xeb [nfs]
 [&lt;ffffffffa028c660&gt;] ? nfs4_set_client+0xc2/0x1f9 [nfs]
 [&lt;ffffffffa028cd3c&gt;] ? nfs4_create_server+0xf2/0x2a6 [nfs]
 [&lt;ffffffffa0295d07&gt;] ? nfs4_remote_mount+0x4e/0x14a [nfs]
 [&lt;ffffffff810dd570&gt;] ? vfs_kern_mount+0x6e/0x133
 [&lt;ffffffffa029605a&gt;] ? nfs_do_root_mount+0x76/0x95 [nfs]
 [&lt;ffffffffa029643d&gt;] ? nfs4_try_mount+0x56/0xaf [nfs]
 [&lt;ffffffffa0297434&gt;] ? nfs_get_sb+0x435/0x73c [nfs]
 [&lt;ffffffff810dd59b&gt;] ? vfs_kern_mount+0x99/0x133
 [&lt;ffffffff810dd693&gt;] ? do_kern_mount+0x48/0xd8
 [&lt;ffffffff810f5b75&gt;] ? do_mount+0x6da/0x741
 [&lt;ffffffff810f5c5f&gt;] ? sys_mount+0x83/0xc0
 [&lt;ffffffff8100293b&gt;] ? system_call_fastpath+0x16/0x1b

Well, so, I think this is real bug of nfs codes somewhere. With some
review, the code

rpc_call_sync()
    rpc_run_task
        rpc_execute()
            __rpc_execute()
                rpc_release_task()
                    rpc_release_resources_task()
                        put_rpccred()                &lt;= release cred
    rpc_put_task
        rpc_do_put_task()
            rpc_release_resources_task()
                put_rpccred()                        &lt;= release cred again

seems to be release cred unintendedly.

Signed-off-by: OGAWA Hirofumi &lt;hirofumi@mail.parknet.co.jp&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: atomic_dec_and_test(): -1: atomic counter underflow at:
Pid: 2827, comm: mount.nfs Not tainted 2.6.38 #1
Call Trace:
 [&lt;ffffffffa02223a0&gt;] ? put_rpccred+0x44/0x14e [sunrpc]
 [&lt;ffffffffa021bbe9&gt;] ? rpc_ping+0x4e/0x58 [sunrpc]
 [&lt;ffffffffa021c4a5&gt;] ? rpc_create+0x481/0x4fc [sunrpc]
 [&lt;ffffffffa022298a&gt;] ? rpcauth_lookup_credcache+0xab/0x22d [sunrpc]
 [&lt;ffffffffa028be8c&gt;] ? nfs_create_rpc_client+0xa6/0xeb [nfs]
 [&lt;ffffffffa028c660&gt;] ? nfs4_set_client+0xc2/0x1f9 [nfs]
 [&lt;ffffffffa028cd3c&gt;] ? nfs4_create_server+0xf2/0x2a6 [nfs]
 [&lt;ffffffffa0295d07&gt;] ? nfs4_remote_mount+0x4e/0x14a [nfs]
 [&lt;ffffffff810dd570&gt;] ? vfs_kern_mount+0x6e/0x133
 [&lt;ffffffffa029605a&gt;] ? nfs_do_root_mount+0x76/0x95 [nfs]
 [&lt;ffffffffa029643d&gt;] ? nfs4_try_mount+0x56/0xaf [nfs]
 [&lt;ffffffffa0297434&gt;] ? nfs_get_sb+0x435/0x73c [nfs]
 [&lt;ffffffff810dd59b&gt;] ? vfs_kern_mount+0x99/0x133
 [&lt;ffffffff810dd693&gt;] ? do_kern_mount+0x48/0xd8
 [&lt;ffffffff810f5b75&gt;] ? do_mount+0x6da/0x741
 [&lt;ffffffff810f5c5f&gt;] ? sys_mount+0x83/0xc0
 [&lt;ffffffff8100293b&gt;] ? system_call_fastpath+0x16/0x1b

Well, so, I think this is real bug of nfs codes somewhere. With some
review, the code

rpc_call_sync()
    rpc_run_task
        rpc_execute()
            __rpc_execute()
                rpc_release_task()
                    rpc_release_resources_task()
                        put_rpccred()                &lt;= release cred
    rpc_put_task
        rpc_do_put_task()
            rpc_release_resources_task()
                put_rpccred()                        &lt;= release cred again

seems to be release cred unintendedly.

Signed-off-by: OGAWA Hirofumi &lt;hirofumi@mail.parknet.co.jp&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'nfs-for-2.6.39' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6</title>
<updated>2011-03-25T17:03:28+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-03-25T17:03:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=40471856f2e38e9bfa8d605295e8234421110dd6'/>
<id>40471856f2e38e9bfa8d605295e8234421110dd6</id>
<content type='text'>
* 'nfs-for-2.6.39' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6: (28 commits)
  Cleanup XDR parsing for LAYOUTGET, GETDEVICEINFO
  NFSv4.1 convert layoutcommit sync to boolean
  NFSv4.1 pnfs_layoutcommit_inode fixes
  NFS: Determine initial mount security
  NFS: use secinfo when crossing mountpoints
  NFS: Add secinfo procedure
  NFS: lookup supports alternate client
  NFS: convert call_sync() to a function
  NFSv4.1 remove temp code that prevented ds commits
  NFSv4.1: layoutcommit
  NFSv4.1: filelayout driver specific code for COMMIT
  NFSv4.1: remove GETATTR from ds commits
  NFSv4.1: add generic layer hooks for pnfs COMMIT
  NFSv4.1: alloc and free commit_buckets
  NFSv4.1: shift filelayout_free_lseg
  NFSv4.1: pull out code from nfs_commit_release
  NFSv4.1: pull error handling out of nfs_commit_list
  NFSv4.1: add callback to nfs4_commit_done
  NFSv4.1: rearrange nfs_commit_rpcsetup
  NFSv4.1: don't send COMMIT to ds for data sync writes
  ...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 'nfs-for-2.6.39' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6: (28 commits)
  Cleanup XDR parsing for LAYOUTGET, GETDEVICEINFO
  NFSv4.1 convert layoutcommit sync to boolean
  NFSv4.1 pnfs_layoutcommit_inode fixes
  NFS: Determine initial mount security
  NFS: use secinfo when crossing mountpoints
  NFS: Add secinfo procedure
  NFS: lookup supports alternate client
  NFS: convert call_sync() to a function
  NFSv4.1 remove temp code that prevented ds commits
  NFSv4.1: layoutcommit
  NFSv4.1: filelayout driver specific code for COMMIT
  NFSv4.1: remove GETATTR from ds commits
  NFSv4.1: add generic layer hooks for pnfs COMMIT
  NFSv4.1: alloc and free commit_buckets
  NFSv4.1: shift filelayout_free_lseg
  NFSv4.1: pull out code from nfs_commit_release
  NFSv4.1: pull error handling out of nfs_commit_list
  NFSv4.1: add callback to nfs4_commit_done
  NFSv4.1: rearrange nfs_commit_rpcsetup
  NFSv4.1: don't send COMMIT to ds for data sync writes
  ...
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'nfs-for-2.6.39' into nfs-for-next</title>
<updated>2011-03-24T21:03:14+00:00</updated>
<author>
<name>Trond Myklebust</name>
<email>Trond.Myklebust@netapp.com</email>
</author>
<published>2011-03-24T21:03:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=0acd2201920d0968919f4f5797d63f7b6f2b19d4'/>
<id>0acd2201920d0968919f4f5797d63f7b6f2b19d4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
