Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5939558rwb; Tue, 1 Aug 2023 09:55:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlFeWUzSrRsb/gb0siniRHd7I90b7h8Um3LPaVMiTgS0j40umM5TTsPkXnsUN4LIv3l/KFxG X-Received: by 2002:aa7:c706:0:b0:522:7ab4:31fe with SMTP id i6-20020aa7c706000000b005227ab431femr2856841edq.23.1690908942625; Tue, 01 Aug 2023 09:55:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690908942; cv=pass; d=google.com; s=arc-20160816; b=0ubTGZnEmuYrr2pddXR689CyCqymO77UcbhR3bfcFHRWOaiCryWs7L9oK0tIEr4L40 4uX3IJ34OHJiViabxtYMejXcCW0KqpOl/2/Kj2rrFphu8zen5hT3A5+cXbTB2wzqo50G 8wi/w6YnhN14qsROjE6IaBbqDBh81mO22MYlM52FzNv0/YaqzpyluhKmH24W2cC46TEA tIfMPKKD/m4Q3SbuDfziRQP0g1M09TaaqOYGYe7zHfby4QYe8vyNtrCMXKmSk6n2UqXX 3DGHo03j9LyDAXB7VANCXcjImuxlIUA99FvWtc7GZ5faxbJQF7X608kX7LMyMfEcL8AQ x0ag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IMGGkyFmtLIiLQWPgOi3/yfrQT0lH9bzCBdkcDEgnpo=; fh=raBgKoRsHCwQLc6ReOhmOoEQ+DtSaNc74fugaHBwryI=; b=D3VEYMyvHPd+8NgyjRJbe8fV9TrGqeJXZt8nSr1yWavkL5KIQLpUUY7jw8+wvKAOhq 5FA3sfZ0W4UOEBSL3VpUsyRclyFRvHk0HhmsmMCMUiJNbMY97mJ7PEm64+7ncBI32IOD rDl66plGpdv+8XuAlNQmtuU3wPHalgURW/V32ISI9uQcEars3nr2jXpKPK7T2zdYIQmM JoVQVUOQEmmmtfCFYQQrQocok/CdZG2MBuS9MszmdNyJ056HXlRtatR4E/UlHkxs3dm4 9TR+MgJwqSHNe3V8cnnA5le+EXw3rjj6zs19RuVcU7RWQXy6Ja+8rdSKvG692k+Kn28o ZcLw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=uhrIAk3S; arc=pass (i=1); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b24-20020aa7df98000000b005222c364c66si8338235edy.462.2023.08.01.09.55.02; Tue, 01 Aug 2023 09:55:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=uhrIAk3S; arc=pass (i=1); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231461AbjHAQiv (ORCPT + 99 others); Tue, 1 Aug 2023 12:38:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231374AbjHAQit (ORCPT ); Tue, 1 Aug 2023 12:38:49 -0400 Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37A781FE5 for ; Tue, 1 Aug 2023 09:38:48 -0700 (PDT) Received: from monolith.lan (unknown [193.138.7.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pav) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4RFgm60Q2cz49Q4D; Tue, 1 Aug 2023 19:38:45 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1690907926; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=IMGGkyFmtLIiLQWPgOi3/yfrQT0lH9bzCBdkcDEgnpo=; b=uhrIAk3Slh+56DAbkWfXGvH5hcL9WUYvbksAGgF8TI4UaN3LNSSR1Gku7isFbmNR/oShHo AwPORZFAHjnbfsV/N1arrHrLniFMf4NiZ+CQ9lPscuJ4NTWLIvjCgN9FEhP+4Fvc3gTAbE i3VD0cgKTFNoMoqlmWH6EEGMf7tvP2vsXsWgs+45TbgKTHEnsk6j7E1oqB/as+EJkYTdYv 0iPEB2lDQoVpsDjz1vaHo6ibE/dMP7aL2nKppMdv3X1uLdqCHrwlYgUzwITm4PM8FErV4Z WUiGJGUCQA/CGUSsFJy/FubBqD0bvQCU7oSk7OKMy/voNx2ALEsriN4zR7tZlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1690907926; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=IMGGkyFmtLIiLQWPgOi3/yfrQT0lH9bzCBdkcDEgnpo=; b=mRD0NxqRDPjs5Uw90yEhTB2fIum46kO4KtShkdfE8yLePtGgoQyPxH16XJtvQqYf4xncUS BfGczXI4OjOxxL43YlOAqBIZZE4GlMKEv5TvQCXu+WA1Jggc4NRe+eZ1+OJ8/gtcsT89UA vJXwWAYHuo41+7015OMeFmDSXBGVFyeG8RkSUZbhed9PYuGLNcM0KCwQuPnkgfLYDogFJj 5eRxkzgpyUl0roS7FqRQ4wQcfpqsWke4NPSIPYP4oLddW9cB2xQxbfP3Fz+6MUjwiYiQTg 6nl5K0WuLdADLrDUrXFbfoeXXDrQdyWTjGe05SyvcyGJ57dm+BbriKq44klBIA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=pav smtp.mailfrom=pav@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1690907926; a=rsa-sha256; cv=none; b=tu3ZBc6ueDNdAgqwWlcN6zk1PR3vgGGl5RqdycpXdahwouetxF/Ny8bj4ZZceQRGCU7Z8S PB+jfbYoLPdIzcbcsXlIh4mg3norBHzSi+WEzZyOWxjcitDp4cR11V+2A/F+G+ZdeWDZhn Fq7Ef5n46vfK04vC/eIqJ49eTbi70EOXn2s8kSMN1y2SY89dTeSXuxZca8Sr5sCDFm+sQV 0DjSRgL/w2+CQLcP/Fz8lRDpVooF0ap9/VJSki914NpTOONjyAcptSUdsbpVkcrnfiaMxO Eh8E8yaXCyFpQzzoEuwfYZorhP+lDL3Hes1yNLrXfHLmaF+CP2HiZBuxHzyIIQ== From: Pauli Virtanen To: linux-bluetooth@vger.kernel.org Cc: Pauli Virtanen Subject: [PATCH BlueZ v2 0/5] Additional tests for ISO and hci_sync Date: Tue, 1 Aug 2023 19:38:37 +0300 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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. v2: - emit correct event from HCI_Create_Connection_Cancel + fix compile Pauli Virtanen (5): btdev: check error conditions for HCI_Create_Connection_Cancel btdev: fix Command Status command opcodes for Setup Sync Conn 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 emulator/btdev.c | 90 ++++++++++++++++++++---- monitor/bt.h | 4 ++ tools/iso-tester.c | 168 +++++++++++++++++++++++++++++++++++++++++++++ tools/sco-tester.c | 59 ++++++++++++++++ 4 files changed, 308 insertions(+), 13 deletions(-) -- 2.41.0