Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2841958rwo; Mon, 24 Jul 2023 02:00:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlHeEYZCURSAGZyYXTWQ/rdrog++YDe5HBZGL5mxlzwFsyOmh3yB0F9wcO9q5hvlZ8RnVLdP X-Received: by 2002:a17:906:748c:b0:973:ff8d:2a46 with SMTP id e12-20020a170906748c00b00973ff8d2a46mr9410504ejl.3.1690189244375; Mon, 24 Jul 2023 02:00:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690189244; cv=pass; d=google.com; s=arc-20160816; b=L1BmHuhVZwAmvOthNbdQkPhE7bb3cWrAHUB9QebuTehC3tVJHrbuNrvNpgnK+eyNxw DffioSgwfSsUkxZVe06psuPapSM3NGTkQsg2S2b0s60pEOJZSG5B9oJQ/bBDwnNu/+m7 FOnxz5PvfXjB3kGYTgosthiJV7HjIOa6tIQLJzjwPG69sikjOJ7kW1DiZi7RV5WP3XWl uTo7repCPhQ/QmIxiCz5VONYY7ytyl46iN3XYc89zDSlHQ+sf01H9LdFgU4P3mUuoZjO 7P5SdvjaTl5uql8MLKLzOReVpT/dEbGN/XJxMlhboIqkja2bJr5GJ/Fs8hRlW2QXymWH +tPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=orFneN1+Oxw/4fNqRV/okxHZk+vZkVuKzUSJE27KPJE=; fh=O7b9e/0FHf0lC36zxfkGCP11r7lJVOROe7GJbtvFS9U=; b=OjnsByoX/YlSAHDX1TlhaAB429p75DWyS2b++YHdk5Krp5/eoNyn5GxnCjpOYTXFeU 1OERCWa7X6ZkSh+zH/YZ2cJrzTEwnk133CqMzxB5Jry7G3ViiexdOSrCPQKfAwIgN6q+ rHa283fiHzDxa1W/nFPq+84/57hm2kn1dYgvIGBjvxXLhSjEjiF29bMLZ0srVVBeV4q9 LqUrpx+lpx0b9Qf2wxoNV04zlneobcZ9OuFYCagTma66/IsUbeabJEh3OqBErKcLub6X yPJJsyvFxH//I8oNJGY6p99887rE+Kpwoj7J4aAMkXG4hS9teBjb+BzNbzwALQ3lJoA3 mnRQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=h9RvzWya; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lv5-20020a170906bc8500b0098e2a30ec3asi5674404ejb.385.2023.07.24.02.00.04; Mon, 24 Jul 2023 02:00:44 -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=@nxp.com header.s=selector2 header.b=h9RvzWya; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232032AbjGXI41 (ORCPT + 99 others); Mon, 24 Jul 2023 04:56:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231971AbjGXI4P (ORCPT ); Mon, 24 Jul 2023 04:56:15 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2079.outbound.protection.outlook.com [40.107.105.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A78AD19A1 for ; Mon, 24 Jul 2023 01:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M4+eva2mUaMWzBXqsSVRBzFZNN2bbUMkYFoqT+VuafUi9oYQTFsLOyOHOnlLjSMMsOdBJ8N6if8+jC0sSYI+ItRXAx0i8cwgsNbzBzLKFQYHRdNwOa503r+IT10KrrVEIY8pd6qjQj6qSj6xqgY4pNUGrKQmghecUT3zUkXcFVxT8l9gYIUwTNxJaqxaLUy+7mffbNzsj4uJ5/Q0AP7XxtTyAfcjbYcd2bdQSv5lBUu8eZNT128rUZ0XzLk5lec2SuqfRKSq0kQgmRacEORSIbAG7iYJG52P9sOzjF9ld7z3zRizq/Xq6YxTFO50JzArLlfKXbZqm37jokr1Uf8+Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=orFneN1+Oxw/4fNqRV/okxHZk+vZkVuKzUSJE27KPJE=; b=U6PdsV46sQBnhEsTxwcHWnpRZD631WCI02CxLdVsabN18KLJHHyr9fllJBo7WKDa1yfI9L5/6q8ipKc2Tro3gDLP/3J+tSsE/bjuvqbvdcgbsK71jrIvvJcC0zUwQnf1bpBDn02wgrYQdZ8BHrzimsoruQcZb6qHbQxb+WmrfqRdVCm2D1yu5Ab2X+wsbEEcJkSyn9eFw5PqxuHIDysXWjvo6A3K6CBYN4oGp2xSVTMMlSGbIGIqwHIwNgM8PF9bDV9JP+uo5nWr/5QxnXhYjLQ3JKhnA5u8GCUNPVCx6oYrOcp/xCx0Mjznwa6rgD4lo8kUz/ebeylPahRIr2GoHg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=orFneN1+Oxw/4fNqRV/okxHZk+vZkVuKzUSJE27KPJE=; b=h9RvzWyatS9eQGNPAZ3AMZjHgTwt+4s7mGkAMpHp//e6GjSaC7b7w9Xz22mfWlJsrMv1Y+o2XEX8LKSmXu5A5Jn/4sxTzW6P1vGvjrSsGFUFBEkyzc8EI3szeW4b8t5cTnmVH7U1e0o8Xey8GhqC57Jw700gRSrX6LqBuFTk0dU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB9126.eurprd04.prod.outlook.com (2603:10a6:20b:449::16) by AM9PR04MB8537.eurprd04.prod.outlook.com (2603:10a6:20b:434::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.32; Mon, 24 Jul 2023 08:55:57 +0000 Received: from AS8PR04MB9126.eurprd04.prod.outlook.com ([fe80::273d:f528:aaa9:288]) by AS8PR04MB9126.eurprd04.prod.outlook.com ([fe80::273d:f528:aaa9:288%4]) with mapi id 15.20.6609.032; Mon, 24 Jul 2023 08:55:57 +0000 From: Nitin Jadhav To: linux-bluetooth@vger.kernel.org Cc: devyani.godbole@nxp.com, pav@iki.fi, luiz.dentz@gmail.com, sathish.narasimman@intel.com, nitin.jadhav@nxp.com Subject: [PATCH BlueZ v1 0/1] Fixed the crash observed with VOCS when pairing with LE Audio TWS earbuds Date: Mon, 24 Jul 2023 11:55:29 +0300 Message-Id: <20230724085530.5555-1-nitin.jadhav@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0056.apcprd02.prod.outlook.com (2603:1096:4:1f5::7) To AS8PR04MB9126.eurprd04.prod.outlook.com (2603:10a6:20b:449::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB9126:EE_|AM9PR04MB8537:EE_ X-MS-Office365-Filtering-Correlation-Id: fa537ea9-3690-4add-3e2f-08db8c23cbc7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wwzw+H6Dva4hxQGebMN84HN9n9NzaFu70FK+R5k7PEwu+O1i/9VnE7sS/Q3nAZkG0vU2lx56rZl4BfkW9x23HMaGfEYuW7TakdTf+l2STSde6QKsRjF2xcX/Pjp8Hcfd/7deEa6s4hkckbf0EEWrM0fiKCPN5DUZqNUisEMuSLZiPCFFbW2Il3h5IEMSR0K7J5OXPAst4nqZN4HxsdCPx+UfRnBZdOp2vl/ePJJNRxNwOUfO5KBTBlEaodxLQIYP4j6sHWaZ7lR3FOoMjOI/PsJrj303tCOVpAmitryc4YXjgkmO5h007hWYMdPgL4BvKE3JHNZHesCfObNQT5OuMUvQuFH2Ac6dGahI8mzpCmBso173g07fj28eMEhT7Aj6YQVdQ2Amq0jytI/YK2JsaC+xDhkdCYXr+kvwqzb5wydK25BMcJBpJo4Usn+g78P5V3hCzzz1kgjqNdFezl0VUwGaJidCHX9PALpxcRbaFI6K6XkEjo+MhFtHa+COkiHOeQ7zXT5oH7XbC7z8keb6AEqQkdSr4KpxNUJ0cmNm2cu3me+p9ilT8NG9SwocnKMCJ6XPMYd/333ahXyoKh1c6ImScy6s+M5d1+4pV14syrw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB9126.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(366004)(39860400002)(376002)(346002)(136003)(451199021)(86362001)(38100700002)(38350700002)(66476007)(4326008)(6916009)(478600001)(41300700001)(316002)(66946007)(5660300002)(44832011)(8676002)(8936002)(966005)(6486002)(6512007)(6666004)(2906002)(4744005)(186003)(52116002)(1076003)(26005)(6506007)(66556008)(83380400001)(36756003)(55236004)(2616005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Yd2bfPmKHSb2rJjtKFix9mlEqKOJbh6rjJ1RRwH/hrMoAdMUx6Et4HxK0HWz?= =?us-ascii?Q?CutZ8rNwosDCofuoM3ABmH7rvb8KD0woEhbxqQIwgRH4EYrbWh87LjqQ3TbH?= =?us-ascii?Q?KcNRWzNo0HmhjDxubxWxBrnEhTbdQaZK+vCuITpZ0QBSTbLZP0AfJi+wbju9?= =?us-ascii?Q?RQSyLqoDCZ0/D02TxEdbN9rW7lC71NUXjvokkFwbXnGzsGfdncVqrzKVONy1?= =?us-ascii?Q?ll4aZNUypS5b2dhXCNMPizFus7rF/bl7BdW2xkRIsEeWikCPJtJytx/RLxjy?= =?us-ascii?Q?4QgPuOp+/Aagchnr5Tc1FdA8Mcx+rErxwQpvdg/zQg+SH2qo01mSXRn+9CR2?= =?us-ascii?Q?U7kIZjQZD4rr3r3W+itrrCOvDK1nKoC9vPs69Y0Yal7UydTCGkbRPsOmQdRP?= =?us-ascii?Q?dBK5pdAKzHojlYsm58DaH41CzR0bmR96lmkofUUW9EXrQlnSO7SId3igqVPg?= =?us-ascii?Q?rEQOeIh+Aew10xlN5Tt1na1kSOYJKXaWfrpmez418M0wNtNxFOxoO7sxSh6I?= =?us-ascii?Q?WosybYS7pNpSElkEtBAiljVdwMIGpr4nGF3aDiLWHbyd87W47HJuVkygiveA?= =?us-ascii?Q?EPTG7yUi3QgXFBTBHRuLWZ5kzGclkGo02pdNxstT3qRp/viOCEciZ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FcDg6yXtSatQcbdE6JkLCIW/xmPvyUFnv8KRnfIPljnK?= =?us-ascii?Q?isdpD/TkDI7QicaazFUHxOHVsXyMVKkjYtOEBNnr?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa537ea9-3690-4add-3e2f-08db8c23cbc7 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB9126.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2023 08:55:57.4567 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: EZq3jx4uUPjmSI1yuIw4MWRRuaFzJwp3qZylqhzwcBpXTC4ZVxISwPq1lf5klQbmVap3eNSSK2R5kyCr5WZ3ig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8537 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_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 Hello Maintainers This patch handles the fix for the crash observed with VOCS when trying to pair with LE Audio TWS earbuds. A crash was reproted for the following patch by Pauli Virtanen . Patch Link: https://patchwork.kernel.org/project/bluetooth/patch/20230612133251.194-4-nitin.jadhav@nxp.com/ Root cause: - There are two types of database- Remote and Local (rdb and ldb) - In client mode currently the code was written to access ldb Fix: - Correcting it to access rdb has resolved the problem in VOCS - Same correction is done for VCS. Thanks Warm Regards Nitin Jadhav Nitin Jadhav (1): shared/vcp: Fixed the crash observed with VOCS when pairing with LE Audio TWS earbuds src/shared/vcp.c | 52 +++++++++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 23 deletions(-) -- 2.34.1