Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp310872rdh; Mon, 18 Dec 2023 22:28:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqePSt155dcvSkTrWtFiB3WQP3gdXNkkkH+IczKYqE2T4kn/+71rP3zi3XfpxRePjygp2D X-Received: by 2002:a17:902:6844:b0:1d3:dbad:8930 with SMTP id f4-20020a170902684400b001d3dbad8930mr378926pln.36.1702967328774; Mon, 18 Dec 2023 22:28:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702967328; cv=pass; d=google.com; s=arc-20160816; b=jiPu7BWM+TOuxz7rtkMVB0+3Im3iyEIsa3G3/EM9cgiz3BNhu8bmCXNL4An9/O/vJi vDXHjf0oq0rZxOsheqvdSuC2Eq5GDSvwjfO3eSq6mBmllN/8q0RT7prllXFJoauBQbL9 m9jOA0t/bLBedMdw11jH/BAldHBNQSNSrcYp6jqcD64he0tIHOSz4+wP/MU7i05hdHRY 4s3MTnUEmgE6K3G25MFiaKa4o6cR8C+n2LLcKLZpdUkASs3zzWp9/85iFfElbnm3Kq5O hbQGhAwamw15+loLAhhJ/Q0HuCx87LihhJOnL7C4PcDXzC3BSURmiOvsqfudLOGIs5BI wXxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature; bh=JLnx5xLLhxAd7ZteQMigJLp1k7X/GI6SIlPnJgmNfZ8=; fh=LbTi3gwr1a8y2DPlyy2i9hag33YpULP57BNhTQSXDkY=; b=UnhVkEST9ITPKWu710WTu6k1wHySolsqld4jO5hnOmvsWHin8io0j9SwgOShQABlYw i7krUavo3hC9XViRz9s7WzA3xO710Jzal/rDq/TFd1mdQhnyLSuQhUMQSJhbrFGKKgbn Kkin2kWkMo89USmvDW+lyh18UzkrUsXZCj3SGlcxWwiXWYcBJWIY42umEE3I8S3pLWNh AOvowvAF35Nr6E9ZAIuOcgJ4RCQLzOH41Fsk8egn7Gk4HhEad76H7AvW/6lTSRYDn7dr kZGSZk1fzKm8ijOUxBRO24/J19gVtLuY4rOeILX1t1hdSWEKVNfLKPgPoTfPmUG/IZsO rFww== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=iM7TXpYD; 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+bounces-652-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h12-20020a170902748c00b001d350276683si3044541pll.251.2023.12.18.22.28.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 22:28:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-652-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=iM7TXpYD; 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+bounces-652-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 08734282703 for ; Tue, 19 Dec 2023 06:28:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94F2079C6; Tue, 19 Dec 2023 06:28:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="iM7TXpYD" X-Original-To: linux-bluetooth@vger.kernel.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2052.outbound.protection.outlook.com [40.107.13.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 448E67472 for ; Tue, 19 Dec 2023 06:28:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d3aYBo81GtmC0VP/BmAXM7DjUNBXM45edPxa0d11TY2CSwCp5xkgit0NfMUtpuuKN8rhoIvjEqqLkn6GzBsPFxcKr0d1mWHzLnjtsL7SOdeJ6FeEYimfPCBuS3jFjHvNOgXR9lPTiwPkr5VlJxQ5bZ8RloxHrLw6qJCbJyQWpzDASLsptlVXtANmlagst+9IoXZZM/ORU2g8wmuicvztyJKDrY6wvA4N+ht42pCXY73BNwVxCNJFL6GhSBxOXkGiE6IprE6nK4b+TUQ/v4Kf9R5etEZcrf/Yd5kvpZprv1glMxCJ7FyZy4Us9+0H8ECLvDBY7S79ntl2DdJCxtR+Lg== 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=JLnx5xLLhxAd7ZteQMigJLp1k7X/GI6SIlPnJgmNfZ8=; b=ZWrL+q+p6hzLlQ4utX+zIGfSQ5lJvrvWH2WEsMQrqvCB/TSYnZL7JXjRjt74C32Rcnq+ziizhgGKM1aCu0nXNBO94vRlXuS2OyAAoV+Ip43q9Wk3w7gky7Q0vWG4jP4ZGGP3wlp33xQRu7ykWzfsn5aq22tl+6vpeES/d148nglPPLkOb+yEV2iFCz6jNKaiSS2RsqWvw2hgbRGdcRcg9VGelVsKEwH7wN6ZueS/+BufEsGw3Mn5pB5n3ZkOqncim97dyv3fj/bB2QgC9RqsyR4KK5PAk6j1ITAI0jiHWYW8YLRW0qcJLJpvxZbuPHeW5LVrgRNkTPJVOKIKyvFyKw== 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=JLnx5xLLhxAd7ZteQMigJLp1k7X/GI6SIlPnJgmNfZ8=; b=iM7TXpYDZppwF1BWzKBctvy8+eVDb5M2eerFa5jhmVdub0y6mZ5AHcgYlUwPVvGsadbUXdUKAkRml3g1REnOXkfGNeg0kho/yNHSorSK2mqnu3u3XHU2hxv0K5U8AWWq1+OBGlZbYJeAPgKQCdfN1HAMHx7Ir9pxxEe+Vqdy4Pc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PA4PR04MB7709.eurprd04.prod.outlook.com (2603:10a6:102:e3::11) by AS8PR04MB7717.eurprd04.prod.outlook.com (2603:10a6:20b:292::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38; Tue, 19 Dec 2023 06:28:37 +0000 Received: from PA4PR04MB7709.eurprd04.prod.outlook.com ([fe80::9f65:a4bf:7753:21bb]) by PA4PR04MB7709.eurprd04.prod.outlook.com ([fe80::9f65:a4bf:7753:21bb%6]) with mapi id 15.20.7091.034; Tue, 19 Dec 2023 06:28:37 +0000 From: Vinit Mehta To: linux-bluetooth@vger.kernel.org Cc: vinit.mehta@nxp.com, devyani.godbole@nxp.com, nitin.jadhav@nxp.com Subject: [PATCH BlueZ v2 0/1] mgmt: Fix crash after pair command Date: Tue, 19 Dec 2023 11:58:00 +0530 Message-ID: <20231219062801.307-1-vinit.mehta@nxp.com> X-Mailer: git-send-email 2.42.0.windows.2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-ClientProxiedBy: SI2P153CA0032.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::23) To PA4PR04MB7709.eurprd04.prod.outlook.com (2603:10a6:102:e3::11) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB7709:EE_|AS8PR04MB7717:EE_ X-MS-Office365-Filtering-Correlation-Id: b0504c1a-11c3-48f5-c392-08dc005bbbcb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lPVgPgHodXhs0PYUJYJovjoh7ax6gVjx4BX+iWeVXl1g140lNf/WbJOTIOdD3cP76iHDjy9d8po7Op/6PfYrpVKJEdeRAl2jMuXEvm5DEC81DomTztLnjU5Cc5/n+vkZ4A1tDDdiz384IMnztli5AC2gfOEHTFRDQ5IY1ohWTJa6CNlplZmlW2d7QQDqfoPASg1TLvQbd3GDeoFTBKrv4sXwOxf441UqGe9xme0dEjBqNDkQpQzR3stxEy7XgUT/YwlWtqhmhsCOYEnebMBgRuIy6Ap+sv19/wqP2Vqdchyujez4Mo65AGQDGQvhCTHfEZ9tljY2zx9VDQpJynJUHPnbSf1pVLYB3nxTNIiUS34R5Vuod5tqzPjStTMRXd4poeIxE09gZlbzWcCcLRw+Q2GrgDaILl3884zx19ONnSNDTa8yqcXocADHHCRtS0ZhqOBVA8ic45yB5DVV2aTEpDOloS5WDNc7mIBC28Wa7ALFXMoRDjhrcamYIIe98Ojl/Gbwc0OmdTNIzVCkL0VvTJm6Ub5XCwHxFDl/TqJ1Ajyt8IJtBm0EfyjEU2do6TRw4U+8CqqNNySohesrkejZK2g7l/2uN/S4itJ2vFT5G56fbivvxzmTfsAepMMCKgXa X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB7709.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(136003)(396003)(346002)(39860400002)(376002)(230922051799003)(451199024)(186009)(64100799003)(1800799012)(8936002)(8676002)(4326008)(6512007)(6666004)(6506007)(52116002)(2616005)(26005)(66946007)(66556008)(66476007)(478600001)(6486002)(36756003)(38100700002)(83380400001)(1076003)(86362001)(6916009)(38350700005)(316002)(4744005)(2906002)(5660300002)(41300700001)(44832011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?/75+18nvzqcofnQvonDKdJZ+JvLmtEIo0ZIpAJWma2dKHtzLaQC/Wp2wRy3i?= =?us-ascii?Q?WzpKUEIUjde8C/qHojDoCRk0thKOFw4JYOh8eNxEG1RBsoKgpJMyJ6ZwIMi9?= =?us-ascii?Q?5GfRUvcvZYciSJswhOFlOIS9DljFCC6LNEbdQlpcixofKZPYOlFPzuHFZdRn?= =?us-ascii?Q?5Ost8S4lSMZShmmsSnpq5g9jaMAC7zpHir0woif3cAgnohFZJuEUgm4j6EZR?= =?us-ascii?Q?VNx+lSLa6hu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P6HycEf4?= =?us-ascii?Q?+lddMYaqd3jnCtJKF/SpbS7DKSTeSM7RlV6TweOhar1mfYmYRoOXMVIGuFsy?= =?us-ascii?Q?47buIfBMXUMxsjRycNGlzS9FokHRWUw5s0SwceRYJ3uBMxNK8bLISHj/0Grc?= =?us-ascii?Q?s0X/aXjADt6BUj8p3/0VwYyZb2MM9eCI98zM/JF1UQi0nQNddPMr8y89wsm6?= =?us-ascii?Q?QEGkEa0ygO5zucOkvhIC5drLya6ZlHHA1MaHQwP0TMD98b7RoT9ku4GM8RZx?= =?us-ascii?Q?V4RZ2bzJEojBnztx9iFF6jOPPXniI/a01QIvZ9cbeck8i4wZBGLGKR6Ritjv?= =?us-ascii?Q?hJxO5P3oAF7SmfjDFfCV5mktPvlk+KQcOR5H01ocjl6acxz9C3lJvL97soSJ?= =?us-ascii?Q?77nM6lqJ2SPbaJDj/GLLNCyoMMVUc9vlzaRrjp3kKSzSdbT1TSQfmO7UzyBV?= =?us-ascii?Q?KXVn8BGdCrDX/Yf4jgfVqvGIHS/KZ1h9Wdn3DDfJ?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0504c1a-11c3-48f5-c392-08dc005bbbcb X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB7709.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2023 06:28:37.5648 (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: fH0afNC2K8uQJmRz5sZuM+fTBAPcSTJrz1+JLmFFJe7G1OPoW5KEFeRf6B7zLRBG7WDUn/cZo/W9zJAl22GnBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7717 Hello Maintainers=0D =0D This patch fixes assertion in bluetoothctl client process=0D =0D After pair command, if the user doesn't provide any input on bluetoothctl=0D CLI interface after receiving the prompt(yes/no), than subsequent CLI =0D command will trigger a call to DBUS library function =0D (dbus_message_get_no_reply) with a NULL message pointer which triggers=0D assertion in DBUS library causing the bluetoothctl process to crash. =0D The change is done in confirm_response callback to trigger a DBUS=0D API error call only if the pending_message pointer is not NULL so =0D as to avoid the assertion.=0D =0D Thank you in advance for your review.=0D =0D Warm Regards=0D Vinit Mehta Vinit Mehta (1): mgmt: Fix crash after pair command client/agent.c | 15 +++++++++------ client/mgmt.c | 12 +++++++++--- 2 files changed, 18 insertions(+), 9 deletions(-) --=20 2.42.0.windows.2