<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/x25, branch linux-2.6.27.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.27.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.27.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2011-04-30T14:53:09Z</updated>
<entry>
<title>x25: Do not reference freed memory.</title>
<updated>2011-04-30T14:53:09Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2011-02-10T05:48:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=49fa043f20b00719a73ac1a93de0b77c6dd9f008'/>
<id>urn:sha1:49fa043f20b00719a73ac1a93de0b77c6dd9f008</id>
<content type='text'>
commit 96642d42f076101ba98866363d908cab706d156c upstream.

In x25_link_free(), we destroy 'nb' before dereferencing
'nb-&gt;dev'.  Don't do this, because 'nb' might be freed
by then.

Reported-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
Tested-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>x25: decrement netdev reference counts on unload</title>
<updated>2011-04-30T14:53:03Z</updated>
<author>
<name>Apollon Oikonomopoulos</name>
</author>
<published>2010-12-07T09:43:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=08826d1c89fb90119e9bd4a5c2da1482ed79694f'/>
<id>urn:sha1:08826d1c89fb90119e9bd4a5c2da1482ed79694f</id>
<content type='text'>
commit 171995e5d82dcc92bea37a7d2a2ecc21068a0f19 upstream.

x25 does not decrement the network device reference counts on module unload.
Thus unregistering any pre-existing interface after unloading the x25 module
hangs and results in

 unregister_netdevice: waiting for tap0 to become free. Usage count = 1

This patch decrements the reference counts of all interfaces in x25_link_free,
the way it is already done in x25_link_device_down for NETDEV_DOWN events.

Signed-off-by: Apollon Oikonomopoulos &lt;apollon@noc.grnet.gr&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>x25: Prevent crashing when parsing bad X.25 facilities</title>
<updated>2010-12-09T21:24:21Z</updated>
<author>
<name>Dan Rosenberg</name>
</author>
<published>2010-11-12T20:44:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1ee97ce543460d963911ca8d0b8461ba7b48846d'/>
<id>urn:sha1:1ee97ce543460d963911ca8d0b8461ba7b48846d</id>
<content type='text'>
commit 5ef41308f94dcbb3b7afc56cdef1c2ba53fa5d2f upstream.

Now with improved comma support.

On parsing malformed X.25 facilities, decrementing the remaining length
may cause it to underflow.  Since the length is an unsigned integer,
this will result in the loop continuing until the kernel crashes.

This patch adds checks to ensure decrementing the remaining length does
not cause it to wrap around.

Signed-off-by: Dan Rosenberg &lt;drosenberg@vsecurity.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>memory corruption in X.25 facilities parsing</title>
<updated>2010-12-09T21:24:21Z</updated>
<author>
<name>andrew hendry</name>
</author>
<published>2010-11-03T12:54:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8ee234bf416ffcb2ca526ecaac90e1b7d3866825'/>
<id>urn:sha1:8ee234bf416ffcb2ca526ecaac90e1b7d3866825</id>
<content type='text'>
commit a6331d6f9a4298173b413cf99a40cc86a9d92c37 upstream.

Signed-of-by: Andrew Hendry &lt;andrew.hendry@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>x25: Patch to fix bug 15678 - x25 accesses fields beyond end of packet.</title>
<updated>2010-12-09T21:24:20Z</updated>
<author>
<name>John Hughes</name>
</author>
<published>2010-04-08T04:29:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c773a332d06e4ef459533d8299f47114b4014bdd'/>
<id>urn:sha1:c773a332d06e4ef459533d8299f47114b4014bdd</id>
<content type='text'>
commit f5eb917b861828da18dc28854308068c66d1449a upstream.

Here is a patch to stop X.25 examining fields beyond the end of the packet.

For example, when a simple CALL ACCEPTED was received:

	10 10 0f

x25_parse_facilities was attempting to decode the FACILITIES field, but this
packet contains no facilities field.

Signed-off-by: John Hughes &lt;john@calva.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>x25: Fix sleep from timer on socket destroy.</title>
<updated>2009-07-30T23:06:13Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2009-06-16T12:40:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3154ee5364cf95cc3948589d870f6f6c957ba0a3'/>
<id>urn:sha1:3154ee5364cf95cc3948589d870f6f6c957ba0a3</id>
<content type='text'>
[ Upstream commit 14ebaf81e13ce66bff275380b246796fd16cbfa1 ]

If socket destuction gets delayed to a timer, we try to
lock_sock() from that timer which won't work.

Use bh_lock_sock() in that case.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Tested-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>af_rose/x25: Sanity check the maximum user frame size</title>
<updated>2009-05-02T17:24:04Z</updated>
<author>
<name>Alan Cox</name>
</author>
<published>2009-03-27T07:28:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e16cf6626bb2160fee3dfda596a2b1469486c585'/>
<id>urn:sha1:e16cf6626bb2160fee3dfda596a2b1469486c585</id>
<content type='text'>
upstream commit: 83e0bbcbe2145f160fbaa109b0439dae7f4a38a9

CVE-2009-0795.

Otherwise we can wrap the sizes and end up sending garbage.

Closes #10423

Signed-off-by: Alan Cox &lt;alan@lxorguk.ukuu.org.uk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Chris Wright &lt;chrisw@sous-sol.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>netns: Use net_eq() to compare net-namespaces for optimization.</title>
<updated>2008-07-20T05:34:43Z</updated>
<author>
<name>YOSHIFUJI Hideaki</name>
</author>
<published>2008-07-20T05:34:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=721499e8931c5732202481ae24f2dfbf9910f129'/>
<id>urn:sha1:721499e8931c5732202481ae24f2dfbf9910f129</id>
<content type='text'>
Without CONFIG_NET_NS, namespace is always &amp;init_net.
Compiler will be able to omit namespace comparisons with this patch.

Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>x25: Use sock_orphan() instead of open-coded (and buggy) variant.</title>
<updated>2008-06-17T10:05:13Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2008-06-17T10:05:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c751e4f8b32a3869bb4fec12100952abd9baa0e1'/>
<id>urn:sha1:c751e4f8b32a3869bb4fec12100952abd9baa0e1</id>
<content type='text'>
It doesn't grab the sk_callback_lock, it doesn't NULL out
the sk-&gt;sk_sleep waitqueue pointer, etc.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>x25: Use sock_graft() and remove bogus sk_socket and sk_sleep init.</title>
<updated>2008-06-17T09:44:35Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2008-06-17T09:44:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b61d38e05542200f6d001b5ea9975dc0dc5bab27'/>
<id>urn:sha1:b61d38e05542200f6d001b5ea9975dc0dc5bab27</id>
<content type='text'>
This is the x25 variant of changeset
9375cb8a1232d2a15fe34bec4d3474872e02faec
("ax25: Use sock_graft() and remove bogus sk_socket and sk_sleep init.")

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
