linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pauli Virtanen <pav@iki.fi>
To: linux-bluetooth@vger.kernel.org
Cc: Pauli Virtanen <pav@iki.fi>
Subject: [PATCH BlueZ 0/5] Additional tests for ISO and hci_sync
Date: Thu, 27 Jul 2023 00:25:14 +0300	[thread overview]
Message-ID: <cover.1690405564.git.pav@iki.fi> (raw)

This adds a few tests checking ISO socket handling of invalid input
parameters and cleanup in some race conditions:

    ISO QoS CIG 0xF0 - Invalid
    ISO QoS CIS 0xF0 - Invalid
    ISO Connect2 CIG 0x01 - Success/Invalid
    ISO AC 6(ii) CIS 0xEF/auto - Success
    ISO AC 6(ii) CIS 0xEF/0xEF - Invalid
    ISO Defer Close - Success
    ISO Connect Close - Success
    ISO Defer Wait Close - Success
    ISO Connect Wait Close - Success

There's also one for a hci_sync race condition that triggers GPF:

    eSCO Simultaneous Disconnect - Failure

I have a patch series fixing these, but we'll revisit the
HCI_CONN_DELETED flag there, so maybe discussion needed.

These fail on current bluetooth-next/master, so it could make most sense
to wait for the fixes first.

Pauli Virtanen (5):
  btdev: check error conditions for HCI_Create_Connection_Cancel
  sco-tester: test local and remote disconnecting simultaneously
  iso-tester: test with large CIS_ID and invalid CIG_ID/CIS_ID
  iso-tester: add tests checking Remove CIG is emitted
  btdev: fix Command Status command opcodes for Setup Sync Conn

 emulator/btdev.c   |  80 ++++++++++++++++++---
 tools/iso-tester.c | 168 +++++++++++++++++++++++++++++++++++++++++++++
 tools/sco-tester.c |  59 ++++++++++++++++
 3 files changed, 297 insertions(+), 10 deletions(-)

-- 
2.41.0


             reply	other threads:[~2023-07-26 21:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-26 21:25 Pauli Virtanen [this message]
2023-07-26 21:25 ` [PATCH BlueZ 1/5] btdev: check error conditions for HCI_Create_Connection_Cancel Pauli Virtanen
2023-07-26 22:21   ` Additional tests for ISO and hci_sync bluez.test.bot
2023-07-27  9:28   ` [PATCH BlueZ 1/5] btdev: check error conditions for HCI_Create_Connection_Cancel Pauli Virtanen
2023-08-01  0:19     ` Luiz Augusto von Dentz
2023-07-26 21:25 ` [PATCH BlueZ 2/5] sco-tester: test local and remote disconnecting simultaneously Pauli Virtanen
2023-07-26 21:25 ` [PATCH BlueZ 3/5] iso-tester: test with large CIS_ID and invalid CIG_ID/CIS_ID Pauli Virtanen
2023-07-26 21:25 ` [PATCH BlueZ 4/5] iso-tester: add tests checking Remove CIG is emitted Pauli Virtanen
2023-07-26 21:25 ` [PATCH BlueZ 5/5] btdev: fix Command Status command opcodes for Setup Sync Conn Pauli Virtanen

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=cover.1690405564.git.pav@iki.fi \
    --to=pav@iki.fi \
    --cc=linux-bluetooth@vger.kernel.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).