Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1919453lqm; Fri, 3 May 2024 10:00:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlJQcJQ7NXgpoBB8xAy/XNCRdV+jnaE45fGpr0QNaTxj5j2CMz5rv83N2EvGrr0Lm2MWtFe9l+AW8DOGhqEtjKhcfiLvLzwVL4UaPYWQ== X-Google-Smtp-Source: AGHT+IHEbGiTT+jGJmJFb8Z5lPvkbS264gs8RVDlV9/9FKauYqaQSPRZfHerrmt86z/jMQ+P+MYA X-Received: by 2002:a05:620a:2a0b:b0:790:c80f:deff with SMTP id o11-20020a05620a2a0b00b00790c80fdeffmr4293116qkp.3.1714755648013; Fri, 03 May 2024 10:00:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714755648; cv=pass; d=google.com; s=arc-20160816; b=A+hGF36YInoaDtsjoQbupKGcS3RL18Bxdki+TDR+uohI3yPyMJ4+mm/kFOWXjxFqrP WUhloSyzCBDgnJLXdO7qmlvUc2H7ZyAJanHmotr04bQoYkHapjyDkOgGsXj5hJxrGls3 7b+oOrKmSbvik4HqkNOoC0QJKGOcd++lcbztXVOFmw2ie4WZFaKmNdgBLiI1ftVt75Va dIdTbaTYVmyDqDkP6OwSIuewTn5LBK7+troxChrF5o44Wz19YzYNhMIzgM0m2h7VAIUD z8HN0FyLaqpvqeUyHbGNFde7+eaaplbiXGCp6pGkWTgHcDzFAxHaPsn52NoLj/b619JY 5rOw== 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=03yVt1toKTrOhZeVv07HioWw92RxBSS5NdNy6RQpPLg=; fh=7QF9xwcEtq+pEXz52F+46Janjw7zGHVFiwySc/rqXFU=; b=O86n8nyAxsO4MVmbY8aBCO0hkdQCByTZFhWRS9OT3TTsRnNIY5t+Os0aU0mH7rTQBy UU0LW3uas26bmrPrsMKI6u6epsYGd/gfnIV1zX/prOPJ/yQeJHGG1AuCEx3/8DrKc8QL dHqcSVOpt2OVXsjLISZgZK8cALYR1H2cN8OZu1e/BG5f4HC/zdfnZ4Kao/OA1s5gDvTv S8oBeo06BJWVFUlOKTNoShw1uYmzMfHLSebb6v17qPcXFDw2LpFHtagO6/T9al70NIDM PwqtyWNfXrpAZ5Zh/Zv7YrJZvl+4HvMtN9En1HouOMKQiZdOW/hBOyqcYMC1Mvc6JKL5 17ag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D6+CkthK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4297-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4297-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z24-20020ae9c118000000b007925dc7384dsi3405805qki.721.2024.05.03.10.00.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 10:00:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4297-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D6+CkthK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4297-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4297-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B5AEC1C214CE for ; Fri, 3 May 2024 17:00:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E36661581EA; Fri, 3 May 2024 17:00:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="D6+CkthK" 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 3FF77157A61; Fri, 3 May 2024 17:00:29 +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=1714755630; cv=none; b=VKIR/5XP6d3p9sUMWO4CrabsQGP7+lx93L/F+zSqSOL1XpXZAzeCK5eRBuw22BwrbItgbJDJ+jFWr5NchyrYnlRqQz+Ku7zBvQBe4ogfn0rgB4Dea1LhMEOz+zeAwoHOft5JvWIuvUN5Sw0DnYF+lrKRlzGl2lf3IlpDse5gd10= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714755630; c=relaxed/simple; bh=EQYWPXi+543mEoAiMQYQLCRnTT9yvWvfjueTnMNj+xI=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=tTb9F3fg06jmnd9xmjRQj1/5h5yJXqRDOtniSqZOndlXzUWAjiMurXkv2bu7dsSMIBIMtQ6lMDtF6WZLuuvUAqnT4CAcDsGxIR0PjHpqj3709ydT6sGvUJhXv/sW6mhTNrYmLDZBu68RI8ktXJTCxh7A03OahSluKds6nHjTCNM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=D6+CkthK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id C889DC4AF14; Fri, 3 May 2024 17:00:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714755629; bh=EQYWPXi+543mEoAiMQYQLCRnTT9yvWvfjueTnMNj+xI=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=D6+CkthKHMi3991EYVfhiZ3Nb0kRKXF/IvfM6AXLietFo1FD9C3YMELKLJVDFs0Yy +vd7R7X4MYcExihL2kASx7v48S1Wrj6t94K9SFg1Frka+jWEG0L5R7lg5a8fuKCGX2 I5Ba8nTA8Y/rrsbajj+FQ/horZi2JaBDcPQ1MuFKpyc6WWpbDueW4twvdVm3H4yiPk m8vr8//8bR5YF1NwiLfgBM6F++GPk6Jmu71LpUylaAHaF8jXNLys+xIOFfZ0k+NWAw jz/E1yZhKspCU4LnORNqGCzGtjpRLqviqfd4jv5zjZjXALUq7AdekKVsb8HMQoGxAj quLj08HZw75mQ== 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 B5B6CC433A2; Fri, 3 May 2024 17:00:29 +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] Bluetooth: l2cap: fix null-ptr-deref in l2cap_chan_timeout From: patchwork-bot+bluetooth@kernel.org Message-Id: <171475562973.29614.6591900788209831933.git-patchwork-notify@kernel.org> Date: Fri, 03 May 2024 17:00:29 +0000 References: <20240502125736.28034-1-duoming@zju.edu.cn> In-Reply-To: <20240502125736.28034-1-duoming@zju.edu.cn> To: Duoming Zhou Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, luiz.dentz@gmail.com, johan.hedberg@gmail.com, marcel@holtmann.org Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz : On Thu, 2 May 2024 20:57:36 +0800 you wrote: > There is a race condition between l2cap_chan_timeout() and > l2cap_chan_del(). When we use l2cap_chan_del() to delete the > channel, the chan->conn will be set to null. But the conn could > be dereferenced again in the mutex_lock() of l2cap_chan_timeout(). > As a result the null pointer dereference bug will happen. The > KASAN report triggered by POC is shown below: > > [...] Here is the summary with links: - Bluetooth: l2cap: fix null-ptr-deref in l2cap_chan_timeout https://git.kernel.org/bluetooth/bluetooth-next/c/8192cea84c6c You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html