Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1659497lqp; Mon, 15 Apr 2024 12:58:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzMWKFZVgo4zid4ny8z5BYEDjMYKihyol/lsXUJItHOPAEo5bKGeSrcgOevC2F+3p+GtjqjLG7nA4ez/bCbWbwCR4DgKy3EaRw9pGXnA== X-Google-Smtp-Source: AGHT+IEp9/KT8xsYAAVk66nefwS+NnB6OZUUnGTPFIFeEBRS2nFeuqeggTCA8P2qseS5Zxb4txyQ X-Received: by 2002:a17:90a:6f84:b0:2a3:ba0:d9f with SMTP id e4-20020a17090a6f8400b002a30ba00d9fmr8860247pjk.11.1713211118218; Mon, 15 Apr 2024 12:58:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713211118; cv=pass; d=google.com; s=arc-20160816; b=C+TrrQ/+/xQ+nN3JlOiK5p3ccY2RKq0f3hzEABkau8i290qzW34JZfupE/4Q4c2KzE 6jc99kP1O0G+B20MUhILwNpPDjz5v1bCzZkId2wheXBo3+PQzMY86ioCtCV2r2tm8/VK e58fWMneEq7LikQ+XUadjoYuEmoDOfJVepXO0G6GBcBjpmf/dJNeXxH7n3GVx0KQ+Sed D3GpV844gfbbJhEhEIffBQ1+P+TnfYOrufSd0k5NfzlvGtunovef6nkO8l4Lv3+Dihpn olLhf+m/gEYtrZXB02XQegoc9MLG58VUB1QeWFWauxgchJJEgTku/LNTxKwjyvPF4Joo IMmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=9lbef533VDftkGvcOH2kIJ7CpMSxfCWsdPv9zcgmMMY=; fh=v4Z3N2Htbr8NtGqMLkQjkIE/EbeUcf6lhEWEAm07n3g=; b=JFxmfJ09jSk/PsTHP3miHHkxTxZwjPUpmeGWDQoieFvbE3WYJ7u9DEQsW1yqbV4jmT YeFUdmhiTqrdeqBdj7c+borUQ/iP0oA38JuOqk9606dgZHxmTDIi+/sVbQuzhtZxhOGz 536Ln2hbZT+TBvuC/7P+0KsjAU3SBQfWUM230v9jPwJgPVx9adxPxKL9P1/ROFqGFeLP dzxjUwqzSHLWhnkhtes/tAXbXcsLpJZbw82SgzlppCWfrJBSroL9PA9MeiYgcvyJUKOX 63aVT6CYtuwrfbAyYjf72nTpivtPngc9OM9z3/6u3dFnJtksrJTnohUXmt5kIRoXJjsZ ju5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Juuv5K+T; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-3597-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3597-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h22-20020a17090adb9600b002a4aba1542asi10547761pjv.79.2024.04.15.12.58.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 12:58:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3597-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Juuv5K+T; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-3597-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3597-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 1857A285416 for ; Mon, 15 Apr 2024 19:56:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0303E156879; Mon, 15 Apr 2024 19:50:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Juuv5K+T" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5A937156256 for ; Mon, 15 Apr 2024 19:50:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713210627; cv=none; b=T9VLAB2RhssNNAfOddjIOh08jC4HqoIrDW9v7mfTdTyCJUpgdShTq2oqnDde/LFrOWbXB6x3iHbm8s6w0sTQKQkulJa07Izecaf8lp/T2kCyo5tWGvapwOnKKxsWz/Y2CLg15EPC5Cu69vO2kY/Yo+Lu2sjc0L6UyWDUYYgrmSM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713210627; c=relaxed/simple; bh=ZqhBKaDpU1AurItmL/clZv1xvGdMlNCyHDHK4YLrOjw=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=Oq7aMDClxLc/CQfD2riDNybAXaCUMGNBSsArF9NGes/vDk7Zurj/4MEbUFOpzKQi/lsoxpr7ji8XsZgSAV8LU3bz1gfSIdaw5/0/HR9mogvgTJtB1MdUcqvzMITRmDGGpqKlrZnIzY1htMKR85Y6zLHZHN39qMSytelROnvG+UY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Juuv5K+T; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id E9A9AC32781; Mon, 15 Apr 2024 19:50:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713210626; bh=ZqhBKaDpU1AurItmL/clZv1xvGdMlNCyHDHK4YLrOjw=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=Juuv5K+TNyMoHumKJQa1kHre3VfUI+oztjhb+JKM4H6O1Tyz1tYPTkfMq9LNEXTqF E/jwjN/gEwIgA982UzaW5+qD+TKLebbIrc8veFfgOGduFWZfb424mkXimsZzwwpQkR RuLir58o6DPS8MKYvdan3mwDe6gHxpKbpcdtFGKThTLPVAkDRkw72Q3iahBZmjpvZZ qH+k1twxs6j5r7M6Aby+aF15fHhVza60i21yxhBOXHTIP6wOsD5IFhFhb7dRfLtvQM XLdzFyp5ihPj7PkAIdTtwWo1sqEahwk77t+Nh7fsUQYK3dTe1G4CdvZpiRQD9ARwDe vzxzwGVUoSESA== 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 D7525C43153; Mon, 15 Apr 2024 19:50:26 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH BlueZ v1] shared/uhid: Fix crash if bt_uhid_destroy free replay structure From: patchwork-bot+bluetooth@kernel.org Message-Id: <171321062687.2386.3115334938013550773.git-patchwork-notify@kernel.org> Date: Mon, 15 Apr 2024 19:50:26 +0000 References: <20240415145444.857497-1-luiz.dentz@gmail.com> In-Reply-To: <20240415145444.857497-1-luiz.dentz@gmail.com> To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org Hello: This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz : On Mon, 15 Apr 2024 10:54:44 -0400 you wrote: > From: Luiz Augusto von Dentz > > Id replay structured has been allocated it shall be set back to NULL > after calling uhid_replay_free otherwise it may cause the following > crash: > > Invalid read of size 1 > at 0x1D8FC4: bt_uhid_record (uhid.c:116) > by 0x1D912C: uhid_read_handler (uhid.c:158) > by 0x201A64: watch_callback (io-glib.c:157) > by 0x48D4198: g_main_dispatch.lto_priv.0 (gmain.c:3344) > by 0x49333BE: UnknownInlinedFun (gmain.c:4152) > by 0x49333BE: g_main_context_iterate_unlocked.isra.0 (gmain.c:4217) > by 0x48D4DC6: g_main_loop_run (gmain.c:4419) > by 0x2020F4: mainloop_run (mainloop-glib.c:66) > by 0x20254B: mainloop_run_with_signal (mainloop-notify.c:188) > by 0x12D6D4: main (main.c:1456) > Address 0x53ae9c0 is 0 bytes inside a block of size 40 free'd > at 0x48468CF: free (vg_replace_malloc.c:985) > by 0x1D8E19: uhid_replay_free (uhid.c:68) > by 0x1D8E19: uhid_replay_free (uhid.c:59) > by 0x1D8E19: bt_uhid_destroy (uhid.c:509) > by 0x1591F5: uhid_disconnect (device.c:183) > > [...] Here is the summary with links: - [BlueZ,v1] shared/uhid: Fix crash if bt_uhid_destroy free replay structure https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=b94f1be656f3 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html