<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/net/9p, branch v2.6.33</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<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.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.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.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.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.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.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.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>
<entry>
<title>net: Move &amp;&amp; and || to end of previous line</title>
<updated>2009-11-30T00:55:45+00:00</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2009-11-30T00:55:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=f64f9e719261a87818dd192a3a2352e5b20fbd0f'/>
<id>f64f9e719261a87818dd192a3a2352e5b20fbd0f</id>
<content type='text'>
Not including net/atm/

Compiled tested x86 allyesconfig only
Added a &gt; 80 column line or two, which I ignored.
Existing checkpatch plaints willfully, cheerfully ignored.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Not including net/atm/

Compiled tested x86 allyesconfig only
Added a &gt; 80 column line or two, which I ignored.
Existing checkpatch plaints willfully, cheerfully ignored.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>9p: fix readdir corner cases</title>
<updated>2009-11-02T14:43:45+00:00</updated>
<author>
<name>Eric Van Hensbergen</name>
<email>ericvh@gmail.com</email>
</author>
<published>2009-11-02T14:39:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=3e2796a90cf349527e50b3bc4d0b2f4019b1ce7a'/>
<id>3e2796a90cf349527e50b3bc4d0b2f4019b1ce7a</id>
<content type='text'>
The patch below also addresses a couple of other corner cases in readdir
seen with a large (e.g. 64k) msize.  I'm not sure what people think of
my co-opting of fid-&gt;aux here.  I'd be happy to rework if there's a better
way.

When the size of the user supplied buffer passed to readdir is smaller
than the data returned in one go by the 9P read request, v9fs_dir_readdir()
currently discards extra data so that, on the next call, a 9P read
request will be issued with offset &lt; previous offset + bytes returned,
which voilates the constraint described in paragraph 3 of read(5) description.
This patch preseves the leftover data in fid-&gt;aux for use in the next call.

Signed-off-by: Jim Garlick &lt;garlick@llnl.gov&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 below also addresses a couple of other corner cases in readdir
seen with a large (e.g. 64k) msize.  I'm not sure what people think of
my co-opting of fid-&gt;aux here.  I'd be happy to rework if there's a better
way.

When the size of the user supplied buffer passed to readdir is smaller
than the data returned in one go by the 9P read request, v9fs_dir_readdir()
currently discards extra data so that, on the next call, a 9P read
request will be issued with offset &lt; previous offset + bytes returned,
which voilates the constraint described in paragraph 3 of read(5) description.
This patch preseves the leftover data in fid-&gt;aux for use in the next call.

Signed-off-by: Jim Garlick &lt;garlick@llnl.gov&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>virtio: let header files include virtio_ids.h</title>
<updated>2009-10-22T06:09:28+00:00</updated>
<author>
<name>Christian Borntraeger</name>
<email>borntraeger@de.ibm.com</email>
</author>
<published>2009-09-30T09:17:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=e95646c3ec33c8ec0693992da4332a6b32eb7e31'/>
<id>e95646c3ec33c8ec0693992da4332a6b32eb7e31</id>
<content type='text'>
Rusty,

commit 3ca4f5ca73057a617f9444a91022d7127041970a
    virtio: add virtio IDs file
moved all device IDs into a single file. While the change itself is
a very good one, it can break userspace applications. For example
if a userspace tool wanted to get the ID of virtio_net it used to
include virtio_net.h. This does no longer work, since virtio_net.h
does not include virtio_ids.h.
This patch moves all "#include &lt;linux/virtio_ids.h&gt;" from the C
files into the header files, making the header files compatible with
the old ones.

In addition, this patch exports virtio_ids.h to userspace.

CC: Fernando Luis Vazquez Cao &lt;fernando@oss.ntt.co.jp&gt;
Signed-off-by: Christian Borntraeger &lt;borntraeger@de.ibm.com&gt;
Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rusty,

commit 3ca4f5ca73057a617f9444a91022d7127041970a
    virtio: add virtio IDs file
moved all device IDs into a single file. While the change itself is
a very good one, it can break userspace applications. For example
if a userspace tool wanted to get the ID of virtio_net it used to
include virtio_net.h. This does no longer work, since virtio_net.h
does not include virtio_ids.h.
This patch moves all "#include &lt;linux/virtio_ids.h&gt;" from the C
files into the header files, making the header files compatible with
the old ones.

In addition, this patch exports virtio_ids.h to userspace.

CC: Fernando Luis Vazquez Cao &lt;fernando@oss.ntt.co.jp&gt;
Signed-off-by: Christian Borntraeger &lt;borntraeger@de.ibm.com&gt;
Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
</pre>
</div>
</content>
</entry>
</feed>
