Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7590114rdb; Thu, 4 Jan 2024 00:58:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEzlvZswr95guZqS6py9yvm4f6wjGk5VsDzb6BacG/+TGOazvdsyu4+xCagd0ATQ00ScqSb X-Received: by 2002:a05:620a:e02:b0:781:604e:e9e8 with SMTP id y2-20020a05620a0e0200b00781604ee9e8mr305773qkm.81.1704358736539; Thu, 04 Jan 2024 00:58:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704358736; cv=none; d=google.com; s=arc-20160816; b=zrGZ8Y5lBUV+2z96Nv8DtAA+8lDG2YNauRggF7aQfNe6qroR9EBkrviBKxyXTbpwJr KJm3LNosQAaRPiqDM4nX9RvdO+UdTif8tLedGVKnEmFdkLibw+qp7LTIHv0U7pL6DtfS rJlPiBEy0r137bt+P3wq3Sw0kCDelpLENnfIKPhWwhtIo99zrpamFwHLMkMNJLZrkOQI xnV7+IBCWEnzJ9fYZJU0KqdfDAJxirFzFyharvWy39EZp+Z+eHXsvI4BFqmBn4B1c0dy AUlDYFDZZgqG69N+NLtettURhjYhfAMdR6N6k1EafZGqjv7f2gG5E0xS8pR1zbGlzkhW sWfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:feedback-id:dkim-signature:dkim-signature; bh=/Z5C3JxfHNpoAjvvAcHhDmbyTXDu4B/UNHLYNTCyyOE=; fh=SbBIYD/cvpXvYVaCGVHrpAjHSB124DP/Dl0jBP/3Exw=; b=wRTHdOC5HaQjor4XOPr8qQUV0EM8OLIVIQ9E6UfYTvk43RZ0JgPEQrStOfkP4Zs6Nr ZpRJQGCcITGcI4qfF/5HHgh/8niL6or9FICRkvsM88tfvw4cj1IwdvK2r1EY50/Gjayd +IZWAwkqU+2eUia1oJUQKkCUoehhJZOHQ+/i8fxFERjE8JoY8Wdbg3bR44BR3zIbofve ZCxl/0NWLtC2r3nl6V78dO5glKgpBnYBUB2dljtQex25E8jwGOOFkOe5YJmN0mb0rpTP 4T4ovwwSBqV1yYLGYVPX4VRdVMqXtdMPkDDuEYUGcMhgJNkGPRQ82677cD7UA+MnytqM aYAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@corelatus.se header.s=fm1 header.b=hfEuH+Ch; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="9bnB67Y/"; spf=pass (google.com: domain of linux-kernel+bounces-16408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=corelatus.se Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id vy9-20020a05620a490900b0077f081e30d0si29087676qkn.657.2024.01.04.00.58.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 00:58:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@corelatus.se header.s=fm1 header.b=hfEuH+Ch; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="9bnB67Y/"; spf=pass (google.com: domain of linux-kernel+bounces-16408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=corelatus.se 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4CC9E1C2392E for ; Thu, 4 Jan 2024 08:58:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 184C920320; Thu, 4 Jan 2024 08:58:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=corelatus.se header.i=@corelatus.se header.b="hfEuH+Ch"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="9bnB67Y/" X-Original-To: linux-kernel@vger.kernel.org Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (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 4C3EB18C31; Thu, 4 Jan 2024 08:58:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=corelatus.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=corelatus.com Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 5B9343200B8F; Thu, 4 Jan 2024 03:58:43 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 04 Jan 2024 03:58:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corelatus.se; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to; s=fm1; t=1704358722; x=1704445122; bh=/Z5C3JxfHNpoAjvvAcHhD mbyTXDu4B/UNHLYNTCyyOE=; b=hfEuH+ChLsjSk3N51fYhtm5AiDWaWOHk1jhKs apM1OTUIwllA0t8K1DLKWosXVCQqhABWW29iNdc5E2c8HxbeZOsYUMkM2adsnmHL etzHVzeE9aoUJ3z9zh5N2y/kvCgG70sFJQ5isZr1YOIQEJen9LDuAhF7pqs+Vaf1 YyV2kTjL3GRM7g54L68pQTVeyTgGLRLD73MhEP1IlrUYA8zWbJuZYgrk39HUecUT LHJmR93xqNzI4GhAWO0CVTBYCA43RLnpsWMUaQCGxALoqVEh+dCqHRZ9YMlW7YLc kbml8ee3Pwv3T29vUo5HlWXBCUCY4U8BwH5JAdzEZ6sb/G3MQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1704358722; x=1704445122; bh=/Z5C3JxfHNpoAjvvAcHhDmbyTXDu 4B/UNHLYNTCyyOE=; b=9bnB67Y/ea3yYp8QD6L1/UTUORth69DAuXyCvZo8Q9pn JUNxbWHqv2Z4HIL0kT0FzgHX/n15N+sayRtvOz7E1sfeD4UefR0GXYb0rIAbXeKI MoHyoM5IEDfnabehUgdGBTH0k4ycQFeiR/EqqwvqJyV4x5qxVwuErC3OGS2zesjF D/+xpk3ZZ7QtIvTFGR9oKn4neCs5Y1KJeLpT6Nltug9tPJCS3WwuQcHOj5L1Wy1h foNJvdodfziQQa9xX/kiVJvhu6vWXWGL8Na1oL7ukpnrznT+VfLjHdfqAmJY/DTe H6fnHncZaeeGagEAgQsXLBd7ndpT4mJRNnAaRh4J4A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdegiedguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgggfestdekre dtredttdenucfhrhhomhepvfhhohhmrghsucfnrghnghgvuceothhhohhmrghssegtohhr vghlrghtuhhsrdhsvgeqnecuggftrfgrthhtvghrnhepjefgffdvgeekieehheefheekud euvdelueeltdefjeekjeegueeugeelkeeijeeknecuffhomhgrihhnpehkvghrnhgvlhdr ohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hthhhomhgrshestghorhgvlhgrthhushdrtghomh X-ME-Proxy: Feedback-ID: ia69946ac:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 4 Jan 2024 03:58:42 -0500 (EST) Received: from thomas by k2.corelatus.se with local (Exim 4.96) (envelope-from ) id 1rLJYl-000Cnh-0e; Thu, 04 Jan 2024 09:58:39 +0100 From: Thomas Lange To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: willemdebruijn.kernel@gmail.com, jthinz@mailbox.tu-berlin.de, arnd@arndb.de, deepa.kernel@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Thomas Lange Subject: [PATCH RESEND net] net: Implement missing SO_TIMESTAMPING_NEW cmsg support Date: Thu, 4 Jan 2024 09:57:44 +0100 Message-Id: <20240104085744.49164-1-thomas@corelatus.se> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Commit 9718475e6908 ("socket: Add SO_TIMESTAMPING_NEW") added the new socket option SO_TIMESTAMPING_NEW. However, it was never implemented in __sock_cmsg_send thus breaking SO_TIMESTAMPING cmsg for platforms using SO_TIMESTAMPING_NEW. Fixes: 9718475e6908 ("socket: Add SO_TIMESTAMPING_NEW") Link: https://lore.kernel.org/netdev/6a7281bf-bc4a-4f75-bb88-7011908ae471@app.fastmail.com/ Signed-off-by: Thomas Lange --- net/core/sock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/core/sock.c b/net/core/sock.c index 51d52859e942..d02534c77413 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -2813,6 +2813,7 @@ int __sock_cmsg_send(struct sock *sk, struct cmsghdr *cmsg, sockc->mark = *(u32 *)CMSG_DATA(cmsg); break; case SO_TIMESTAMPING_OLD: + case SO_TIMESTAMPING_NEW: if (cmsg->cmsg_len != CMSG_LEN(sizeof(u32))) return -EINVAL; -- 2.39.2