stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch "sctp: also copy sk_tsflags when copying the socket" has been added to the 4.1-stable tree
@ 2015-12-31  3:53 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2015-12-31  3:53 UTC (permalink / raw)
  To: marcelo.leitner, davem, gregkh, vyasevich; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    sctp: also copy sk_tsflags when copying the socket

to the 4.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     sctp-also-copy-sk_tsflags-when-copying-the-socket.patch
and it can be found in the queue-4.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From foo@baz Wed Dec 30 19:52:45 PST 2015
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Date: Fri, 4 Dec 2015 15:14:05 -0200
Subject: sctp: also copy sk_tsflags when copying the socket

From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>

[ Upstream commit 50a5ffb1ef535e3c6989711c51b5d61b543a3b45 ]

As we are keeping timestamps on when copying the socket, we also have to
copy sk_tsflags.

This is needed since b9f40e21ef42 ("net-timestamp: move timestamp flags
out of sk_flags").

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 net/sctp/socket.c |    1 +
 1 file changed, 1 insertion(+)

--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -7175,6 +7175,7 @@ void sctp_copy_sock(struct sock *newsk,
 	newsk->sk_type = sk->sk_type;
 	newsk->sk_bound_dev_if = sk->sk_bound_dev_if;
 	newsk->sk_flags = sk->sk_flags;
+	newsk->sk_tsflags = sk->sk_tsflags;
 	newsk->sk_no_check_tx = sk->sk_no_check_tx;
 	newsk->sk_no_check_rx = sk->sk_no_check_rx;
 	newsk->sk_reuse = sk->sk_reuse;


Patches currently in stable-queue which might be from marcelo.leitner@gmail.com are

queue-4.1/sctp-update-the-netstamp_needed-counter-when-copying-sockets.patch
queue-4.1/sctp-also-copy-sk_tsflags-when-copying-the-socket.patch
queue-4.1/sctp-use-the-same-clock-as-if-sock-source-timestamps-were-on.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-12-31  3:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-31  3:53 Patch "sctp: also copy sk_tsflags when copying the socket" has been added to the 4.1-stable tree gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).