Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6782151rdb; Tue, 2 Jan 2024 13:16:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHEjH0jDgvMleKmJL+1R/VEMIBGsS9TwffLUTC3f4AhmgzCiOInUogBhKGEHw9VRvjWP97O X-Received: by 2002:a05:622a:1f0e:b0:416:4cc5:2f51 with SMTP id ca14-20020a05622a1f0e00b004164cc52f51mr171181qtb.1.1704230173474; Tue, 02 Jan 2024 13:16:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704230173; cv=none; d=google.com; s=arc-20160816; b=o+6s72isg3Aoey1zqLRyXBu8uhbKo7vaZzY4z53+yrwVCklwaWJzt/NgrGwD556Nyh mOH2UiYr3S+e0u+Fa28A2Fq+WKXa2gM+U3Ax7WyM/F4MzQX/fxznMPa0ipN/qKHEZvlP SeVYdlvzoe4HZZbTWguiKYR26U5fRFIcK1F5eQrmihd9/TzzfXY8drWh6fQStSe6/z7p MS3s14uNd7e1lKJt3JwImqSbr5jcDZ61bkM/QhtVB08BmfxGHa5B5+MY81EJHTqm9gu7 nJ+AhkbKc9YBh7MzaqrMdEbRLK56u84gZsoZXlqYiPZaAq4FwH0c6vplEjdtW8jDmqIF d++w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:to:cc:subject:from:content-language :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:feedback-id:dkim-signature :dkim-signature; bh=/Z5C3JxfHNpoAjvvAcHhDmbyTXDu4B/UNHLYNTCyyOE=; fh=QdlRED97eHbCcU4wx9cmSWYIYWaKx8BXQlAxR1+NO5I=; b=s5Y8rH8Q2+rUuNj2al6TJ4/6HfbVG3v9n2EP9YtxdmDPRLLD8Z1B5fnrS+IFpo+flJ pcxXZYhGTACTBvAjGs+TfsMx1AnS+sP+YH01ZtKz4m5wo0hTrWzrCVZFswl9XiYIl0f6 7pXGTSzp09sAZFBzKsZuVftE08RhLiikUEqOgeJtg8RNDH+5H5FrGYTS03Y8wZOZXU71 CSJzIonM8BmXOZ5LttzdZ6EQmZiXr64K6l/Ki55d9Y6OhWLxashILVmgmecP+gNXxBqG JJM7cVNXrIuhwxvBEZn48HDLX5QLwvyrOx5MiMH+LaZUMI4TfwkNI1a6HErazLIoz+5n Vt7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@corelatus.se header.s=fm1 header.b=hDl49Nbd; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=faazUGM3; spf=pass (google.com: domain of linux-kernel+bounces-14850-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14850-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. [147.75.199.223]) by mx.google.com with ESMTPS id f13-20020a05622a104d00b0042836797bc3si169627qte.792.2024.01.02.13.16.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 13:16:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14850-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@corelatus.se header.s=fm1 header.b=hDl49Nbd; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=faazUGM3; spf=pass (google.com: domain of linux-kernel+bounces-14850-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14850-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 226981C22B95 for ; Tue, 2 Jan 2024 21:16:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6300E171AC; Tue, 2 Jan 2024 21:13:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=corelatus.se header.i=@corelatus.se header.b="hDl49Nbd"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="faazUGM3" X-Original-To: linux-kernel@vger.kernel.org Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 151E8168AF; Tue, 2 Jan 2024 21:13:54 +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.se Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id E4BEF5C04D0; Tue, 2 Jan 2024 16:13:53 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 02 Jan 2024 16:13:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corelatus.se; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm1; t=1704230033; x=1704316433; bh=/Z 5C3JxfHNpoAjvvAcHhDmbyTXDu4B/UNHLYNTCyyOE=; b=hDl49Nbd/OzY8EIQVu ONP1QvA/NC2ZCgHHRSQKI2cy4CdYQcYkvncWPOwsrOVbef9mnMaJ1AixNAwoVyEH m8FOkWH2axI/Zy5W/wHj+nuqTrM3O9MbRdxOEjRBzDkHN8pSFIc0Colo+wtQwTTJ Jd0c/uHinTSzdnn/mRxHvaaeQbRbVowIHupNe2wOzoIWXYcDKzgFK59K+t3VBQdP WXp/lquDmLEhf2ZtHgxIF+E6ugPk6mVt2yA8bsMv++v8JNBCDZ0h2xo3X1CL7Zxe OE50N7LCoPWJcKCsdK9bu2MhPsWlJxlgIY5ffcC9mcSVSd9B4QsFj4T3gfQByn7k xJqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type: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=1704230033; x=1704316433; bh=/Z5C3JxfHNpoA jvvAcHhDmbyTXDu4B/UNHLYNTCyyOE=; b=faazUGM3y1V24Od/hOTQgt+sO92Jj XiyFoVrt7zFfvyN8aYjaqxX29gZzGIo3XOoauCSYsJa2lh3Huu6eALjH6KtnIcGW i+ECVqw96mHXuuoZHbleSTUzUdiUe/1I/sRIEdfK1VQpqADQNLsNzAEVphIPSmwj whvrhDztR+VS+YA4npiFUT8xU+NB+zvajF2narq5WtuoPJIIFCAR++KZlEL/xzSJ xFPlS53QMMiieX4Agu6S8JVJ07pFoUSSsc+1OktHtaBiYZLDr6A1dS9DsPSp2USS Ek3ILgsdaTVmoQMUzsRBkJfthH6FpW8iTgBqTrfKewRCrZeKCOeD+TOvQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdegfedgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfhufevvfgtgfesthejre dttddvjeenucfhrhhomhepvfhhohhmrghsucfnrghnghgvuceothhhohhmrghssegtohhr vghlrghtuhhsrdhsvgeqnecuggftrfgrthhtvghrnhepfeeikeffueffiefggfehvdeuff dtffevgedvleelhffgjedvtdetkeegtddvveelnecuffhomhgrihhnpehkvghrnhgvlhdr ohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hthhhomhgrshestghorhgvlhgrthhushdrshgv X-ME-Proxy: Feedback-ID: ia69946ac:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 2 Jan 2024 16:13:51 -0500 (EST) Message-ID: Date: Tue, 2 Jan 2024 22:13:50 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Thomas Lange Subject: [PATCH net] net: Implement missing SO_TIMESTAMPING_NEW cmsg support Cc: Willem de Bruijn , jthinz@mailbox.tu-berlin.de, arnd@arndb.de, deepa.kernel@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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