UPSTREAM: dccp/tcp: do not inherit mc_list from parent syzkaller found a way to trigger double frees from ip_mc_drop_socket() It turns out that leave a copy of parent mc_list at accept() time, which is very bad. Very similar to commit 8b485ce69876 ("tcp: do not inherit fastopen_req from parent") Initial report from Pray3r, completed by Andrey one. Thanks a lot to them ! Signed-off-by: Eric Dumazet <edumazet@google.com> Reported-by: Pray3r <pray3r.z@gmail.com> Reported-by: Andrey Konovalov <andreyknvl@google.com> Tested-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Andrey Ulanov <andreyu@google.com> (cherry-picked from commit 657831ffc38e30092a2d5f03d385d710eb88b09a) BUG=b:38424110 TEST=kernel compiles Change-Id: Id686f45c820fe6e62ae75f57aa1b38d2ce95a869 Reviewed-on: https://chromium-review.googlesource.com/508871 Commit-Ready: Andrey Ulanov <andreyu@google.com> Tested-by: Andrey Ulanov <andreyu@google.com> Reviewed-by: Guenter Roeck <groeck@chromium.org> (cherry picked from commit 508c1764dcc51f1d3413b50091e01898c6544dce) Reviewed-on: https://chromium-review.googlesource.com/510585 Commit-Queue: Andrey Ulanov <andreyu@google.com> 1 file changed