From mboxrd@z Thu Jan 1 00:00:00 1970 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 AD3AA63B6 for ; Mon, 18 Sep 2023 08:40:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 2D7D1C433C9; Mon, 18 Sep 2023 08:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695026423; bh=hkysuzXXpyTo4YJfpCQrt/6IvGPkJL0RINYK9UEJwXs=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=lMK3Sc/iweRWJUj2obq3/xmL1iFgykk25FPppE+TxUipCMTsPHWi7NXxBqu+2TLXn 0CiJkh5yduhs1pvHcrFF0v3ugBv/jQhh0yAvRQubKceU5eiHj+PfGiInZpyR9fTgss 1E1KoxMWwgMJrHo65rZ1L2BnY/6GA3Hg+83gVyWvu2Altus5kNr1blSwuTti4ct+sg uMa2fue8sfD1VNfGw5aAwu8QeQj7cXXRDgCnd9a2IVKddN9pSKyGtq+CKE34Zc/Q29 E8HFaMJnxXieRZDimG4Het9ko9dBcKXp7y6LW4EvAXWAIj26Hrpsp4YP3RFfVH1Qyo 7SEskvSZPDwTw== 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 1566FE11F41; Mon, 18 Sep 2023 08:40:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH][next] tls: Use size_add() in call to struct_size() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <169502642308.5792.6048998714250953891.git-patchwork-notify@kernel.org> Date: Mon, 18 Sep 2023 08:40:23 +0000 References: In-Reply-To: To: Gustavo A. R. Silva Cc: borisp@nvidia.com, john.fastabend@gmail.com, kuba@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Hello: This patch was applied to netdev/net-next.git (main) by David S. Miller : On Fri, 15 Sep 2023 13:12:38 -0600 you wrote: > If, for any reason, the open-coded arithmetic causes a wraparound, > the protection that `struct_size()` adds against potential integer > overflows is defeated. Fix this by hardening call to `struct_size()` > with `size_add()`. > > Fixes: b89fec54fd61 ("tls: rx: wrap decrypt params in a struct") > Signed-off-by: Gustavo A. R. Silva > > [...] Here is the summary with links: - [next] tls: Use size_add() in call to struct_size() https://git.kernel.org/netdev/net-next/c/a2713257ee2b You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html