Thread (10 messages) read the whole thread 10 messages, 4 authors, 2013-07-10

Re: [PATCH 1/2] Fix tty refcounting in rfcomm/tty.c

From: Dean Jenkins <hidden>
Date: 2013-07-10 08:17:27

Hi Gianluca,

On 09/07/13 18:05, Gianluca Anzolin wrote:
In net/bluetooth/rfcomm/tty.c the struct tty is used without proper
refcounting. This leads to OOPS and panics triggered by the tty layer functions
which are invoked after the struct tty has already been destroyed.

This happens for example when the bluetooth connection is lost because the host
goes down unexpectedly.

The fix uses the tty_port_* helpers already in place.

This patch depends on patch "Fix refcount leak in tty_port.c" already sent to
linux-kernel. [0]

Signed-off-by: Gianluca Anzolin <redacted>

[0] http://lkml.indiana.edu/hypermail/linux/kernel/1307.1/00600.html
Do you have any backtraces of the OOPS and panics ?

In which kernel did you discover the failure ?

What platform were you using, I mean x86, ARM or something else ?

Is this failure easy to reproduce ?

Did you use Bluez userland to control Bluetooth ?

In the failure case, what protocol or application was bound to the 
RFCOMM TTY ? I mean was it SLIP, minicom or something else ?

Thanks,

Regards,
Dean Jenkins
Mentor Graphics
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help