Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7067901rdb; Wed, 3 Jan 2024 03:40:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFi9o3fwcCA6Kmco3hjXWk7k9Yq7OZDTJHIZUdp4bnEeCMwhRI5l5qSF6KrXfE0si6Yl8E+ X-Received: by 2002:aa7:982e:0:b0:6da:13e2:6920 with SMTP id q14-20020aa7982e000000b006da13e26920mr4552148pfl.67.1704282039638; Wed, 03 Jan 2024 03:40:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704282039; cv=none; d=google.com; s=arc-20160816; b=BR0LBZpHCf6DI2IozAWokaMEXej+w4XiB8Rs3jFmrJfgfuJMlTkKRi7/JT4eZ+6smU JM5ViJyZ7+pFrgCuzKEpWiZOzWLTOtbPt/+r59g7fp09XL1JX7kzIEhEP23j/W7tySJB +T2DZd0zBbeM70qFQRypAJ3p7oZgoOPqPSymzQ8MxiMxu4FhEdCWcouu+9SPB+0yc4oN wmY8dhm/qMQYUnpSS83XO73tSPvO4pFCUGzn2yZKdJUHTZoTAnlEVn/ua+qBfDM0GXoX /He1+k2ug/1VwQbyEIJiYW64WEnpJ8ieAlqddwDncsZkhR6+5b+++uaa8JITH86ADybF YtGQ== ARC-Message-Signature: i=1; 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=81VNhWrjZxnlec0QQcsKGLyrMdd9F8p+stOLjMCoevs=; fh=MmbZdZH2FPVRj3MelTO8tUeB3u6lt4Y7GO6YV9sR9og=; b=xG0oQP7mdAbxUP36qQBcyM94r0kDhMTcKbH95AEyeRbfcEJFGQMs3OiybqSQmzHesg i+ep7VI7dr7CwG9bSrdPbK8x38EoGVL3tJ0JJwYn0W+0UM/KaZDINvkcx5DvfLGsViVE lLwL3KlWtY/yieF0ADAGaOjAh/9MhRIdRTriOjCFppgiTnMdn+gU/22qixMiAkIZjvDz SXd4ShAzI9Ruj2JPpPBl3HU8JWg5OiAUJ/BVXR+b6rJ5BOBjskSkLohYwcEG7+tT78f7 iovSOMonlVbpL8PO3fuw155nTgVmjvS2ef0pr4u6PqeZkVuzJCUpBeVDpmgvl629wtF+ M6VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tdTg4XXh; spf=pass (google.com: domain of linux-kernel+bounces-15461-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15461-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 e18-20020a656bd2000000b005c69365abb9si22438429pgw.697.2024.01.03.03.40.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 03:40:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15461-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=tdTg4XXh; spf=pass (google.com: domain of linux-kernel+bounces-15461-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15461-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 9C714B22F47 for ; Wed, 3 Jan 2024 11:40:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8258318EA1; Wed, 3 Jan 2024 11:40:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tdTg4XXh" X-Original-To: linux-kernel@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 AC81C18E2D; Wed, 3 Jan 2024 11:40:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 2F0AEC433C9; Wed, 3 Jan 2024 11:40:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704282025; bh=zsibZlEo5bVVf4c/JcntcfAlVDV+oVQPpKDFkzd6BIk=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=tdTg4XXhgHkuKnzJ08B/b52XRXhHNkzcJ1nCtFfc8NmY0mcSIlZtoc1cVGuS9+NiF Bcw/F0JRZy6DH/SZ4TC4zVAZ00uxAcqGYvrWdNEluJvs1Of2gpUc2uk1PUNZeNciSW GcF4u4TSSd1lrTndNaxhWw7ukw1xC1oNvvLSXZCrOLcS9iw0uZ9u1MrJiSgB+82Ax8 SI4FhivRgv8HyR4b2MkmnFUaFyxyWH44+f/+Wjv6S4PN9yWTFYGfPOPcnchRIJEKVx v+X9Jjb/cH14Z8I1LlqlevbFuIqppjFNTlDu9+Dka+LqRM8iED7h2KH+h71RaRjcv/ pxXcvr/Q7ExeQ== 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 127EFC43168; Wed, 3 Jan 2024 11:40:25 +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] net: Save and restore msg_namelen in sock_sendmsg From: patchwork-bot+netdevbpf@kernel.org Message-Id: <170428202507.24279.722670497373581017.git-patchwork-notify@kernel.org> Date: Wed, 03 Jan 2024 11:40:25 +0000 References: <20231221131230.2025000-1-marc.dionne@auristor.com> In-Reply-To: <20231221131230.2025000-1-marc.dionne@auristor.com> To: Marc Dionne Cc: netdev@vger.kernel.org, jrife@google.com, kuba@kernel.org, pabeni@redhat.com, edumazet@google.com, davem@davemloft.net, willemb@google.com, horms@kernel.org, linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (main) by David S. Miller : On Thu, 21 Dec 2023 09:12:30 -0400 you wrote: > Commit 86a7e0b69bd5 ("net: prevent rewrite of msg_name in > sock_sendmsg()") made sock_sendmsg save the incoming msg_name pointer > and restore it before returning, to insulate the caller against > msg_name being changed by the called code. If the address length > was also changed however, we may return with an inconsistent structure > where the length doesn't match the address, and attempts to reuse it may > lead to lost packets. > > [...] Here is the summary with links: - net: Save and restore msg_namelen in sock_sendmsg https://git.kernel.org/netdev/net/c/01b2885d9415 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html