Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1549808rwb; Wed, 26 Jul 2023 14:31:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlFKj0JgXW3ILfHzqMAE3pOLOxfY9Y8E5IeECFVp/KpU4w6MvVYS2lWTa1JaEzM6jUsI3IeC X-Received: by 2002:a2e:7a16:0:b0:2b9:aba6:7638 with SMTP id v22-20020a2e7a16000000b002b9aba67638mr197633ljc.49.1690407066790; Wed, 26 Jul 2023 14:31:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690407066; cv=pass; d=google.com; s=arc-20160816; b=cV8uZz3jM6OUqPa31aT2eCZo/7+6ozwpHw8Vame6mkg6r3UD9mGipHuFxras/k97gX I7oXDJ4nyUgXgxCBTsreeAJoIZvhdjcVenbnP+xqUpvr+kqHQ4EHjoc4uTnEX/f+kkat 0PXcP3hyGPx4/eSdn0vaivHSNlIDmrCThgIuqavnOnfXptko5MgZ6JIzGZKicoMo9mjz qYgXdt1rGbNplwCwcKxtf6N30xQESLdJEdUFRXAMH1If5axcvCb4tGYAxN5m90Z8ULfg 94pOh5H8A+QCrhFLJe/AfbbyLN8rVcfIPQ2JMbWdLe34jZhrE+XXsG6iN1GKItfo5syM io7g== 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=wcwZWiK2rfnuL1oJiHrTufItNtj5nRtCSp+kgMClWpM=; fh=raBgKoRsHCwQLc6ReOhmOoEQ+DtSaNc74fugaHBwryI=; b=ZPTqzmZ7j+v+Nru/zGpsrIVsb13fTHK/rzLPjwCrDIoP/2Xcs5wExmgjbkCuFmuhG2 3Auz/HIgwp+XtlWn4GW7TLbFRCH8XMDqa3j/USwkBw6SRlVVd4KM8Z/Nu3dETLT8nnsV MTmuMJ4AT+twgG1E1IzSm4vXhz3S9zKG6YX3JE/iWLkVU1SUV2N5QCoYzo+toA1kS5BT 3bxNEdlflQWNfg7dk9ZsBU6Ln4fe88m59/d+s4MtpxIVo5beOTe20r78IyWKPlcj10H6 egRuRiKZfgmPGs/NVvKVkuwrPDAm55aUo+tEmY7aWpjHDg/0FKs3yDgw0BXyuURITGWk X/8g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=dyphzWA9; 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 ja12-20020a170907988c00b00992a91b422fsi9947207ejc.41.2023.07.26.14.30.41; Wed, 26 Jul 2023 14:31:06 -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=dyphzWA9; 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 S229984AbjGZVZf (ORCPT + 99 others); Wed, 26 Jul 2023 17:25:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjGZVZd (ORCPT ); Wed, 26 Jul 2023 17:25:33 -0400 Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CE632685 for ; Wed, 26 Jul 2023 14:25:27 -0700 (PDT) Received: from monolith.lan (91-152-120-101.elisa-laajakaista.fi [91.152.120.101]) (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 4RB6Pb6r9jz49Pyr; Thu, 27 Jul 2023 00:25:23 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1690406724; 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=wcwZWiK2rfnuL1oJiHrTufItNtj5nRtCSp+kgMClWpM=; b=dyphzWA9YGzS/kWng33LGCof5BjnalPrGCJjf7P7hFQ0tj2OjqFUIWi9KEsw2qcEqgXXju pTbk43nwynISmESNfQvsxsX+PUzTKYZfhtn5S3qvlZR4KYFwUpU6ltoIB6ExLzuwbjgl/Z HISti1FZ94NT/5tU+RmV1Ps8BUlhnwu/K7O78qI/QOtN0ykXPBGdvfPFp4AFyJif1GRgdc +bYJIs6bzyKNM+orneQaMLv+qDJjEocrABk2OFARZWYL1jJ0r7Jby185R5Ng++4WizNNFP MxoW5KlddrtZK4CMK8sD2+ontQ0nXoVPF47NNLPeCnATggYpb1sElNaE7CrejQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1690406724; 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=wcwZWiK2rfnuL1oJiHrTufItNtj5nRtCSp+kgMClWpM=; b=R5c2nabtB5H5AazzOnaHqO3LpY4GTvgcn03BpavM02i5ZGwZ9CxsryVcjfAA/m+e9k8z8s pUqozqfCAVBYwf44F4x0uYB60051wbHxPKNs2P8UjpDJmJlX0WuUzirI9fIBFrPGQf1cpR a7gIH0CR28WbursLJGpQHGCbuRGvwYRzni7qWXcf3xEChEDp7k5AY704hd+Sb2/Yu+6piu 2tPo0q3xvrsptLi+YciqgiP0sVu7fmMpnraln0qPO5Ky4Krl6dguyKFW4g5xXXFuZgzFZ5 eOfWPfnnKAdQ9cb95wY5Bm1QKxI930tp4qd2NUcX7nP3zF+LVwxLR6TizrMA1A== 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=1690406724; a=rsa-sha256; cv=none; b=BGfo56jO5U/5GNwGrJ17KaOj0DVpavR5dbWTmXLM+1A4NyTDc/6VfwIoaYt5T8t/Kaqa4G jo1uAOv2O6hy3JYZ3EPMlL5y0H/rplTsUtHZbFAG8aQ9L/ujt2zcDGtwXv/u575VbHrVCp okwr1rDjmrEAiZ5pvg99/ySCmoImwQgy1Qvf0mivYWdrUiMpUzgnYinJvd+CirrL/kJVu8 tKlhlLTK1UmxAm4QmWkFpqw9DXnNLsCjiKP9Esr5HGH8L+DK434rOoe+OOXJwB4G3bZ4u1 3GsUPZ7v2kTx4IDjMmMqSV0AU2lmRgRYgLCdU4FVj9OlpJslUjbCMeDwjNDRCA== From: Pauli Virtanen To: linux-bluetooth@vger.kernel.org Cc: Pauli Virtanen Subject: [PATCH BlueZ 0/5] Additional tests for ISO and hci_sync Date: Thu, 27 Jul 2023 00:25:14 +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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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. 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