Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2674164lqo; Mon, 20 May 2024 12:51:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIcR7u2FEx62hAIpl9szNQbVZyi34AA2R102wXrXZvHSUP4WYematQ9mNEf+ulYqZMhiZJWHa/apc4f/73DWXOz8KhLZPCSEJ9XRY4Og== X-Google-Smtp-Source: AGHT+IF6nJa3YlTbAnmaSUzxBYVMSg1g0dwM1C70vEXeQJV6INClOLi1Z6Y2jNIy83GlanfyLsll X-Received: by 2002:a17:90b:2389:b0:2b4:e4d2:e6f0 with SMTP id 98e67ed59e1d1-2b6ccfed0dcmr22939227a91.45.1716234664717; Mon, 20 May 2024 12:51:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716234664; cv=pass; d=google.com; s=arc-20160816; b=cgqHl/0/b6oSI7EhlzVZqpQW4C9L9u7GCLiblC86ulDiyiLjmHw3eM85aa/1c6kvh+ tMfkoazIiMcN1Li9D48dAxA98bfphHCs7TRZHro59R9bQzJoQJ+pngc3A2tdNGNodS25 s20U2iPaTpK5ONuCZ01ediS4lrqzAGNZy7QYCyR3I1IREgkIbzuiO2TcF5cKWFGXgugg 0ph3XoUjgjXOMowKcXWMYQkNUFvJXCrY0+MyD5rLSIwSZ3A675Dq0sVhP3lVA5HqT3x2 J38c+l7i/sqh+fTMuaZU4vk0HoIuGjQfOZAHqhTXgSimSkvGaoF0j61hknwgp8OYZJFu zQzg== 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=OkBPwvwSiWxspXqAL9IHOT7AEr+9QlR/sEdE9n1WYds=; fh=+8YejxJKijHaveXwCV8U7nCeqTFGN4BMAHpbsO4NZ+s=; b=UasY2rpJatxXOCtGq2+kQFme9Do2jaGzi+XPBF2/U5aXSvZBVkUjaBu8Z91rwLjmsP SydWoesEHXcjME5xFm8Cm800ZRBSs97o9uXDu04PKhT3oq7hp+p6TLgiQlhgtmux32Wd qhZ66QM3k5GRpJkNvg+yUHdR770eOx1+Ov/w0QZj57gbAVNikwZicy78qxhMHG3/uN5R PZZsiIM53LfI9KKJI7I46d81PfUPyLSVg9LfsRp+13skdz7dtoObgTP9pjbStfcqS10a 8Ff4GgdQsl0SI51fahGiQjgkPOxe/OQuSofpSrVCuosHnr8lW6dJbURHDUE+pSIfiypK +I+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aPXoQfBk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4821-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4821-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. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bd87558bfasi707253a91.40.2024.05.20.12.51.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 12:51:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4821-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aPXoQfBk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4821-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4821-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 2DB95280D0B for ; Mon, 20 May 2024 19:51:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE646139CE5; 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="aPXoQfBk" 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 217A013848E; 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=Ud1BLPKQNdrFSdNIaYY8k0L+jQSMnJmGG2GiT2kb48OVIk1X4UcX3Tk+3BWzp+QiYmLXLpg+WQUpLuAL3vs3gseMZMJkBPr7j+CcrvlthGtIo8C9YSMSd8CkrKstSr8igYpMXBeJjiOs50aO6/4vUsFou6vpPRs4raMx9S8602Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716234631; c=relaxed/simple; bh=gdwAVyaodZNRThupNqcD8h3RkYeQMv0OHJyhCnlecfg=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=feT7xyjXYxFeXQ7yFr5SerhrwgAOcwi4IeM8IHVo0CnFGu4YDXFxZ4P7MpJWq9k1X1jxdj22J9JqXSF/bBlwen9TxDm1shaNoy3phVbrMJ7PQHwLUWh/1bGEgwXPRXqceixofVEb703GDAihshN2IMspxqXjgOW1FMYBlfGlICA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aPXoQfBk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 9A8F9C32789; 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=gdwAVyaodZNRThupNqcD8h3RkYeQMv0OHJyhCnlecfg=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=aPXoQfBkUf+JZIXI+TwvmMi0B3TAdxFK6qWSiYfIOCIen6h0Pk0BHaE1rN7iPVFp8 7SJvYwjn+zIK62K5/EZwQz1JdUNNk13fEg7taCoy/2AJ4+iIC6QivuVROKnO8tjL4E Jcb5XUG8Wf9GN/BvHD/SE1cHGyprXott2tAF66yJicwuDp1ZPO8MVzw3mZ2Zua4PB1 a4Q50ekuN3n2CmZ7vaLNMGO7zPKcEpULZ3aLwNqZmDHygKHcl2J3//p/OtM33osDv0 9n3gi+hkiIlIhHfq+0Idf+GUlG1CkerPrRuO6ucnSZeA8T1Fj0+5DfMnPj6jLdffe5 R4aOEZNPLSDSQ== 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 84CF2CF21D8; 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 v3 0/2] tty: rfcomm: refactor rfcomm_get_dev_list() function From: patchwork-bot+bluetooth@kernel.org Message-Id: <171623463053.16907.1385568021076575698.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, jirislaby@kernel.org, gregkh@linuxfoundation.org, geert@linux-m68k.org, 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 Fri, 17 May 2024 19:21:48 +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 rfcomm_dev_list_req" and > this structure ends in a flexible array: > > struct rfcomm_dev_list_req { > [...] > struct rfcomm_dev_info dev_info[]; > }; > > [...] Here is the summary with links: - [v3,1/2] tty: rfcomm: prefer struct_size over open coded arithmetic https://git.kernel.org/bluetooth/bluetooth-next/c/b7a6ed60e5e6 - [v3,2/2] tty: rfcomm: prefer array indexing over pointer arithmetic https://git.kernel.org/bluetooth/bluetooth-next/c/7b13a745870c You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html