https://github.com/torvalds/linux
Revision 4ef1b2869447411ad3ef91ad7d4891a83c1a509a authored by Soheil Hassas Yeganeh on 18 March 2017, 21:03:00 UTC, committed by David S. Miller on 22 March 2017, 01:44:17 UTC
SOF_TIMESTAMPING_OPT_STATS can be enabled and disabled
while packets are collected on the error queue.
So, checking SOF_TIMESTAMPING_OPT_STATS in sk->sk_tsflags
is not enough to safely assume that the skb contains
OPT_STATS data.

Add a bit in sock_exterr_skb to indicate whether the
skb contains opt_stats data.

Fixes: 1c885808e456 ("tcp: SOF_TIMESTAMPING_OPT_STATS option for SO_TIMESTAMPING")
Reported-by: JongHwan Kim <zzoru007@gmail.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8605330
History
Tip revision: 4ef1b2869447411ad3ef91ad7d4891a83c1a509a authored by Soheil Hassas Yeganeh on 18 March 2017, 21:03:00 UTC
tcp: mark skbs with SCM_TIMESTAMPING_OPT_STATS
Tip revision: 4ef1b28
File Mode Size
.gitignore -rw-r--r-- 151 bytes
Kconfig -rw-r--r-- 7.5 KB
Makefile -rw-r--r-- 2.0 KB
gen_init_cpio.c -rw-r--r-- 12.7 KB
initramfs_data.S -rw-r--r-- 1.3 KB

back to top