<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/net/bluetooth, 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>Revert "Bluetooth: fix shutdown on SCO sockets"</title>
<updated>2011-05-12T01:58:16+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-05-12T01:58:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=ce8453776d68982cfe93bcb28191af8ccad01f45'/>
<id>ce8453776d68982cfe93bcb28191af8ccad01f45</id>
<content type='text'>
This reverts commit f21ca5fff6e548833fa5ee8867239a8378623150.

Quoth Gustavo F. Padovan:
  "Commit f21ca5fff6e548833fa5ee8867239a8378623150 can cause a NULL
   dereference if we call shutdown in a bluetooth SCO socket and doesn't
   wait the shutdown completion to call close().  Please revert it.  I
   may have a fix for it soon, but we don't have time anymore, so revert
   is the way to go.  ;)"

Requested-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit f21ca5fff6e548833fa5ee8867239a8378623150.

Quoth Gustavo F. Padovan:
  "Commit f21ca5fff6e548833fa5ee8867239a8378623150 can cause a NULL
   dereference if we call shutdown in a bluetooth SCO socket and doesn't
   wait the shutdown completion to call close().  Please revert it.  I
   may have a fix for it soon, but we don't have time anymore, so revert
   is the way to go.  ;)"

Requested-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6</title>
<updated>2011-04-22T20:21:38+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2011-04-22T20:21:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=1ed3aad141fe595673c20225a9e004730088be52'/>
<id>1ed3aad141fe595673c20225a9e004730088be52</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Bluetooth: Only keeping SAR bits when retransmitting one frame.</title>
<updated>2011-04-18T23:11:47+00:00</updated>
<author>
<name>Ruiyi Zhang</name>
<email>Ruiyi.zhang@atheros.com</email>
</author>
<published>2011-04-18T03:04:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=a429b51930e64dd355840c37251a563000d7c10b'/>
<id>a429b51930e64dd355840c37251a563000d7c10b</id>
<content type='text'>
When retrasmitting one frame, only SAR bits in control field should
be kept.

Signed-off-by: Ruiyi Zhang &lt;Ruiyi.zhang@atheros.com&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When retrasmitting one frame, only SAR bits in control field should
be kept.

Signed-off-by: Ruiyi Zhang &lt;Ruiyi.zhang@atheros.com&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bluetooth: fix shutdown on SCO sockets</title>
<updated>2011-04-18T23:11:46+00:00</updated>
<author>
<name>Luiz Augusto von Dentz</name>
<email>luiz.dentz-von@nokia.com</email>
</author>
<published>2011-04-08T14:10:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=f21ca5fff6e548833fa5ee8867239a8378623150'/>
<id>f21ca5fff6e548833fa5ee8867239a8378623150</id>
<content type='text'>
shutdown should wait for SCO link to be properly disconnected before
detroying the socket, otherwise an application using the socket may
assume link is properly disconnected before it really happens which
can be a problem when e.g synchronizing profile switch.

Signed-off-by: Luiz Augusto von Dentz &lt;luiz.dentz-von@nokia.com&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
shutdown should wait for SCO link to be properly disconnected before
detroying the socket, otherwise an application using the socket may
assume link is properly disconnected before it really happens which
can be a problem when e.g synchronizing profile switch.

Signed-off-by: Luiz Augusto von Dentz &lt;luiz.dentz-von@nokia.com&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bluetooth: Fix keeping the command timer running</title>
<updated>2011-04-18T23:11:46+00:00</updated>
<author>
<name>Vinicius Costa Gomes</name>
<email>vinicius.gomes@openbossa.org</email>
</author>
<published>2011-04-11T21:46:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=b79f44c16a4e2181b1d6423afe746745d5e949ff'/>
<id>b79f44c16a4e2181b1d6423afe746745d5e949ff</id>
<content type='text'>
In the teardown path the reset command is sent to the controller,
this event causes the command timer to be reactivated.

So the timer is removed in two situations, when the adapter isn't
marked as UP and when we know that some command has been sent.

Reported-by: Keith Packard &lt;keithp@keithp.com&gt;
Signed-off-by: Vinicius Costa Gomes &lt;vinicius.gomes@openbossa.org&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the teardown path the reset command is sent to the controller,
this event causes the command timer to be reactivated.

So the timer is removed in two situations, when the adapter isn't
marked as UP and when we know that some command has been sent.

Reported-by: Keith Packard &lt;keithp@keithp.com&gt;
Signed-off-by: Vinicius Costa Gomes &lt;vinicius.gomes@openbossa.org&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bluetooth: Fix refcount balance for hci connection</title>
<updated>2011-04-18T23:11:45+00:00</updated>
<author>
<name>Ville Tervo</name>
<email>ville.tervo@nokia.com</email>
</author>
<published>2011-04-07T11:59:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=7a74aeb022b34a8fa8ef00545e66cf0568b5ddf6'/>
<id>7a74aeb022b34a8fa8ef00545e66cf0568b5ddf6</id>
<content type='text'>
hci_io_capa_reply_evt() holds reference for hciconnection. It's useless since
hci_io_capa_request_evt()/hci_simple_pair_complete_evt() already protects the
connection. In addition it leaves connection open after failed SSP pairing.

Signed-off-by: Ville Tervo &lt;ville.tervo@nokia.com&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
hci_io_capa_reply_evt() holds reference for hciconnection. It's useless since
hci_io_capa_request_evt()/hci_simple_pair_complete_evt() already protects the
connection. In addition it leaves connection open after failed SSP pairing.

Signed-off-by: Ville Tervo &lt;ville.tervo@nokia.com&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6</title>
<updated>2011-04-07T18:14:49+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-04-07T18:14:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=42933bac11e811f02200c944d8562a15f8ec4ff0'/>
<id>42933bac11e811f02200c944d8562a15f8ec4ff0</id>
<content type='text'>
* 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6:
  Fix common misspellings
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6:
  Fix common misspellings
</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>Bluetooth: Fix warning with hci_cmd_timer</title>
<updated>2011-03-24T20:04:44+00:00</updated>
<author>
<name>Thomas Gleixner</name>
<email>tglx@linutronix.de</email>
</author>
<published>2011-03-24T19:16:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=b77dcf8460ae57d4eb9fd3633eb4f97b8fb20716'/>
<id>b77dcf8460ae57d4eb9fd3633eb4f97b8fb20716</id>
<content type='text'>
After we made debugobjects working again, we got the following:

WARNING: at lib/debugobjects.c:262 debug_print_object+0x8e/0xb0()
Hardware name: System Product Name
ODEBUG: free active (active state 0) object type: timer_list hint: hci_cmd_timer+0x0/0x60
Pid: 2125, comm: dmsetup Tainted: G        W   2.6.38-06707-gc62b389 #110375
Call Trace:
 [&lt;ffffffff8104700a&gt;] warn_slowpath_common+0x7a/0xb0
 [&lt;ffffffff810470b6&gt;] warn_slowpath_fmt+0x46/0x50
 [&lt;ffffffff812d3a5e&gt;] debug_print_object+0x8e/0xb0
 [&lt;ffffffff81bd8810&gt;] ? hci_cmd_timer+0x0/0x60
 [&lt;ffffffff812d4685&gt;] debug_check_no_obj_freed+0x125/0x230
 [&lt;ffffffff810f1063&gt;] ? check_object+0xb3/0x2b0
 [&lt;ffffffff810f3630&gt;] kfree+0x150/0x190
 [&lt;ffffffff81be4d06&gt;] ? bt_host_release+0x16/0x20
 [&lt;ffffffff81be4d06&gt;] bt_host_release+0x16/0x20
 [&lt;ffffffff813a1907&gt;] device_release+0x27/0xa0
 [&lt;ffffffff812c519c&gt;] kobject_release+0x4c/0xa0
 [&lt;ffffffff812c5150&gt;] ? kobject_release+0x0/0xa0
 [&lt;ffffffff812c61f6&gt;] kref_put+0x36/0x70
 [&lt;ffffffff812c4d37&gt;] kobject_put+0x27/0x60
 [&lt;ffffffff813a21f7&gt;] put_device+0x17/0x20
 [&lt;ffffffff81bda4f9&gt;] hci_free_dev+0x29/0x30
 [&lt;ffffffff81928be6&gt;] vhci_release+0x36/0x70
 [&lt;ffffffff810fb366&gt;] fput+0xd6/0x1f0
 [&lt;ffffffff810f8fe6&gt;] filp_close+0x66/0x90
 [&lt;ffffffff810f90a9&gt;] sys_close+0x99/0xf0
 [&lt;ffffffff81d4c96b&gt;] system_call_fastpath+0x16/0x1b

That timer was introduced with commit 6bd32326cda(Bluetooth: Use
proper timer for hci command timout)

Timer seems to be running when the thing is closed. Removing the timer
unconditionally fixes the problem. And yes, it needs to be fixed
before the HCI_UP check.

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Tested-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After we made debugobjects working again, we got the following:

WARNING: at lib/debugobjects.c:262 debug_print_object+0x8e/0xb0()
Hardware name: System Product Name
ODEBUG: free active (active state 0) object type: timer_list hint: hci_cmd_timer+0x0/0x60
Pid: 2125, comm: dmsetup Tainted: G        W   2.6.38-06707-gc62b389 #110375
Call Trace:
 [&lt;ffffffff8104700a&gt;] warn_slowpath_common+0x7a/0xb0
 [&lt;ffffffff810470b6&gt;] warn_slowpath_fmt+0x46/0x50
 [&lt;ffffffff812d3a5e&gt;] debug_print_object+0x8e/0xb0
 [&lt;ffffffff81bd8810&gt;] ? hci_cmd_timer+0x0/0x60
 [&lt;ffffffff812d4685&gt;] debug_check_no_obj_freed+0x125/0x230
 [&lt;ffffffff810f1063&gt;] ? check_object+0xb3/0x2b0
 [&lt;ffffffff810f3630&gt;] kfree+0x150/0x190
 [&lt;ffffffff81be4d06&gt;] ? bt_host_release+0x16/0x20
 [&lt;ffffffff81be4d06&gt;] bt_host_release+0x16/0x20
 [&lt;ffffffff813a1907&gt;] device_release+0x27/0xa0
 [&lt;ffffffff812c519c&gt;] kobject_release+0x4c/0xa0
 [&lt;ffffffff812c5150&gt;] ? kobject_release+0x0/0xa0
 [&lt;ffffffff812c61f6&gt;] kref_put+0x36/0x70
 [&lt;ffffffff812c4d37&gt;] kobject_put+0x27/0x60
 [&lt;ffffffff813a21f7&gt;] put_device+0x17/0x20
 [&lt;ffffffff81bda4f9&gt;] hci_free_dev+0x29/0x30
 [&lt;ffffffff81928be6&gt;] vhci_release+0x36/0x70
 [&lt;ffffffff810fb366&gt;] fput+0xd6/0x1f0
 [&lt;ffffffff810f8fe6&gt;] filp_close+0x66/0x90
 [&lt;ffffffff810f90a9&gt;] sys_close+0x99/0xf0
 [&lt;ffffffff81d4c96b&gt;] system_call_fastpath+0x16/0x1b

That timer was introduced with commit 6bd32326cda(Bluetooth: Use
proper timer for hci command timout)

Timer seems to be running when the thing is closed. Removing the timer
unconditionally fixes the problem. And yes, it needs to be fixed
before the HCI_UP check.

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Tested-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bluetooth: delete hanging L2CAP channel</title>
<updated>2011-03-24T20:04:44+00:00</updated>
<author>
<name>Andrei Emeltchenko</name>
<email>andrei.emeltchenko@nokia.com</email>
</author>
<published>2011-03-24T15:16:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=a0cc9a1b5712ea52aaa4e7abfa0ec2dbe0d820ff'/>
<id>a0cc9a1b5712ea52aaa4e7abfa0ec2dbe0d820ff</id>
<content type='text'>
Sometimes L2CAP connection remains hanging. Make sure that
L2CAP channel is deleted.

Signed-off-by: Andrei Emeltchenko &lt;andrei.emeltchenko@nokia.com&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sometimes L2CAP connection remains hanging. Make sure that
L2CAP channel is deleted.

Signed-off-by: Andrei Emeltchenko &lt;andrei.emeltchenko@nokia.com&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</pre>
</div>
</content>
</entry>
</feed>
