af_unix: Fix memleak and null-ptr-deref around MSG_OOB and GC.
Get series with b4
b4 am [email protected]Versions newest first
- v5 Latest2 patches 4 repliesIn review
Changes in v5 from the cover letter
* Add patch 1
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | af_unix: Fix garbage collection of embryos carrying OOB/SCM_RIGHTS.net/ | +11 | 4 replies | |
| 2/2 | af_unix: Update unix_sk(sk)->oob_skb under sk_receive_queue lock.net/ | +22 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Kuniyuki Iwashima |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 net 0/2] af_unix: Fix memleak and null-ptr-deref around MSG_OOB and GC.
The patch 1 fixes memleak caused by SCM_RIGHTS OOB skb sent to embryo socket, and the patch 2 fixes null-ptr-deref caused by OOB data.
Changes:
v5:
* Add patch 1
v4: https://lore.kernel.org/netdev/[email protected]/
* Free oob skb properly (Simon)
v3: https://lore.kernel.org/all/[email protected]/
* Fix lockdep false-positive by calling kfree_skb outside of recvq lock (Michal)
v2: https://lore.kernel.org/netdev/[email protected]/
* Add recvq locking everywhere we touch oob_skb (Paolo)
v1: https://lore.kernel.org/netdev/[email protected]/
Kuniyuki Iwashima (1):
af_unix: Update unix_sk(sk)->oob_skb under sk_receive_queue lock.
Michal Luczaj (1):
af_unix: Fix garbage collection of embryos carrying OOB/SCM_RIGHTS.
net/unix/af_unix.c | 28 ++++++++++++++++++++++------ net/unix/garbage.c | 21 +++++++++++---------- 2 files changed, 33 insertions(+), 16 deletions(-)
Signature · 1 line
2.30.2