From: Luiz Augusto von Dentz <luiz.dentz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Marcel Holtmann <marcel-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
Cc: davidjon-XRr60H37pjdAfugRpC6u6w@public.gmane.org,
"Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org>,
Linux Kernel Mailing List
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Kernel Testers List
<kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [Bug #15127] Bluetooth: sleeping function called from invalid context
Date: Mon, 1 Feb 2010 14:00:46 -0800 [thread overview]
Message-ID: <2d5a2c101002011400o53a69f5ap3757ecba41199499@mail.gmail.com> (raw)
In-Reply-To: <1265051657.31341.56.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
Hi,
On Mon, Feb 1, 2010 at 11:14 AM, Marcel Holtmann <marcel-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org> wrote:
> Hi David,
>
>> >> This message has been generated automatically as a part of a report
>> >> of regressions introduced between 2.6.31 and 2.6.32.
>> >>
>> >> The following bug entry is on the current list of known regressions
>> >> introduced between 2.6.31 and 2.6.32. аPlease verify if it still should
>> >> be listed and let me know (either way).
>> >>
>> >>
>> >> Bug-Entry а: http://bugzilla.kernel.org/show_bug.cgi?id=15127
>> >> Subject а а а а а а: Bluetooth: sleeping function called from invalid context
>> >> Submitter а: David John <davidjon-XRr60H37pjdAfugRpC6u6w@public.gmane.org>
>> >> Date а а а а а а а : 2010-01-12 9:19 (20 days old)
>> >> First-Bad-Commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9e726b17422bade75fba94e625cd35fd1353e682
>> >> References : http://marc.info/?l=linux-kernel&m=126328727021949&w=4
>> >
>> > you have an outdated email from Luiz and I change it to the right one
>> > now.
>> >
>> > I looked with him at the patch and I think this will fix it:
>> >
>> > diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth/rfcomm/core.c
>> > index fc5ee32..2b50637 100644
>> > --- a/net/bluetooth/rfcomm/core.c
>> > +++ b/net/bluetooth/rfcomm/core.c
>> > @@ -252,7 +252,6 @@ static void rfcomm_session_timeout(unsigned long
>> > arg)
>> > а а BT_DBG("session %p state %ld", s, s->state);
>> >
>> > а а set_bit(RFCOMM_TIMED_OUT, &s->flags);
>> > - а rfcomm_session_put(s);
>> > а а rfcomm_schedule(RFCOMM_SCHED_TIMEO);
>> > а}
>> >
>> > @@ -1920,6 +1919,7 @@ static inline void rfcomm_process_sessions(void)
>> > а а а а а а if (test_and_clear_bit(RFCOMM_TIMED_OUT, &s->flags)) {
>> > а а а а а а а а а а s->state = BT_DISCONN;
>> > а а а а а а а а а а rfcomm_send_disc(s, 0);
>> > + а а а а а а а а а rfcomm_session_put(s);
>> > а а а а а а а а а а continue;
>> > а а а а а а }
>> >
>> > We need some extra testing on this with the actual hardware we did the
>> > patch for. So this will take at least a few days before we get our hands
>> > on it.
>>
>> FWIW, your patch fixes the issue.
>
> nice. So I can add a tested-by line to the final patch?
>
> Just our of curiosity, which hardware did you test this with. We only
> know about one headset that should cause this issue.
>
Just in case, here is the hcidump of the Nokia HS-12W, the one that
has problem when we connection authorization is denied:
> ACL data: handle 11 flags 0x02 dlen 8
L2CAP(d): cid 0x0041 len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 26 pf 1 ilen 0 fcs 0xe7
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0042 scid 0x0040
< ACL data: handle 11 flags 0x02 dlen 8
L2CAP(d): cid 0x0044 len 4 [psm 3]
RFCOMM(s): DM: cr 1 dlci 26 pf 1 ilen 0 fcs 0xcd
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0042 scid 0x0040
< ACL data: handle 11 flags 0x02 dlen 8
L2CAP(d): cid 0x0044 len 4 [psm 3]
RFCOMM(s): DISC: cr 0 dlci 0 pf 1 ilen 0 fcs 0x9c
> ACL data: handle 11 flags 0x02 dlen 8
L2CAP(d): cid 0x0041 len 4 [psm 3]
RFCOMM(s): UA: cr 0 dlci 0 pf 1 ilen 0 fcs 0xb6
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0044 scid 0x0041
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0044 scid 0x0041
< HCI Command: Disconnect (0x01|0x0006) plen 3
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Disconn Complete (0x05) plen 4
So this means the patch works. DISC 0 is send from our side (due to
the session timeout) when normally it should be other end that
disconnects right away when we respond with DM.
--
Luiz Augusto von Dentz
Engenheiro de Computaчуo
next prev parent reply other threads:[~2010-02-01 22:00 UTC|newest]
Thread overview: 126+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-01 0:38 2.6.33-rc6: Reported regressions 2.6.31 -> 2.6.32 Rafael J. Wysocki
2010-02-01 0:38 ` [Bug #14297] console resume broken since ba15ab0e8d Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14426] CE: hpet increasing min_delta_ns flood Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14442] resume after hibernate: /dev/sdb drops and returns as /dev/sde Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14376] Kernel NULL pointer dereference/ kvm subsystem Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14487] PANIC: early exception 08 rip 246:10 error ffffffff810251b5 cr2 0 Rafael J. Wysocki
2010-02-01 1:39 ` Justin P. Mattock
[not found] ` <4B6630CA.9010207-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-02-01 12:54 ` Dan Carpenter
2010-02-01 17:57 ` Justin P. Mattock
2010-02-01 19:57 ` ohci1394_dma=early crash since 2.6.32 (was Re: [Bug #14487] PANIC: early exception 08 rip 246:10 error ffffffff810251b5 cr2 0) Stefan Richter
[not found] ` <4B673233.8000300-MtYdepGKPcBMYopoZt5u/LNAH6kLmebB@public.gmane.org>
2010-02-01 20:59 ` Justin P. Mattock
[not found] ` <4B6740B5.5070601-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-02-01 22:27 ` Stefan Richter
[not found] ` <4B675534.5070107-MtYdepGKPcBMYopoZt5u/LNAH6kLmebB@public.gmane.org>
2010-02-01 23:51 ` Justin P. Mattock
[not found] ` <4B676917.2080506-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-02-02 5:45 ` Stefan Richter
[not found] ` <4B67BC12.4080709-MtYdepGKPcBMYopoZt5u/LNAH6kLmebB@public.gmane.org>
2010-02-02 6:23 ` Justin P. Mattock
[not found] ` <4B67C4D2.5050205-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-02-02 6:55 ` Stefan Richter
[not found] ` <4B67CC55.40301-MtYdepGKPcBMYopoZt5u/LNAH6kLmebB@public.gmane.org>
2010-02-02 6:57 ` Stefan Richter
2010-02-02 7:42 ` Justin P. Mattock
2010-02-03 1:43 ` Justin P. Mattock
2010-02-03 9:18 ` Jan Beulich
[not found] ` <4B694D5C020000780002D6DA-Qfbpwmsw6RoS3W1tAdPHOtBPR1lH4CV8@public.gmane.org>
2010-02-03 17:11 ` Justin P. Mattock
2010-02-03 19:26 ` Justin P. Mattock
2010-02-03 23:05 ` Justin P. Mattock
[not found] ` <4B6A0123.3010607-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-02-04 8:54 ` Jan Beulich
2010-02-04 9:04 ` Justin P. Mattock
[not found] ` <4B6A8DA9.4090804-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-02-04 9:11 ` Jan Beulich
[not found] ` <4B6A9D4C020000780002DA99-Qfbpwmsw6RoS3W1tAdPHOtBPR1lH4CV8@public.gmane.org>
2010-02-04 9:17 ` Justin P. Mattock
2010-02-04 9:35 ` Jan Beulich
[not found] ` <4B6AA2D6020000780002DAD1-Qfbpwmsw6RoS3W1tAdPHOtBPR1lH4CV8@public.gmane.org>
2010-02-04 9:48 ` Justin P. Mattock
2010-02-04 9:57 ` Jan Beulich
2010-02-04 10:13 ` Justin P. Mattock
[not found] ` <4B6AA817020000780002DB11@vpn. id2.novell.com>
[not found] ` <4B6AA817020000780002DB11-Qfbpwmsw6RoS3W1tAdPHOtBPR1lH4CV8@public.gmane.org>
2010-02-06 23:57 ` Justin P. Mattock
[not found] ` <4B68D4CA.2010803-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-02-24 14:37 ` Jan Beulich
2010-02-24 15:59 ` Justin P. mattock
2010-02-02 7:03 ` Justin P. Mattock
2010-02-02 6:46 ` Justin P. Mattock
2010-02-01 0:43 ` [Bug #14482] kernel BUG at fs/dcache.c:670 +lvm +md +ext3 Rafael J. Wysocki
2010-02-01 15:47 ` Thomas Backlund
[not found] ` <4B66F79E.1040606-4qZELD6Fgxhg9hUCZPvPmw@public.gmane.org>
2010-02-02 21:04 ` Rafael J. Wysocki
2010-02-08 9:59 ` Alexander Clouter
2010-02-15 16:24 ` Alexander Clouter
2010-02-15 21:00 ` Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14298] warning at manage.c:361 (set_irq_wake), matrix-keypad related? Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14504] intermittent hibernation problem again Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14621] specjbb2005 and aim7 regression with 2.6.32-rc kernels Rafael J. Wysocki
2010-02-01 8:06 ` Mike Galbraith
[not found] ` <1265011579.6220.18.camel-YqMYhexLQo1vAv1Ojkdn7Q@public.gmane.org>
2010-02-02 20:56 ` Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14624] ath9k: BUG kmalloc-8192: Poison overwritten Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14656] Oops at __rmqueue+0x98 with 2.6.32-rc6 Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14657] perf subsystem breakage in 2.6.32-rc7 Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14667] bisected 2.6.32 EC regression - Temperatures not correctly detected after suspend - Dell Studio XPS 16 laptop Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14695] regression in karmic thermal control Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14668] Resume from disk hangs in acpi_ex_acquire_global_lock Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14670] i915: playing video via XVideo extension makes the screen flicker Rafael J. Wysocki
2010-02-05 18:49 ` Jesse Barnes
2010-02-01 0:43 ` [Bug #14742] 2.6.32 new menu idle governor causes very high CPU temp Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14782] Suspend hangs Lenovo SL300 after gdm login Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14748] e1000e NIC not working after reboot Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14868] flood of "don't try to register things with the same name in the same directory." on upgrade to 2.6.32 Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14886] Asus P2B-DS not detected as SMP moterboard Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14783] Unhandled IRQ on Thinkpad R61i: "irq 16: nobody cared" Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14817] When is system under load, then freeze/HD fail Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14891] Deadlock regression related to NFS root Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14894] pohmelfs: NULL pointer dereference Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14895] BUG in kernel 2.6.32 when using luks encrypted root and RAID0 Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14897] i915: Commit 0e442c60 causes flickering Rafael J. Wysocki
2010-02-01 9:31 ` David John
[not found] ` <4B669F8F.1030402-XRr60H37pjdAfugRpC6u6w@public.gmane.org>
2010-02-02 20:55 ` Rafael J. Wysocki
[not found] ` <201002022155.44016.rjw-KKrjLPT3xs0@public.gmane.org>
2010-02-07 12:55 ` David John
[not found] ` <4B6EB844.4090001-XRr60H37pjdAfugRpC6u6w@public.gmane.org>
2010-02-07 13:14 ` Rafael J. Wysocki
2010-02-05 18:51 ` Jesse Barnes
2010-02-01 0:43 ` [Bug #14898] ksoftirqd problem Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14922] 2.6.32 seemed to have broken nVidia MCP7A sata controller Rafael J. Wysocki
2010-02-01 1:13 ` Robert Hancock
[not found] ` <51f3faa71001311713sf4dbd45w240003a77de24f68-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-02 20:53 ` Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14939] drm: random hang with i915 Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #15000] Thinkpad dock button no longer works Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #14997] Closing and re-opening the lid does not reactivate the backlight Rafael J. Wysocki
2010-02-05 18:57 ` Jesse Barnes
2010-02-01 0:43 ` [Bug #14943] nfs regression? Rafael J. Wysocki
2010-02-01 21:46 ` Nikola Ciprich
2010-02-01 0:43 ` [Bug #14998] Caught 32-bit read from uninitialized memory in acpi_system_read_event -- 2.6.31 regression Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #15004] i915: *ERROR* Execbuf while wedged Rafael J. Wysocki
2010-02-05 19:01 ` Jesse Barnes
2010-02-05 19:09 ` Chris Mason
2010-02-05 19:17 ` Jesse Barnes
2010-02-08 17:24 ` Chris Mason
2010-02-08 17:35 ` Jesse Barnes
2010-02-08 20:00 ` Chris Mason
2010-02-08 23:39 ` Jesse Barnes
2010-02-10 16:44 ` Jesse Barnes
2010-02-01 0:43 ` [Bug #15015] blank screen at random times in laptop when sitting idle Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #15042] socket(PF_INET6 hangs when ipv6 not yet initialized Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #15021] agpgart sometimes fails to initialize sometimes Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #15040] High cpu temperature with 2.6.32 - bisected to cpuidle menu update Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #15096] Resume lock up -- bisected, commit 3a1151e3f124fd1a2c54b8153f510f1a7c715369 Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #15071] IBM/Lenovo Trackpoint speed, sensitivity reset after suspend Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #15100] X11 is black after resume from s2ram if my T400 was previous in docking station before Rafael J. Wysocki
2010-02-05 19:05 ` Jesse Barnes
2010-02-01 0:43 ` [Bug #15127] Bluetooth: sleeping function called from invalid context Rafael J. Wysocki
2010-02-01 1:06 ` Marcel Holtmann
[not found] ` <1264986406.31341.5.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-02-01 17:39 ` David John
[not found] ` <4B6711E2.6010409-XRr60H37pjdAfugRpC6u6w@public.gmane.org>
2010-02-01 19:14 ` Marcel Holtmann
[not found] ` <1265051657.31341.56.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-02-01 22:00 ` Luiz Augusto von Dentz [this message]
2010-02-02 5:17 ` David John
[not found] ` <4B67B57A.7000709-XRr60H37pjdAfugRpC6u6w@public.gmane.org>
2010-02-02 5:41 ` Marcel Holtmann
[not found] ` <1265089284.31341.63.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-02-02 5:57 ` David John
2010-02-02 20:52 ` Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #15108] Blank screen with KMS enabled (on clevo M5xN laptop) Rafael J. Wysocki
2010-02-05 19:08 ` Jesse Barnes
2010-02-05 22:31 ` Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #15156] 2.6.32.6 hang at boot with ati x1600 Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #15134] gobi_loader hangs after commit 8e8dce065088 Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #15135] Kernel 2.6.32.x hangs during boot process Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #15158] oops related to i915_gem_object_save_bit_17_swizzle Rafael J. Wysocki
2010-02-07 23:11 ` Werner LEMBERG
2010-02-01 0:43 ` [Bug #15197] padlock_sha1 and hmac broken? Rafael J. Wysocki
2010-02-01 0:43 ` [Bug #15193] kswapd continuously active Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2010-02-08 0:13 2.6.33-rc7: Reported regressions 2.6.31 -> 2.6.32 Rafael J. Wysocki
2010-02-08 0:28 ` [Bug #15127] Bluetooth: sleeping function called from invalid context Rafael J. Wysocki
2010-02-08 3:19 ` David John
2010-02-08 8:05 ` Marcel Holtmann
2010-02-11 2:47 ` David John
[not found] ` <4B736FD3.2000707-XRr60H37pjdAfugRpC6u6w@public.gmane.org>
2010-02-11 10:39 ` Rafael J. Wysocki
2010-01-24 22:15 2.6.33-rc5: Reported regressions 2.6.31 -> 2.6.32 Rafael J. Wysocki
2010-01-24 22:23 ` [Bug #15127] Bluetooth: sleeping function called from invalid context Rafael J. Wysocki
2010-01-25 5:11 ` David John
[not found] ` <4B5D27F8.6070707-XRr60H37pjdAfugRpC6u6w@public.gmane.org>
2010-01-25 20:56 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2d5a2c101002011400o53a69f5ap3757ecba41199499@mail.gmail.com \
--to=luiz.dentz-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=davidjon-XRr60H37pjdAfugRpC6u6w@public.gmane.org \
--cc=kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=marcel-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org \
--cc=rjw-KKrjLPT3xs0@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).