From patchwork Mon Apr 20 14:25:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Abeni X-Patchwork-Id: 220957 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59379C3815B for ; Mon, 20 Apr 2020 14:25:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 22AD7206DD for ; Mon, 20 Apr 2020 14:25:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="KUrskhru" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729808AbgDTOZr (ORCPT ); Mon, 20 Apr 2020 10:25:47 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:46818 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728371AbgDTOZr (ORCPT ); Mon, 20 Apr 2020 10:25:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587392746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=x5gp59HPcvgXwxTfOT0yy+v8M0H3CGZViuDMzRnFJGA=; b=KUrskhru4sru46CsO/Hk3NDxwoVcL27oq1XGg7ci2crMWillfeDklER954XToNoKk916hr 5SilwdndfUzEEd5nO+Z0mvNzuhHRSf9k9kCuH4BlrleVRiC+vr5GlN5ceMQXpTKBLHf29m AJkQ2VDZwLoTAAvLOj8s84pJZSliBxQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-441-NRt4cVoeNwiY0kFyVVo31Q-1; Mon, 20 Apr 2020 10:25:44 -0400 X-MC-Unique: NRt4cVoeNwiY0kFyVVo31Q-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BD2738713B2; Mon, 20 Apr 2020 14:25:34 +0000 (UTC) Received: from linux.fritz.box.com (ovpn-114-142.ams2.redhat.com [10.36.114.142]) by smtp.corp.redhat.com (Postfix) with ESMTP id 818E6289BB; Mon, 20 Apr 2020 14:25:31 +0000 (UTC) From: Paolo Abeni To: netdev@vger.kernel.org Cc: Mat Martineau , Matthieu Baerts , Jakub Kicinski , Christoph Paasch , Florian Westphal Subject: [PATCH net 0/3] mptcp: fix races on accept() Date: Mon, 20 Apr 2020 16:25:03 +0200 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This series includes some fixes for accept() races which may cause inconsistent MPTCP socket status and oops. Please see the individual patches for the technical details. Florian Westphal (1): mptcp: handle mptcp listener destruction via rcu Paolo Abeni (2): mptcp: avoid flipping mp_capable field in syn_recv_sock() mptcp: drop req socket remote_key* fields net/mptcp/protocol.c | 11 ++++++-- net/mptcp/protocol.h | 8 +++--- net/mptcp/subflow.c | 66 +++++++++++++++++++++++++++----------------- 3 files changed, 52 insertions(+), 33 deletions(-)