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