From: Marcel Holtmann <marcel@holtmann.org>
To: James Courtier-Dutton <James@superbug.demon.co.uk>
Cc: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Questions about correctness of hci_usb sco support.
Date: Sun, 29 Feb 2004 03:42:09 +0100 [thread overview]
Message-ID: <1078022529.1942.6.camel@pegasus> (raw)
In-Reply-To: <4041509E.9000402@superbug.demon.co.uk>
Hi James,
> __recv_frame() receives a frame from the USB interface.
> It then joins up frames to create a full HCI packet to send to higher
> layers.
> "struct sk_buff *skb = __reassembly(husb, type);"
>
> So we have a skb for each HCI type.
> The skb will not exist the first time we receive an frame of a
> particular type.
> The current code always assumes that the first frame it receives of a
> particular type will always be the first frame of an HCI packet that
> might consist of multiple frames.
> I can't understand how we can be 100% that the first frame seen is
> always the first frame of the HCI packet.
> I can't see why we cannot ever see a situation where the first frame
> received of a particular type might instead be the second frame of the
> HCI packet. As the __recv_frame() uses the contents of that first frame
> to control the reassembly process. How can we be sure that that first
> frame does in fact contain the first frame of a valid HCI packet?
> E.g. If a remote bluetooth device somehow creates an HCI packet with
> bogus HCI header, surely this could (worst case) crash the kernel?
I don't really see a problem here, because remote devices has nothing do
to with the local HCI. We can only be in trouble if we lost an URB.
Regards
Marcel
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
prev parent reply other threads:[~2004-02-29 2:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-27 18:38 [Bluez-devel] Questions about correctness of hci_usb sco support James Courtier-Dutton
2004-02-28 13:07 ` Marcel Holtmann
2004-02-29 2:38 ` James Courtier-Dutton
2004-02-29 2:42 ` Marcel Holtmann [this message]
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=1078022529.1942.6.camel@pegasus \
--to=marcel@holtmann.org \
--cc=James@superbug.demon.co.uk \
--cc=bluez-devel@lists.sourceforge.net \
/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