Re: [PATCH] ipv4: tcp: unicast_sock should not land outside of TCP stack

2012-08-09 Thread David Miller
From: Eric Dumazet Date: Fri, 10 Aug 2012 01:56:06 +0200 > From: Eric Dumazet > > commit be9f4a44e7d41cee (ipv4: tcp: remove per net tcp_sock) added a > selinux regression, reported and bisected by John Stultz > > selinux_ip_postroute_compat() expect to find a valid sk->sk_security > pointer,

[PATCH] ipv4: tcp: unicast_sock should not land outside of TCP stack

2012-08-09 Thread Eric Dumazet
From: Eric Dumazet commit be9f4a44e7d41cee (ipv4: tcp: remove per net tcp_sock) added a selinux regression, reported and bisected by John Stultz selinux_ip_postroute_compat() expect to find a valid sk->sk_security pointer, but this field is NULL for unicast_sock It turns out that unicast_sock a