Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp601631ioo; Sat, 21 May 2022 08:14:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxk1QqWbJCiuLRIXz9qxlIpUGzl1VNqoT8jE21seUebstU7GG1ssDZTjpp6/Regcv1zNJ6t X-Received: by 2002:a17:907:2d8e:b0:6fe:b423:9693 with SMTP id gt14-20020a1709072d8e00b006feb4239693mr5956726ejc.698.1653146067070; Sat, 21 May 2022 08:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653146067; cv=none; d=google.com; s=arc-20160816; b=TeSScQHJMG6BQzZAvYJIb2+kYVQ4RGaEPWs8pzXJHLr9D3n51CIud5zKlV2wQuG0sp jUDq5NofYFNurA3SCorpWPipL8Nr5Fr+dFIsCQpqn5ROgiNcMomqnyGKcpeak/t677qS CGoSv/aQtsKgYddjTCF6ONKYKNdGMCFUPTnSREtYKto0G6QOWqFwHc135l2v9t0f/pif I66tdoPgQZzXzyzDXhOrEpp5IRZosV6nSrOvhQ7qgKTsS+tbrM0F4IzVxsA9Yc4vs63R k4QCgi3Xo5WaYmMVPcXp82BRhgdCbMaQxqsIc+hv+LbsoD9u1l9qegarfGSDBunw069x 29VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=5GMjKkAkxqmD9oTLqOQC6p7oV5qIOTZfkL4p5aNBzwY=; b=O5eeoBJhCJt45GnC6bosbFORhe4cJie25goBmLV3MdBzkUdtCe92VZf/IACTEfKM4c f3J0To+2x0MUSZbwjFeDqsv1qsgwiB/Br/mVeYwbyYE4qZaNxZ7t6rvDpI/Sf58ULFTf 2HPOYCLk1TZSxnhDmN8Z9QoSeEPuONezMEeca5y9yXWbtjytRViEUw4/EPhSGdxRn6FI w3obQLnFc51rzxqkc+6Xeh5zhcJJu1BYdE/SPFCdtw4AEz9g0RSVgLa+grviJPQAYGyf Oq1cX7WhBIoUj1x47V+l9Smar0Hc1nFgkimpJtUjFnk/YjdVviqLX4yS2PMbgps5agdY PrNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tT0M5N8f; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc20-20020a170907169400b006f39af9ad2esi11484074ejc.436.2022.05.21.08.13.47; Sat, 21 May 2022 08:14:27 -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=@kernel.org header.s=k20201202 header.b=tT0M5N8f; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237668AbiETVUO (ORCPT + 99 others); Fri, 20 May 2022 17:20:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236005AbiETVUN (ORCPT ); Fri, 20 May 2022 17:20:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27F4519C752 for ; Fri, 20 May 2022 14:20:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B683061D71 for ; Fri, 20 May 2022 21:20:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 237A7C34115; Fri, 20 May 2022 21:20:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653081612; bh=nt+vj4pxFn3V+Awukk8qgK5cwC/k2L2Oreo+pabLfZM=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=tT0M5N8f0KCuWtXRi02FHjBtFRrRdUPMzVQI9WXuT2G7mCFpLNKq1b/HZ2T/+2ObU HaRX8Uo0ibmBDdKp1ZGJ3TbgeYR/dKWwGQo1M9w2Cd0IwIe0vQSzQCyNDeWuZR8t7Q oKFmdV5hKWY6qCP4Cm5YZyZ55TvUYZNbs9ivf93XkIb94Uao6uZOq09V0giz04f+1a PqkDBVGNJv+iiVLhKhuIIJwsnnRWdWuTE5hY/ULQVAEtM05Rx1PEANsxeNLcfLHIOR D8UOwlssGJLj9yozroEMrRUWEwgeR7z7rFv71N8Vi20deqIjfszRjdZelGeBQeGxPV vjhuf+R1Hfylw== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 0192FF03937; Fri, 20 May 2022 21:20:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH BlueZ] gatt-server: Fix crash while disconnecting From: patchwork-bot+bluetooth@kernel.org Message-Id: <165308161200.31176.4427175768508209959.git-patchwork-notify@kernel.org> Date: Fri, 20 May 2022 21:20:12 +0000 References: <20220519214002.2525857-1-luiz.dentz@gmail.com> In-Reply-To: <20220519214002.2525857-1-luiz.dentz@gmail.com> To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Hello: This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz : On Thu, 19 May 2022 14:40:02 -0700 you wrote: > From: Luiz Augusto von Dentz > > If there is a pending notify multiple the code was not removing before > freeing the object causing the following crash: > > Invalid read of size 8 > at 0x4A3D10: notify_multiple (gatt-server.c:1703) > by 0x4D05F0: timeout_callback (timeout-glib.c:25) > by 0x4956900: ??? (in /usr/lib64/libglib-2.0.so.0.7000.5) > by 0x49560AE: g_main_context_dispatch > (in /usr/lib64/libglib-2.0.so.0.7000.5) > by 0x49AB307: ??? (in /usr/lib64/libglib-2.0.so.0.7000.5) > by 0x49557C2: g_main_loop_run > (in /usr/lib64/libglib-2.0.so.0.7000.5) > by 0x4D0A34: mainloop_run (mainloop-glib.c:66) > by 0x4D0F2B: mainloop_run_with_signal (mainloop-notify.c:188) > by 0x2B0CD1: main (main.c:1276) > Address 0x6ca35c8 is 136 bytes inside a block of size 144 free'd > at 0x48470E4: free (vg_replace_malloc.c:872) > by 0x415E73: gatt_server_cleanup (device.c:698) > by 0x415E73: attio_cleanup (device.c:715) > by 0x47745B: queue_foreach (queue.c:207) > by 0x490C54: disconnect_cb (att.c:701) > by 0x4CF4AF: watch_callback (io-glib.c:157) > by 0x49560AE: g_main_context_dispatch > (in /usr/lib64/libglib-2.0.so.0.7000.5) > by 0x49AB307: ??? (in /usr/lib64/libglib-2.0.so.0.7000.5) > by 0x49557C2: g_main_loop_run > (in /usr/lib64/libglib-2.0.so.0.7000.5) > by 0x4D0A34: mainloop_run (mainloop-glib.c:66) > by 0x4D0F2B: mainloop_run_with_signal (mainloop-notify.c:188) > by 0x2B0CD1: main (main.c:1276) > > [...] Here is the summary with links: - [BlueZ] gatt-server: Fix crash while disconnecting https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=f1069c4fe106 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html