]> git.baikalelectronics.ru Git - kernel.git/commit
af-unix: passcred support for sendpage
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Thu, 26 Nov 2015 11:08:18 +0000 (12:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Nov 2015 20:16:06 +0000 (15:16 -0500)
commitdf24c45b969addc9c784dac9b3a22fdd630af911
tree8aab488f73d4fe6c24788fef4c2615c4fe45e399
parent89db9fc6c45f9187d7d32292d71233a023edc62a
af-unix: passcred support for sendpage

sendpage did not care about credentials at all. This could lead to
situations in which because of fd passing between processes we could
append data to skbs with different scm data. It is illegal to splice those
skbs together. Instead we have to allocate a new skb and if requested
fill out the scm details.

Fixes: 979463d52d478 ("net: af_unix: implement stream sendpage support")
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c