<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/bluetooth/bnep/core.c, branch linux-3.2.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-01-01T20:51:04Z</updated>
<entry>
<title>Bluetooth: bnep: bnep_add_connection() should verify that it's dealing with l2cap socket</title>
<updated>2018-01-01T20:51:04Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2014-12-19T06:20:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d5623517462d7bdf03cae13e8b713389b0cdd381'/>
<id>urn:sha1:d5623517462d7bdf03cae13e8b713389b0cdd381</id>
<content type='text'>
commit 71bb99a02b32b4cc4265118e85f6035ca72923f0 upstream.

same story as cmtp

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>Bluetooth: bnep: Fix module reference</title>
<updated>2011-11-21T16:29:25Z</updated>
<author>
<name>David Herrmann</name>
</author>
<published>2011-11-19T12:23:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9b338c3dd12918f7f7df2b882f63f71e9efbcb41'/>
<id>urn:sha1:9b338c3dd12918f7f7df2b882f63f71e9efbcb41</id>
<content type='text'>
We cannot call module_put(THIS_MODULE) if this is our last reference. Otherwise,
this call may cleanup our module before it returns.

Gladly, the kthread API provides a simple wrapper for us. So lets use
module_put_and_exit() to avoid a race condition with the module cleanup code.

Signed-off-by: David Herrmann &lt;dh.herrmann@googlemail.com&gt;
Acked-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
</entry>
<entry>
<title>Bluetooth: Linearize skbs for use in BNEP, CMTP, HIDP, and RFCOMM</title>
<updated>2011-09-27T21:15:55Z</updated>
<author>
<name>Mat Martineau</name>
</author>
<published>2011-07-22T21:53:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=449357200c5d73d80a9c42dee5dafed684b3cd17'/>
<id>urn:sha1:449357200c5d73d80a9c42dee5dafed684b3cd17</id>
<content type='text'>
Fragmented skbs are only encountered when receiving ERTM or streaming
mode L2CAP data.  BNEP, CMTP, HIDP, and RFCOMM generally use basic
mode, but they need to handle fragments without crashing.

Signed-off-by: Mat Martineau &lt;mathewm@codeaurora.org&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
</entry>
<entry>
<title>Bluetooth: bnep: Fix deadlock in session deletion</title>
<updated>2011-08-11T22:50:27Z</updated>
<author>
<name>Peter Hurley</name>
</author>
<published>2011-08-05T14:41:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=751c10a56802513a6b057c8cf1552cecc1c9afde'/>
<id>urn:sha1:751c10a56802513a6b057c8cf1552cecc1c9afde</id>
<content type='text'>
Commit f4d7cd4a4c introduced the usage of kthread API.
kthread_stop is a blocking function which returns only when
the thread exits. In this case, the thread can't exit because it's
waiting for the write lock, which is being held by bnep_del_connection()
which is waiting for the thread to exit -- deadlock.

Use atomic_t/wake_up_process instead to signal to the thread to exit.

Signed-off-by: Jaikumar Ganesh &lt;jaikumar@google.com&gt;
Signed-off-by: Peter Hurley &lt;peter@hurleysoftware.com&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
</entry>
<entry>
<title>Bluetooth: bnep: Fix lost wakeup of session thread</title>
<updated>2011-08-11T22:50:26Z</updated>
<author>
<name>Peter Hurley</name>
</author>
<published>2011-07-24T04:11:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=38d57555616afcdad7381b02b523d494327494cd'/>
<id>urn:sha1:38d57555616afcdad7381b02b523d494327494cd</id>
<content type='text'>
Fix race condition which can result in missing the wakeup intended
to stop the session thread.

Signed-off-by: Peter Hurley &lt;peter@hurleysoftware.com&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
</entry>
<entry>
<title>Bluetooth: Use kthread API in bnep</title>
<updated>2011-04-05T15:40:47Z</updated>
<author>
<name>Szymon Janc</name>
</author>
<published>2011-03-21T13:20:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f4d7cd4a4c25cb4a5c30a675d4cc0052c93b925a'/>
<id>urn:sha1:f4d7cd4a4c25cb4a5c30a675d4cc0052c93b925a</id>
<content type='text'>
kernel_thread() is a low-level implementation detail and
EXPORT_SYMBOL(kernel_thread) is scheduled for removal.
Use the &lt;linux/kthread.h&gt; API instead.

Signed-off-by: Szymon Janc &lt;szymon.janc@tieto.com&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
</entry>
<entry>
<title>Bluetooth: Fix checkpatch errors and some code style issues in bnep</title>
<updated>2011-03-31T17:22:55Z</updated>
<author>
<name>Szymon Janc</name>
</author>
<published>2011-03-21T13:19:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3aad75a128e2f2b8da31de1df4b9b9b4a8f65c66'/>
<id>urn:sha1:3aad75a128e2f2b8da31de1df4b9b9b4a8f65c66</id>
<content type='text'>
Signed-off-by: Szymon Janc &lt;szymon.janc@tieto.com&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
</entry>
<entry>
<title>Bluetooth: Opencode macros in bnep/core.c</title>
<updated>2011-03-31T17:22:55Z</updated>
<author>
<name>Szymon Janc</name>
</author>
<published>2011-03-21T13:19:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a3d9bd4c00f13defd4c0fdcf8b47f8764a69e54d'/>
<id>urn:sha1:a3d9bd4c00f13defd4c0fdcf8b47f8764a69e54d</id>
<content type='text'>
BNEP_RX_TYPES and INCA macros have only one user each and don't provide
any benefits compared to opencoding them.

Signed-off-by: Szymon Janc &lt;szymon.janc@tieto.com&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
</entry>
<entry>
<title>Bluetooth: remove l2cap_load() hack</title>
<updated>2011-02-15T12:45:52Z</updated>
<author>
<name>Gustavo F. Padovan</name>
</author>
<published>2011-02-07T22:19:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c531a12ae63b6438a7859994aca23859f5706010'/>
<id>urn:sha1:c531a12ae63b6438a7859994aca23859f5706010</id>
<content type='text'>
l2cap_load() was added to trigger l2cap.ko module loading from the RFCOMM
and BNEP modules. Now that L2CAP module is gone, we don't need it anymore.

Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
</entry>
<entry>
<title>Bluetooth: bnep: fix information leak to userland</title>
<updated>2010-12-01T23:04:35Z</updated>
<author>
<name>Vasiliy Kulikov</name>
</author>
<published>2010-10-30T14:26:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5520d20f68310fc158dcbbecfd5eac5cdfc5a241'/>
<id>urn:sha1:5520d20f68310fc158dcbbecfd5eac5cdfc5a241</id>
<content type='text'>
Structure bnep_conninfo is copied to userland with the field "device"
that has the last elements unitialized.  It leads to leaking of
contents of kernel stack memory.

Signed-off-by: Vasiliy Kulikov &lt;segooon@gmail.com&gt;
Acked-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
</entry>
</feed>
