Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2674294lqo; Mon, 20 May 2024 12:51:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpbCUAz4GwivBA4TlaEnU1UmNJXD30GCwxrKufs/5/aVwO6FqChhMx0t9sF9rwf/SFZqEAhcngu9/PljrBVVyhCgnCDa7b5I3Dy2A83A== X-Google-Smtp-Source: AGHT+IHp68xlMHtNvepnGFy967jH2ljcie/MTN6JVwtXalbDUPIKGKVcDtzDlkkf3lzEtG4QDYzg X-Received: by 2002:a05:6a00:989:b0:6ec:fdcd:18eb with SMTP id d2e1a72fcca58-6f4e036b729mr33249938b3a.21.1716234681911; Mon, 20 May 2024 12:51:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716234681; cv=pass; d=google.com; s=arc-20160816; b=zsn/O7oTjJmeNMoD6PM/pvP7oN7XCJSmgqvqrvrfdJOPOYxZicaQ3QOfbQGUlY4g/0 ArBgK4g+7Vb1w0+rqx9VKEMH/JhSSCOAWXWdNC+Hq0OVq7/AFgOqJXoTSieoktai1ZTC YXdcPWPhNzetHsOmnG32ImcFKfuFTJenLRcCvH2yc18FvtcdLMorYkd72lkJJXjTmz2X fBg7j8TjrtSHMoBVIwU0ejjON0Iqv3gpPMpBMIxA0dKlA8DfKMMPCY6HgR4tGM4ukYmJ y6ZUY6iFYYV2wHdXlzcmDw/9mDBVQJFZ0vnBgHH+7Ta87df4DCwhnv3mzdxHgYwt9xaI inrw== 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=8KcRPc3SRy36lypFYZo85xsSFSlTQRYTv1n0ZC5XjBQ=; fh=e7OpB0YJB/jJ6oMnxWCFmDG1331dbIxQLJ0ELmy+vUY=; b=iAZ2bdFokOhiqtD/BF9sUDsg1ZJdOM2yWuWDJT39X9nTM9Ou6JBKkU8QcUJoBvJDXP 3CcKrn8F48n2OWWs1Hx8RnoIMLA6evsX86RqW6ipu/wD/ILAC0ZwpJmrfowEKpzw1Jq4 MlHIvVoaZ7eAVn/jw4Areoi/8/8BUqObmOM8S4+1l8gakoB33Swm2GQBZfTTHIaExgBy FZe8FCPd8N9cMQDkTZrwFfNsXiit8XlalZGlqFE8eSGqObj2S8eOhSEjc4OZKe/jd5LY uWgtUO60+9KNex1WZ38fvjAIZCbYcSsTH8Por5H7YwMtrnrT71poXYeBkZDI07XKGOF/ uthA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vc1Cmh1d; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2aee569si3524025b3a.181.2024.05.20.12.51.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 12:51:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vc1Cmh1d; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4820-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E0E00B222AB for ; Mon, 20 May 2024 19:51:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C929A139CE2; Mon, 20 May 2024 19:50:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Vc1Cmh1d" 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 217618C06; Mon, 20 May 2024 19:50:30 +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=1716234631; cv=none; b=c6o2sUxpMOn3AuJX2uQSnnKP0vrs9y3+Zh+CDP5XwOS13H4aqUxHZuv3aYGBLvay+VOHneg5PImAC0wWrmA1n2zmVTCEL0llAlL8FcdhXPkKM/2jPfew7JeycSFt20vXIJpfw37sw314aF/IWEr4kd8wy67fB5YRqV2LOCN+pkk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716234631; c=relaxed/simple; bh=EvgQOLJlhEDLuvEcXOFO1LKZforMGGSKQWSuu1CIxy8=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=ilmb7qgs43HmLa2/tvj7wX2fR3McdtjOOThNRHRLLM/bQu6mfa8NTPki4PtHzt5HIpdXgiJr3NU69UY0gawooxG9s30feUlPA8PiZQybD4TXgYeOnkGR46kzfymhbwhc47hk66yqkKwrV1/Kyu56g3bonSw4BYce6D4TGjrh+Yo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Vc1Cmh1d; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 965A9C4AF07; Mon, 20 May 2024 19:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716234630; bh=EvgQOLJlhEDLuvEcXOFO1LKZforMGGSKQWSuu1CIxy8=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=Vc1Cmh1dyaHUlTzuHmyzA8EkgAib/Qwfh1vj9sEYyuKgXfdenGeo53qKzsqUIJhwB xiuv7P5yL7bc1nK/eRCb9v7hJRSuQDwutVxpDBv+YxVtUk5lUKe3M2QHfRw2bgH6MW dI7+N7uBWenfbVxheOq7S1KDzA75UcN5okBT6qUUXEZ3n5e0btPpeLp5dsiQorCZEn gzDYkv2AKf4Dayzto/MUg1YwWmINCYZ5NqBIVTUzQYI/6x8NK88cSRcXOXMlxZsl7n BdJ99WZEp9fQ0OP26iGUjfMgLmv/CEsRf2ax/OCC6adGeF1pRmczmKZySrebdoktU7 J/+CnNY4DVz9Q== 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 79A39C54BB0; Mon, 20 May 2024 19:50:30 +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 v2 0/2] Bluetooth: hci_core: Refactor hci_get_dev_list() function From: patchwork-bot+bluetooth@kernel.org Message-Id: <171623463049.16907.5107608936857144260.git-patchwork-notify@kernel.org> Date: Mon, 20 May 2024 19:50:30 +0000 References: In-Reply-To: To: Erick Archer Cc: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, keescook@chromium.org, gustavoars@kernel.org, nathan@kernel.org, ndesaulniers@google.com, morbo@google.com, justinstitt@google.com, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, llvm@lists.linux.dev Hello: This series was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz : On Sat, 18 May 2024 10:30:37 +0200 you wrote: > This is an effort to get rid of all multiplications from allocation > functions in order to prevent integer overflows [1][2]. > > As the "dl" variable is a pointer to "struct hci_dev_list_req" and this > structure ends in a flexible array: > > struct hci_dev_list_req { > [...] > struct hci_dev_req dev_req[]; /* hci_dev_req structures */ > }; > > [...] Here is the summary with links: - [v2,1/2] Bluetooth: hci_core: Prefer struct_size over open coded arithmetic https://git.kernel.org/bluetooth/bluetooth-next/c/d2526ccaab74 - [v2,2/2] Bluetooth: hci_core: Prefer array indexing over pointer arithmetic https://git.kernel.org/bluetooth/bluetooth-next/c/68b1e55bdf24 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html