]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
drop net-implement-missing-getsockopt-so_timestamping_new.patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Jan 2024 20:44:06 +0000 (21:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Jan 2024 20:44:06 +0000 (21:44 +0100)
From 5.4 and 5.10, it was in the wrong place.

queue-5.10/net-implement-missing-getsockopt-so_timestamping_new.patch [deleted file]
queue-5.10/series
queue-5.4/net-implement-missing-getsockopt-so_timestamping_new.patch [deleted file]
queue-5.4/series

diff --git a/queue-5.10/net-implement-missing-getsockopt-so_timestamping_new.patch b/queue-5.10/net-implement-missing-getsockopt-so_timestamping_new.patch
deleted file mode 100644 (file)
index 7202128..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-From c3d9ee6603aadfdabf7f95dadf4e80e595626b22 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Fri, 22 Dec 2023 00:19:01 +0100
-Subject: net: Implement missing getsockopt(SO_TIMESTAMPING_NEW)
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Jörn-Thorben Hinz <jthinz@mailbox.tu-berlin.de>
-
-[ Upstream commit 7f6ca95d16b96567ce4cf458a2790ff17fa620c3 ]
-
-Commit 9718475e6908 ("socket: Add SO_TIMESTAMPING_NEW") added the new
-socket option SO_TIMESTAMPING_NEW. Setting the option is handled in
-sk_setsockopt(), querying it was not handled in sk_getsockopt(), though.
-
-Following remarks on an earlier submission of this patch, keep the old
-behavior of getsockopt(SO_TIMESTAMPING_OLD) which returns the active
-flags even if they actually have been set through SO_TIMESTAMPING_NEW.
-
-The new getsockopt(SO_TIMESTAMPING_NEW) is stricter, returning flags
-only if they have been set through the same option.
-
-Fixes: 9718475e6908 ("socket: Add SO_TIMESTAMPING_NEW")
-Link: https://lore.kernel.org/lkml/20230703175048.151683-1-jthinz@mailbox.tu-berlin.de/
-Link: https://lore.kernel.org/netdev/0d7cddc9-03fa-43db-a579-14f3e822615b@app.fastmail.com/
-Signed-off-by: Jörn-Thorben Hinz <jthinz@mailbox.tu-berlin.de>
-Reviewed-by: Willem de Bruijn <willemb@google.com>
-Signed-off-by: David S. Miller <davem@davemloft.net>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- net/core/sock.c | 11 +++++++++--
- 1 file changed, 9 insertions(+), 2 deletions(-)
-
-diff --git a/net/core/sock.c b/net/core/sock.c
-index a069b5476df46..9c3bc24bfdd1f 100644
---- a/net/core/sock.c
-+++ b/net/core/sock.c
-@@ -1383,9 +1383,16 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
-               break;
-       case SO_LINGER:
-+      case SO_TIMESTAMPING_NEW:
-               lv              = sizeof(v.ling);
--              v.ling.l_onoff  = sock_flag(sk, SOCK_LINGER);
--              v.ling.l_linger = sk->sk_lingertime / HZ;
-+              /* For the later-added case SO_TIMESTAMPING_NEW: Be strict about only
-+               * returning the flags when they were set through the same option.
-+               * Don't change the beviour for the old case SO_TIMESTAMPING_OLD.
-+               */
-+              if (optname == SO_TIMESTAMPING_OLD || sock_flag(sk, SOCK_TSTAMP_NEW)) {
-+                      v.ling.l_onoff  = sock_flag(sk, SOCK_LINGER);
-+                      v.ling.l_linger = sk->sk_lingertime / HZ;
-+              }
-               break;
-       case SO_BSDCOMPAT:
--- 
-2.43.0
-
index 96a5cf435b4235457cd6e57da68cda377b639e38..b4d0a3e0e7401037040da13b409245d472d73d3d 100644 (file)
@@ -6,7 +6,6 @@ octeontx2-af-fix-marking-couple-of-structure-as-__pa.patch
 drm-i915-dp-fix-passing-the-correct-dpcd_rev-for-drm.patch
 i40e-fix-filter-input-checks-to-prevent-config-with-.patch
 net-sched-em_text-fix-possible-memory-leak-in-em_tex.patch
-net-implement-missing-getsockopt-so_timestamping_new.patch
 arm-sun9i-smp-fix-array-index-out-of-bounds-read-in-.patch
 sfc-fix-a-double-free-bug-in-efx_probe_filters.patch
 net-bcmgenet-fix-fcs-generation-for-fragmented-skbuf.patch
diff --git a/queue-5.4/net-implement-missing-getsockopt-so_timestamping_new.patch b/queue-5.4/net-implement-missing-getsockopt-so_timestamping_new.patch
deleted file mode 100644 (file)
index 8caf0f8..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-From 55f187e0dfd93dc016c60cef248642274ab0d255 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Fri, 22 Dec 2023 00:19:01 +0100
-Subject: net: Implement missing getsockopt(SO_TIMESTAMPING_NEW)
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Jörn-Thorben Hinz <jthinz@mailbox.tu-berlin.de>
-
-[ Upstream commit 7f6ca95d16b96567ce4cf458a2790ff17fa620c3 ]
-
-Commit 9718475e6908 ("socket: Add SO_TIMESTAMPING_NEW") added the new
-socket option SO_TIMESTAMPING_NEW. Setting the option is handled in
-sk_setsockopt(), querying it was not handled in sk_getsockopt(), though.
-
-Following remarks on an earlier submission of this patch, keep the old
-behavior of getsockopt(SO_TIMESTAMPING_OLD) which returns the active
-flags even if they actually have been set through SO_TIMESTAMPING_NEW.
-
-The new getsockopt(SO_TIMESTAMPING_NEW) is stricter, returning flags
-only if they have been set through the same option.
-
-Fixes: 9718475e6908 ("socket: Add SO_TIMESTAMPING_NEW")
-Link: https://lore.kernel.org/lkml/20230703175048.151683-1-jthinz@mailbox.tu-berlin.de/
-Link: https://lore.kernel.org/netdev/0d7cddc9-03fa-43db-a579-14f3e822615b@app.fastmail.com/
-Signed-off-by: Jörn-Thorben Hinz <jthinz@mailbox.tu-berlin.de>
-Reviewed-by: Willem de Bruijn <willemb@google.com>
-Signed-off-by: David S. Miller <davem@davemloft.net>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- net/core/sock.c | 11 +++++++++--
- 1 file changed, 9 insertions(+), 2 deletions(-)
-
-diff --git a/net/core/sock.c b/net/core/sock.c
-index 2c3c5df139345..a3ca522434a6e 100644
---- a/net/core/sock.c
-+++ b/net/core/sock.c
-@@ -1309,9 +1309,16 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
-               break;
-       case SO_LINGER:
-+      case SO_TIMESTAMPING_NEW:
-               lv              = sizeof(v.ling);
--              v.ling.l_onoff  = sock_flag(sk, SOCK_LINGER);
--              v.ling.l_linger = sk->sk_lingertime / HZ;
-+              /* For the later-added case SO_TIMESTAMPING_NEW: Be strict about only
-+               * returning the flags when they were set through the same option.
-+               * Don't change the beviour for the old case SO_TIMESTAMPING_OLD.
-+               */
-+              if (optname == SO_TIMESTAMPING_OLD || sock_flag(sk, SOCK_TSTAMP_NEW)) {
-+                      v.ling.l_onoff  = sock_flag(sk, SOCK_LINGER);
-+                      v.ling.l_linger = sk->sk_lingertime / HZ;
-+              }
-               break;
-       case SO_BSDCOMPAT:
--- 
-2.43.0
-
index 1662c66c73142cf1abb9294005bcc8b20bc43945..ed42dec3faf49b4a4bb1a8b08fa52d17461daae5 100644 (file)
@@ -1,7 +1,6 @@
 nfc-llcp_core-hold-a-ref-to-llcp_local-dev-when-hold.patch
 i40e-fix-filter-input-checks-to-prevent-config-with-.patch
 net-sched-em_text-fix-possible-memory-leak-in-em_tex.patch
-net-implement-missing-getsockopt-so_timestamping_new.patch
 can-raw-add-support-for-so_txtime-scm_txtime.patch
 can-raw-add-support-for-so_mark.patch
 net-timestamp-extend-sof_timestamping_opt_id-to-hw-t.patch