fix syzkaller splats reported by Christoph
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest1 of 4 patches 2 repliesIn review
- v31 of 2 patches 6 repliesSuperseded
- v21 patch 2 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 1 patch | 0 replies | Superseded |
1 of 4 patches is in this archive. The cover letter announces 4.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 2/4 | mptcp: protocol: fix panic on user pointer accessnet/ | +18 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [MPTCP] [PATCH net-next v4 0/4] fix syzkaller splats reported by Christoph
This fixes the syzkaller splats with reproducers that Christoph forwarded to the mailing list, including the one wrt. slab oob in syncookie mode.
First patch moves free of the cached extension pointer to the destroy callback to make sure no other call path can allocate a new one. Actually net-next should be fine in this regard (no msk work queue yet), but as Paolo pointed out it looks bogus when 3rd patch calls it with mptcp lock already released.
2nd patch fixes a crash with set/getsockopt interface and resolves a lockdep splat due to calls to rtnl_lock while already holding the msk lock.
I resolved both in the same patch because the fixes need to touch the same spot.
3rd patch fixes another lockdep splat, this time during mptcp_close but again related to rtnl_lock.
Last patch avoid OOB access when syncookies are used.
This should be resolved differently, as mptcp v1 can use 4th ack to recover state, but that will be more intrusive so this fix downgrades to TCP instead.
See patches for more detailed explanation.
include/linux/tcp.h | 2 -- net/ipv4/syncookies.c | 4 ++++ net/ipv4/tcp_input.c | 3 +++ net/ipv6/syncookies.c | 3 +++ net/mptcp/protocol.c | 48 ++++++++++++++++++++++++++++-------------------- net/mptcp/subflow.c | 5 ++++- 6 files changed, 42 insertions(+), 23 deletions(-)