<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/net/9p, branch linux-2.6.33.y</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>net/9p: Fix the msize calculation.</title>
<updated>2011-11-07T21:46:51+00:00</updated>
<author>
<name>Venkateswararao Jujjuri (JV)</name>
<email>jvrao@linux.vnet.ibm.com</email>
</author>
<published>2011-06-30T01:06:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=5d09587187a87bff88faaaac14825bfe7ecc7976'/>
<id>5d09587187a87bff88faaaac14825bfe7ecc7976</id>
<content type='text'>
commit c9ffb05ca5b5098d6ea468c909dd384d90da7d54 upstream.

msize represents the maximum PDU size that includes P9_IOHDRSZ.

Signed-off-by: Venkateswararao Jujjuri "&lt;jvrao@linux.vnet.ibm.com&gt;
Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit c9ffb05ca5b5098d6ea468c909dd384d90da7d54 upstream.

msize represents the maximum PDU size that includes P9_IOHDRSZ.

Signed-off-by: Venkateswararao Jujjuri "&lt;jvrao@linux.vnet.ibm.com&gt;
Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>fs/9p: Fid is not valid after a failed clunk.</title>
<updated>2011-11-07T21:46:50+00:00</updated>
<author>
<name>Aneesh Kumar K.V</name>
<email>aneesh.kumar@linux.vnet.ibm.com</email>
</author>
<published>2011-07-11T16:40:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=b1b7c964705b9bd23d81e93a16b623d6988e0b61'/>
<id>b1b7c964705b9bd23d81e93a16b623d6988e0b61</id>
<content type='text'>
commit 5034990e28efb2d232ee82443a9edd62defd17ba upstream.

free the fid even in case of failed clunk.

Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 5034990e28efb2d232ee82443a9edd62defd17ba upstream.

free the fid even in case of failed clunk.

Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>net/9p: fix client code to fail more gracefully on protocol error</title>
<updated>2011-11-07T21:46:49+00:00</updated>
<author>
<name>Eric Van Hensbergen</name>
<email>ericvh@gmail.com</email>
</author>
<published>2011-07-14T00:12:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=a56387e77251ae8c76f551593b41c6b52e1a3872'/>
<id>a56387e77251ae8c76f551593b41c6b52e1a3872</id>
<content type='text'>
commit b85f7d92d7bd7e3298159e8b1eed8cb8cbbb0348 upstream.

There was a BUG_ON to protect against a bad id which could be dealt with
more gracefully.

Reported-by: Natalie Orlin &lt;norlin@us.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit b85f7d92d7bd7e3298159e8b1eed8cb8cbbb0348 upstream.

There was a BUG_ON to protect against a bad id which could be dealt with
more gracefully.

Reported-by: Natalie Orlin &lt;norlin@us.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>9p: fix p9_client_destroy unconditional calling v9fs_put_trans</title>
<updated>2010-02-09T00:18:34+00:00</updated>
<author>
<name>Eric Van Hensbergen</name>
<email>ericvh@gmail.com</email>
</author>
<published>2010-02-09T00:18:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=8781ff9495578dbb74065fae55305110d9f81cb9'/>
<id>8781ff9495578dbb74065fae55305110d9f81cb9</id>
<content type='text'>
restructure client create code to handle error cases better and
only cleanup initialized portions of the stack.

Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@us.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
restructure client create code to handle error cases better and
only cleanup initialized portions of the stack.

Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@us.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>9p: Fix the kernel crash on a failed mount</title>
<updated>2010-02-08T23:25:33+00:00</updated>
<author>
<name>Aneesh Kumar K.V</name>
<email>aneesh.kumar@linux.vnet.ibm.com</email>
</author>
<published>2010-02-08T11:50:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=fb786100f7c75e154e63d0f5a2982e6d46dfb602'/>
<id>fb786100f7c75e154e63d0f5a2982e6d46dfb602</id>
<content type='text'>
The patch fix the crash repoted below

[   15.149907] BUG: unable to handle kernel NULL pointer dereference at 00000001
[   15.150806] IP: [&lt;c140b886&gt;] p9_virtio_close+0x18/0x24
.....
....
[   15.150806] Call Trace:
[   15.150806]  [&lt;c1408e78&gt;] ? p9_client_destroy+0x3f/0x163
[   15.150806]  [&lt;c1409342&gt;] ? p9_client_create+0x25f/0x270
[   15.150806]  [&lt;c1063b72&gt;] ? trace_hardirqs_on+0xb/0xd
[   15.150806]  [&lt;c11ed4e8&gt;] ? match_token+0x64/0x164
[   15.150806]  [&lt;c1175e8d&gt;] ? v9fs_session_init+0x2f1/0x3c8
[   15.150806]  [&lt;c109cfc9&gt;] ? kmem_cache_alloc+0x98/0xb8
[   15.150806]  [&lt;c1063b72&gt;] ? trace_hardirqs_on+0xb/0xd
[   15.150806]  [&lt;c1173dd1&gt;] ? v9fs_get_sb+0x47/0x1e8
[   15.150806]  [&lt;c1173dea&gt;] ? v9fs_get_sb+0x60/0x1e8
[   15.150806]  [&lt;c10a2e77&gt;] ? vfs_kern_mount+0x81/0x11a
[   15.150806]  [&lt;c10a2f55&gt;] ? do_kern_mount+0x33/0xbe
[   15.150806]  [&lt;c10b40b9&gt;] ? do_mount+0x654/0x6b3
[   15.150806]  [&lt;c1038949&gt;] ? do_page_fault+0x0/0x284
[   15.150806]  [&lt;c10b28ec&gt;] ? copy_mount_options+0x73/0xd2
[   15.150806]  [&lt;c10b4179&gt;] ? sys_mount+0x61/0x94
[   15.150806]  [&lt;c14284e9&gt;] ? syscall_call+0x7/0xb
....
[   15.203562] ---[ end trace 1dd159357709eb4b ]---
[

Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The patch fix the crash repoted below

[   15.149907] BUG: unable to handle kernel NULL pointer dereference at 00000001
[   15.150806] IP: [&lt;c140b886&gt;] p9_virtio_close+0x18/0x24
.....
....
[   15.150806] Call Trace:
[   15.150806]  [&lt;c1408e78&gt;] ? p9_client_destroy+0x3f/0x163
[   15.150806]  [&lt;c1409342&gt;] ? p9_client_create+0x25f/0x270
[   15.150806]  [&lt;c1063b72&gt;] ? trace_hardirqs_on+0xb/0xd
[   15.150806]  [&lt;c11ed4e8&gt;] ? match_token+0x64/0x164
[   15.150806]  [&lt;c1175e8d&gt;] ? v9fs_session_init+0x2f1/0x3c8
[   15.150806]  [&lt;c109cfc9&gt;] ? kmem_cache_alloc+0x98/0xb8
[   15.150806]  [&lt;c1063b72&gt;] ? trace_hardirqs_on+0xb/0xd
[   15.150806]  [&lt;c1173dd1&gt;] ? v9fs_get_sb+0x47/0x1e8
[   15.150806]  [&lt;c1173dea&gt;] ? v9fs_get_sb+0x60/0x1e8
[   15.150806]  [&lt;c10a2e77&gt;] ? vfs_kern_mount+0x81/0x11a
[   15.150806]  [&lt;c10a2f55&gt;] ? do_kern_mount+0x33/0xbe
[   15.150806]  [&lt;c10b40b9&gt;] ? do_mount+0x654/0x6b3
[   15.150806]  [&lt;c1038949&gt;] ? do_page_fault+0x0/0x284
[   15.150806]  [&lt;c10b28ec&gt;] ? copy_mount_options+0x73/0xd2
[   15.150806]  [&lt;c10b4179&gt;] ? sys_mount+0x61/0x94
[   15.150806]  [&lt;c14284e9&gt;] ? syscall_call+0x7/0xb
....
[   15.203562] ---[ end trace 1dd159357709eb4b ]---
[

Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>9p: fix option parsing</title>
<updated>2010-02-08T22:23:23+00:00</updated>
<author>
<name>Eric Van Hensbergen</name>
<email>ericvh@gmail.com</email>
</author>
<published>2010-02-08T22:23:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=d8c8a9e36560e9ff4c99279d64ce5dd0e1a33fa6'/>
<id>d8c8a9e36560e9ff4c99279d64ce5dd0e1a33fa6</id>
<content type='text'>
Options pointer is being moved before calling kfree() which seems
to cause problems.  This uses a separate pointer to track and free
original allocation.

Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@us.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;w

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Options pointer is being moved before calling kfree() which seems
to cause problems.  This uses a separate pointer to track and free
original allocation.

Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@us.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;w

</pre>
</div>
</content>
</entry>
<entry>
<title>net/9p: fix statsize inside twstat</title>
<updated>2010-02-08T20:13:30+00:00</updated>
<author>
<name>Eric Van Hensbergen</name>
<email>ericvh@gmail.com</email>
</author>
<published>2010-01-16T01:01:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=9d6939dac77102b09396ee0b89392ec7639612a7'/>
<id>9d6939dac77102b09396ee0b89392ec7639612a7</id>
<content type='text'>
stat structures contain a size prefix.  In our twstat messages
we were including the size of the size prefix in the prefix, which is not
what the protocol wants, and Inferno servers would complain.

Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
stat structures contain a size prefix.  In our twstat messages
we were including the size of the size prefix in the prefix, which is not
what the protocol wants, and Inferno servers would complain.

Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net/9p: fail when user specifies a transport which we can't find</title>
<updated>2010-02-08T20:13:30+00:00</updated>
<author>
<name>Eric Van Hensbergen</name>
<email>ericvh@gmail.com</email>
</author>
<published>2010-01-16T01:01:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=349d3bb878d71978650a0634b5445af3c1cc1cd8'/>
<id>349d3bb878d71978650a0634b5445af3c1cc1cd8</id>
<content type='text'>
If the user specifies a transport and we can't find it, we failed back
to the default trainsport silently.  This patch will make the code
complain more loudly and return an error code.

Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the user specifies a transport and we can't find it, we failed back
to the default trainsport silently.  This patch will make the code
complain more loudly and return an error code.

Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net/9p: fix virtio transport to correctly update status on connect</title>
<updated>2010-02-08T20:13:30+00:00</updated>
<author>
<name>Eric Van Hensbergen</name>
<email>ericvh@gmail.com</email>
</author>
<published>2010-01-16T00:54:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=562ada612058133a5483c68a73605f3c5f42fffe'/>
<id>562ada612058133a5483c68a73605f3c5f42fffe</id>
<content type='text'>
The 9p virtio transport was not updating its connection status correctly
preventing it from being able to mount the server.

Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The 9p virtio transport was not updating its connection status correctly
preventing it from being able to mount the server.

Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>9p connect fixes</title>
<updated>2009-12-16T17:16:41+00:00</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2009-08-05T22:02:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=6b18662e239a032f908b7f6e164bdf7e2e0a32c9'/>
<id>6b18662e239a032f908b7f6e164bdf7e2e0a32c9</id>
<content type='text'>
* if we fail in p9_conn_create(), we shouldn't leak references to struct file.
  Logics in -&gt;close() doesn't help - -&gt;trans is already gone by the time it's
  called.
* sock_create_kern() can fail.
* use of sock_map_fd() is all fscked up; I'd fixed most of that, but the
  rest will have to wait for a bit more work in net/socket.c (we still are
  violating the basic rule of working with descriptor table: "once the reference
  is installed there, don't rely on finding it there again").

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* if we fail in p9_conn_create(), we shouldn't leak references to struct file.
  Logics in -&gt;close() doesn't help - -&gt;trans is already gone by the time it's
  called.
* sock_create_kern() can fail.
* use of sock_map_fd() is all fscked up; I'd fixed most of that, but the
  rest will have to wait for a bit more work in net/socket.c (we still are
  violating the basic rule of working with descriptor table: "once the reference
  is installed there, don't rely on finding it there again").

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</pre>
</div>
</content>
</entry>
</feed>
