summaryrefslogtreecommitdiff
path: root/net/core/sock.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2020-06-09 16:21:38 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-21 13:14:55 +0200
commit9e6dc1fe251b007f31a48bc6d2ed6f6b0ea08ce8 (patch)
tree600f62f48678180919d92ae345c9049f0fc6cd3d /net/core/sock.c
parentbad7ce89b091c7b7efc25f09f3f59e6d450446d7 (diff)
pidfd: Add missing sock updates for pidfd_getfd()
commit 4969f8a073977123504609d7310b42a588297aa4 upstream. The sock counting (sock_update_netprioidx() and sock_update_classid()) was missing from pidfd's implementation of received fd installation. Add a call to the new __receive_sock() helper. Cc: Christian Brauner <christian.brauner@ubuntu.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Sargun Dhillon <sargun@sargun.me> Cc: Jakub Kicinski <kuba@kernel.org> Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org Fixes: 8649c322f75c ("pid: Implement pidfd_getfd syscall") Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/core/sock.c')
0 files changed, 0 insertions, 0 deletions