[PATCH 6.18.y v2 0/7] Backport fixes for handshake

Wentao Guan <[email protected]>
Newsgroups org.kernel.vger.stable
Message-ID <[email protected]>
Backport the ("net/handshake: Close the submit-side sock_hold race") commit
and its depends commits, also add fixes to the depend commits.

changelog v2:
As Sasha point out, add ("file: ensure cleanup") and 
("net/handshake: Fix null-ptr-deref in handshake_complete()" fix the fault the
backport missed in v1 and rebase.

v1 Link:https://lore.kernel.org/stable/[email protected]/

Christian Brauner (3):
  file: add FD_{ADD,PREPARE}()
  file: ensure cleanup
  net/handshake: convert handshake_nl_accept_doit() to FD_PREPARE()

Chuck Lever (3):
  net/handshake: Take a long-lived file reference at submit
  net/handshake: hand off the pinned file reference to accept_doit
  net/handshake: Close the submit-side sock_hold race

Wang Liang (1):
  net/handshake: Fix null-ptr-deref in handshake_complete()

 include/linux/cleanup.h        |   7 ++
 include/linux/file.h           | 125 +++++++++++++++++++++++++++++++++
 net/handshake/handshake-test.c |   8 +++
 net/handshake/handshake.h      |   2 +
 net/handshake/netlink.c        |  46 +++++-------
 net/handshake/request.c        |  60 ++++++++++++----
 6 files changed, 207 insertions(+), 41 deletions(-)

-- 
2.30.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.