[PATCH 6.18.y v3 0/8] 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 v3:
Add ("net/handshake: Drain pending requests at net namespace exit") as it also
a fix now has been applyed in v7.0.12 in same serie. Build tested in my config.

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 (4):
  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
  net/handshake: Drain pending requests at net namespace exit

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        |  56 +++++++--------
 net/handshake/request.c        |  65 +++++++++++++----
 6 files changed, 219 insertions(+), 44 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.