Commit 17aee05
mptcp: dispose initial struct socket when its subflow is closed
Christoph Paasch reported following crash:
dst_release underflow
WARNING: CPU: 0 PID: 1319 at net/core/dst.c:175 dst_release+0xc1/0xd0 net/core/dst.c:175
CPU: 0 PID: 1319 Comm: syz-executor217 Not tainted 5.11.0-rc6af8e85128b4d0d24083c5cac646e891227052e0c #70
Call Trace:
rt_cache_route+0x12e/0x140 net/ipv4/route.c:1503
rt_set_nexthop.constprop.0+0x1fc/0x590 net/ipv4/route.c:1612
__mkroute_output net/ipv4/route.c:2484 [inline]
...
The worker leaves msk->subflow alone even when it
happened to close the subflow ssk associated with it.
Fixes: 866f26f ("mptcp: always graft subflow socket to parent")
Closes: multipath-tcp/mptcp_net-next#157
Reported-by: Christoph Paasch <cpaasch@apple.com>
Suggested-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent eaeef1c commit 17aee05
1 file changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2116 | 2116 | | |
2117 | 2117 | | |
2118 | 2118 | | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
2119 | 2127 | | |
2120 | 2128 | | |
2121 | 2129 | | |
| |||
2160 | 2168 | | |
2161 | 2169 | | |
2162 | 2170 | | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
2163 | 2174 | | |
2164 | 2175 | | |
2165 | 2176 | | |
| |||
2529 | 2540 | | |
2530 | 2541 | | |
2531 | 2542 | | |
2532 | | - | |
2533 | | - | |
2534 | | - | |
2535 | | - | |
2536 | | - | |
2537 | | - | |
2538 | 2543 | | |
2539 | 2544 | | |
2540 | 2545 | | |
| |||
2559 | 2564 | | |
2560 | 2565 | | |
2561 | 2566 | | |
| 2567 | + | |
2562 | 2568 | | |
2563 | 2569 | | |
2564 | 2570 | | |
| |||
0 commit comments