Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp21524lqh; Mon, 6 May 2024 10:00:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVzP+4yvJz0nQK47DMnXhcfJ0z5x37/jWBxBfgAzxys5CyEkkS++bxlrazVLRNulYdGNQv+QQqHA+HGwYVC8ryAuG716OtMRgPCaiorzA== X-Google-Smtp-Source: AGHT+IFYMRlhxvFIGu4nwe4UT4jdbtOOxgprLJLK14+fbpLaHelkfmN0jjO6vCdCoGNrmNXwBpbd X-Received: by 2002:aa7:c152:0:b0:572:e7ac:eeaf with SMTP id r18-20020aa7c152000000b00572e7aceeafmr4176162edp.19.1715014847718; Mon, 06 May 2024 10:00:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715014847; cv=pass; d=google.com; s=arc-20160816; b=NRp9OUypwETbPhi2Hj/S2ZfPpdkNoTvM9phlYHqiH+nzFwl3oolnlTIkSaJrUc5V+d strg+edqzEAXtNILZqpt5k0KfBINZiMZEma65Gqm5XXIC73jpNRDbTFAd2M6ZE67Eu85 ynVxqadw3BmI9McUMKTagSk+PGc6k43XITdavvb2OxGE8F+Df8EM++LLXEFACIr+XTxo h1FGkCHfcc4U2jZILG8X28OWgObY1WME/71CrpkuqB9HPYZ8qSGBN8JG6fEC67QlgwZR n+aOfShyGFlkrUXvCrgbEjch9npd+olgR+37k0MyxC9CIlt4jquJy35vTqwD+AKfDGNi gtEA== 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=VLJFWyGHSRijmbgrBfoSXB6NaAJTZfX1DlB1i1rShTs=; fh=DlWs+N0ZKEDrhbsKXw0Pt27mWEqppV4Ktvw3CxGgQ10=; b=PghoriMBF8kTZ75/stlIgsam/1b0Ussn3GDToLpoELdiqEjTJfwG/oEsbE7WNk2m3y a0UGz9emgIc1zAKAgfvk/sZnOnE5+wprtGSlEmb49c+nLHJaITWC3PuuYsjw5VKGtDyS YC29mBJuZEftTZsvh0wyy9VSn0d9R/yBChaav+oHIz1HQcHanwFpY/dxT7fEOqVNl3oT NXOwWsGV9kwaTeLTmoM1YKed3NLJKwL8zJzTRUOtexNmqcj0fukB+70tl2Z+dSSfv+7L cCN1wlI9ekhuVwfiky1tzGye2xtAZA1WzvgPAKz0Qm8YwKVNlaNM/y3CQkanNbw0EfbN oNjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tSYCK7eb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170209-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v4-20020aa7d9c4000000b005727c043f37si4836599eds.285.2024.05.06.10.00.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 10:00:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170209-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tSYCK7eb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170209-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170209-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 696001F21E70 for ; Mon, 6 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 76FAE15747F; Mon, 6 May 2024 17:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tSYCK7eb" 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 8C4CB156F43; Mon, 6 May 2024 17:00:28 +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=1715014828; cv=none; b=DdGbFT2xOUEK3Lts71hDLNcRzdZrl4adj6KJGYy4wviulksoWg+U/SrdL3nsQ+v/3NRCrs10hT5hK0Ub9nJigKeX2kqNy0eQ5OGDxKpTR2XX7Wsr+1v0q60utfzcSaYxnm7GmWLSNXTgYxftFjV9eRyMQJ1h6Fn5p/9F0paZw+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715014828; c=relaxed/simple; bh=wxLv1v6pq8o/ukY49jdtwQdze1lFJ4uf5fQ5aytYq4s=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=sIRQoxauAulmCsze6VvXJosMfnoVQa2fwmc3Y2B8OQ/S+BfDdTPJQ8BSRE3/tAftSPY/dY4OnNmhDBLft0dJB80z/slHjahgw0kTGUjZW41i7Wtv4yLOz7d3LhVL6hgz3wXPSsmCRwPWcDLlxY9coLUfCjKx4mE5QoUealO7Guo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tSYCK7eb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 3469EC4AF66; Mon, 6 May 2024 17:00:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715014828; bh=wxLv1v6pq8o/ukY49jdtwQdze1lFJ4uf5fQ5aytYq4s=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=tSYCK7ebxna1LNOXDBPgeEzxSAZz1Oj5yR8rKuNlGC0GDguWxxszqsyZoPUhIVlIW PaDjZTsPjpgTuph5MRb4EG1aI+euJtVc5TGVRFCYPanKLkpzsdw47dM8nd6TN6zX4p 9jn7J0oIuXnCPNDm0Fc2Lom0Y3jy39cfrYIuI9/qIsIDk3AXbMjrZX5DWDTMjLQS9h sZ63gJKAFNwSBq18rcOfWMGcyXHNyhlkBimfq+TalqSdALFOvJuC6hYKJqcyQkYhsp IkMrbPQj/7pfRzUVSNc6g4+1vAPJXkggr6wu3pEFJJXL6gfpe7njGQNzBCXwwGhcZ3 qsn7d1IQ7kJ+w== 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 2312FC43333; Mon, 6 May 2024 17:00:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v4] Bluetooth: L2CAP: Fix div-by-zero in l2cap_le_flowctl_init() From: patchwork-bot+bluetooth@kernel.org Message-Id: <171501482813.13196.146367594390490315.git-patchwork-notify@kernel.org> Date: Mon, 06 May 2024 17:00:28 +0000 References: <20240504192329.351126-1-iam@sung-woo.kim> In-Reply-To: <20240504192329.351126-1-iam@sung-woo.kim> To: Sungwoo Kim Cc: luiz.dentz@gmail.com, daveti@purdue.edu, benquike@gmail.com, marcel@holtmann.org, johan.hedberg@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz : On Sat, 4 May 2024 15:23:29 -0400 you wrote: > l2cap_le_flowctl_init() can cause both div-by-zero and an integer > overflow since hdev->le_mtu may not fall in the valid range. > > Move MTU from hci_dev to hci_conn to validate MTU and stop the connection > process earlier if MTU is invalid. > Also, add a missing validation in read_buffer_size() and make it return > an error value if the validation fails. > Now hci_conn_add() returns ERR_PTR() as it can fail due to the both a > kzalloc failure and invalid MTU value. > > [...] Here is the summary with links: - [v4] Bluetooth: L2CAP: Fix div-by-zero in l2cap_le_flowctl_init() https://git.kernel.org/bluetooth/bluetooth-next/c/93e31170f4d0 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html