Skip to content

tcp: fix SELinux/Smack corruptions

Eric Dumazet netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tcp: add tcp_v4_fill_cb()/tcp_v4_restore_cb()net/ipv4/tcp_ipv4.c net/ipv6/tcp_ipv6.c+46 -230 replies
2/2tcp: use IPCB instead of TCP_SKB_CB in inet_exact_dif_match()include/net/tcp.h+1 -20 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchJames MorrisCasey Schaufler
1/2T-b T-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/2] tcp: fix SELinux/Smack corruptions

James Morris reported kernel stack corruption bug that we tracked back to commit 971f10eca186 ("tcp: better TCP_SKB_CB layout to reduce cache line misses")

First patch needs to be backported to kernels >= 3.18, while second patch needs to be backported to kernels >= 4.9, since this was the time when inet_exact_dif_match appeared.

David Ahern (1):
tcp: use IPCB instead of TCP_SKB_CB in inet_exact_dif_match()

Eric Dumazet (1):
tcp: add tcp_v4_fill_cb()/tcp_v4_restore_cb()

 include/net/tcp.h   |  3 +--
 net/ipv4/tcp_ipv4.c | 59 ++++++++++++++++++++++++++++++++++++-----------------
 net/ipv6/tcp_ipv6.c | 10 +++++----
 3 files changed, 47 insertions(+), 25 deletions(-)
Signature · 1 line
2.15.0.531.g2ccb3012c9-goog