Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp90489rwb; Fri, 30 Sep 2022 18:01:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6bjUwIL8GeB8TMHyS8eztBA9xvr7uHMqdypPEZTvA5FV2g+HSxk1G05pEl0gjpgYAa6qMm X-Received: by 2002:a63:d357:0:b0:442:d6a7:4585 with SMTP id u23-20020a63d357000000b00442d6a74585mr3394652pgi.389.1664586061812; Fri, 30 Sep 2022 18:01:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664586061; cv=none; d=google.com; s=arc-20160816; b=YHdoFVVIpWcIBqjSDywz5ScUfdP+3SZi428ygt1P+n0QUc8aB4FXW+K637Lcc3FvRC +cTfGZkcL11NgbuFFyXeY+pMISuAib+EC2hniE8BMUdPlI4zcBaw/eYIb4q4556FmL+P ijrVLbGvrN/EzHG54w4qfRvsvCG432+E3jwc+LbJofvspuhsqiIW8EpoGE/kI/oESFvL pQTqb8FhikdDvjU9mZWfnFDjyZWvhocD6i01/1EygdspmTMdTjDJYKEYksYox1keV90u CvmIkRnDLSrRYupWMu/Anxj1ODRpGJROfGYWLmtjhNMXilfvl+9xAxBPy4+6A3G3kWJQ Ox5w== 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=eyMClh2vrMmy3l//urSaETeB171rtJFQWcJK7ZLoc84=; b=HyE09utTUgKTNO/uEEUisRszl08JQ7auGzbEZHXr2baJQHTFQyivfH2VDrD7p5pgHn qyKSyldj92+L7zLMGUXoS2HFK1Jw7m4IboeJmG1zdhKLoUqAR83BmTN53OzljPP0byBq C5La0A02EswdK7RDdom2gPq1tqtgsLWJy4CT/bzHZEF05CdgT9lUHEnnUz0+7zS/eqxb wHO5sh0JYnu/83ecJ1Wc79b8vq0DWHpu6N/cubpDu6yb6B/rkgGkM3yzrHEFQ0RoUHoG wZNbs1NPGA+sRVXdl36gPFdaocbdV6VUe4tsZHTrRxZCAlwkmn5DDeUc88W3ywzv0C7t fI1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fq2k4itS; 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 k129-20020a628487000000b0051873a68dd2si3882250pfd.252.2022.09.30.18.00.44; Fri, 30 Sep 2022 18:01:01 -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=fq2k4itS; 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 S232019AbiJAAkU (ORCPT + 99 others); Fri, 30 Sep 2022 20:40:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231743AbiJAAkS (ORCPT ); Fri, 30 Sep 2022 20:40:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA93983F19 for ; Fri, 30 Sep 2022 17:40:17 -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 ams.source.kernel.org (Postfix) with ESMTPS id 621C9B82ACC for ; Sat, 1 Oct 2022 00:40:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 0239BC433D6; Sat, 1 Oct 2022 00:40:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664584815; bh=Lp2qKvDX0odJm7yNHv+04Vvcp1zdjfliG3hNCwDyJ8g=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=fq2k4itSV8bVZ0zf3KSZrd3NuRYBVpbFiKHtFdYzR8JdGUqgH3w31Lmx7Bfrvz8fP UhF/+vfszwEAIcfbU4f3yEE5Wt2HAl7MiP7uEGTxkTyoTRLkvBXEonG597Rxl5p0xK yL3RxwFyxHefGIxXpXmDYgODAMyg0zdmcOk5HuajaI870xI5DzSZcCsiAENvr876t7 ZH53TnYmzYh7KgV54JnQt8oKl0X9ddQsNSjWs6RgF4Z1BdULI20iKnrR1B27lQj3o+ eKMYrkyk8Xj7KQrJ2VWs//xtV6iCjIgxbfaoTfUfZxUnqGBqrUkKZn6HAduGt2aHMM Q1SiJrww1F99w== 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 D7295E49FA5; Sat, 1 Oct 2022 00:40:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] Bluetooth: L2CAP: Fix user-after-free From: patchwork-bot+bluetooth@kernel.org Message-Id: <166458481487.9280.13450269965240397959.git-patchwork-notify@kernel.org> Date: Sat, 01 Oct 2022 00:40:14 +0000 References: <20220929203241.4140795-1-luiz.dentz@gmail.com> In-Reply-To: <20220929203241.4140795-1-luiz.dentz@gmail.com> To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org X-Spam-Status: No, score=-7.2 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 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/bluetooth-next.git (master) by Luiz Augusto von Dentz : On Thu, 29 Sep 2022 13:32:41 -0700 you wrote: > From: Luiz Augusto von Dentz > > This uses l2cap_chan_hold_unless_zero() after calling > __l2cap_get_chan_blah() to prevent the following trace: > > Bluetooth: l2cap_core.c:static void l2cap_chan_destroy(struct kref > *kref) > Bluetooth: chan 0000000023c4974d > Bluetooth: parent 00000000ae861c08 > ================================================================== > BUG: KASAN: use-after-free in __mutex_waiter_is_first > kernel/locking/mutex.c:191 [inline] > BUG: KASAN: use-after-free in __mutex_lock_common > kernel/locking/mutex.c:671 [inline] > BUG: KASAN: use-after-free in __mutex_lock+0x278/0x400 > kernel/locking/mutex.c:729 > Read of size 8 at addr ffff888006a49b08 by task kworker/u3:2/389 > > [...] Here is the summary with links: - Bluetooth: L2CAP: Fix user-after-free https://git.kernel.org/bluetooth/bluetooth-next/c/35fcbc4243aa You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html