Re: [PATCH net] udp: preserve head state for IP_CMSG_PASSSEC

2017-07-25 Thread David Miller
From: Paolo Abeni Date: Tue, 25 Jul 2017 17:57:47 +0200 > Paul Moore reported a SELinux/IP_PASSSEC regression > caused by missing skb->sp at recvmsg() time. We need to > preserve the skb head state to process the IP_CMSG_PASSSEC > cmsg. > > With this commit we avoid releasing the skb head state

[PATCH net] udp: preserve head state for IP_CMSG_PASSSEC

2017-07-25 Thread Paolo Abeni
Paul Moore reported a SELinux/IP_PASSSEC regression caused by missing skb->sp at recvmsg() time. We need to preserve the skb head state to process the IP_CMSG_PASSSEC cmsg. With this commit we avoid releasing the skb head state in the BH even if a secpath is attached to the current skb, and stores