Skip to content
Snippets Groups Projects
Select Git revision
  • 4969f8a073977123504609d7310b42a588297aa4
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

pid.c

  • Kees Cook's avatar
    4969f8a0
    pidfd: Add missing sock updates for pidfd_getfd() · 4969f8a0
    Kees Cook authored
    
    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: 8649c322 ("pid: Implement pidfd_getfd syscall")
    Signed-off-by: default avatarKees Cook <keescook@chromium.org>
    4969f8a0
    History
    pidfd: Add missing sock updates for pidfd_getfd()
    Kees Cook authored
    
    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: 8649c322 ("pid: Implement pidfd_getfd syscall")
    Signed-off-by: default avatarKees Cook <keescook@chromium.org>