From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 3D47BC43381 for ; Mon, 18 Mar 2019 12:06:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0A05E20857 for ; Mon, 18 Mar 2019 12:06:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lo6t9S59" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727247AbfCRMGV (ORCPT ); Mon, 18 Mar 2019 08:06:21 -0400 Received: from mail-pf1-f180.google.com ([209.85.210.180]:44702 "EHLO mail-pf1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726504AbfCRMGU (ORCPT ); Mon, 18 Mar 2019 08:06:20 -0400 Received: by mail-pf1-f180.google.com with SMTP id a3so11100045pff.11; Mon, 18 Mar 2019 05:06:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=udbKRL2MbAkgszQ20tiH52TmY1Z69lpi/IbPb4nuw3k=; b=lo6t9S59VIXrHAXTtdHEXX4WADX7HB18dYe4Ykop79AYxkWRrd5218k/DJ0CNKvrJ8 k3bsZMvmxI4qLxoU5laqH0HW+OIPedOEBd4FUFTBf5eGXRUXmJocHCr0I54Qnu2kx+0B C6w1TP2cLmcCwHE4lKWJv0JVHMpvSCo61/U/K0oYHHPCN6fDv0E6kKX+pPHJNSuGFyPn qD4RcXihXMtWwQK3iAzFqpJ9fJTCLCgS5I+bWzpkJvBRT1WaRTJ32VhSfCXGOnaKeC6i twko01fPjwrRxK+5x/3gEXBylfBC9luzsg7e+PpQBfA1zJL7NX39qYO1zz7MruGB7ISy E3Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=udbKRL2MbAkgszQ20tiH52TmY1Z69lpi/IbPb4nuw3k=; b=sJD85wf0d4p83HJ7L74SOnUwkKNS/1xfpbv/jI8Wibqyjp2Vh926AveVw35o6ZFNIT v1CmKdCPckjvEZrXvonEg4x0ZdUJdIaNnuL487Z7AmtFOjLLAcTCjErJvflOOdPOk0Jt 9bmLGCTxs2h48CJaCUocvwcg70QLVxc8ezazXKU82Ywi/0Y36EBrFnQwJSLTwo2yTL7+ 1boul0ezeffTn9MCY1Jp4Gru5tRGAKvQ9O8hD7ZXpeTP4nL2uNHuzIseMbos6K2eeMDp jPKfOFIR183Nb9FLhb0ugMMiUtcyrMGtUJEAX+8C2UPfwwbg5hgIJonrbOVLqoz12NSj ePkg== X-Gm-Message-State: APjAAAUbx4RYIwS61JfhI4YrxjpT1zaNHVh9quzwmdjKxdJZMxHdxwOY nibmdUQgI19HFTtsHOe1XfNYlnoGxyY= X-Google-Smtp-Source: APXvYqyPBmIy2JhXIHbKnW9gKmbp5p0nXzvI+UnRsW3d7v+CSNn8Nmlhf63DvMtokAlygwWGOZlHpA== X-Received: by 2002:a62:70c9:: with SMTP id l192mr18906435pfc.207.1552910779683; Mon, 18 Mar 2019 05:06:19 -0700 (PDT) Received: from localhost ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id b8sm14754620pfi.129.2019.03.18.05.06.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Mar 2019 05:06:18 -0700 (PDT) From: Xin Long To: network dev , linux-sctp@vger.kernel.org Cc: davem@davemloft.net, Marcelo Ricardo Leitner , Neil Horman Subject: [PATCH net 00/13] sctp: fix ignoring asoc_id for tcp-style sockets on some setsockopts Date: Mon, 18 Mar 2019 20:05:58 +0800 Message-Id: X-Mailer: git-send-email 2.1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This is a patchset to fix ignoring asoc_id for tcp-style sockets on some setsockopts, introduced by SCTP_CURRENT_ASSOC of the patchset: [net-next,00/24] sctp: support SCTP_FUTURE/CURRENT/ALL_ASSOC (https://patchwork.ozlabs.org/cover/1031706/) As Marcelo suggested, we fix it on each setsockopt that is using SCTP_CURRENT_ASSOC one by one by adding the check: if (sctp_style(sk, TCP)) xxx.xxx_assoc_id = SCTP_FUTURE_ASSOC; so that assoc_id will be completely ingored for tcp-style socket on setsockopts, and works as SCTP_FUTURE_ASSOC. Marcelo Ricardo Leitner (1): sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_DEFAULT_SEND_PARAM sockopt Xin Long (12): sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_DELAYED_SACK sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_DEFAULT_SNDINFO sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_CONTEXT sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_MAX_BURST sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_AUTH_KEY sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_AUTH_ACTIVE_KEY sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_AUTH_DELETE_KEY sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_AUTH_DEACTIVATE_KEY sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_DEFAULT_PRINFO sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_ENABLE_STREAM_RESET sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_EVENT sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_STREAM_SCHEDULER sockopt net/sctp/socket.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) -- 2.1.0 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Long Date: Mon, 18 Mar 2019 12:05:58 +0000 Subject: [PATCH net 00/13] sctp: fix ignoring asoc_id for tcp-style sockets on some setsockopts Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: network dev , linux-sctp@vger.kernel.org Cc: davem@davemloft.net, Marcelo Ricardo Leitner , Neil Horman This is a patchset to fix ignoring asoc_id for tcp-style sockets on some setsockopts, introduced by SCTP_CURRENT_ASSOC of the patchset: [net-next,00/24] sctp: support SCTP_FUTURE/CURRENT/ALL_ASSOC (https://patchwork.ozlabs.org/cover/1031706/) As Marcelo suggested, we fix it on each setsockopt that is using SCTP_CURRENT_ASSOC one by one by adding the check: if (sctp_style(sk, TCP)) xxx.xxx_assoc_id = SCTP_FUTURE_ASSOC; so that assoc_id will be completely ingored for tcp-style socket on setsockopts, and works as SCTP_FUTURE_ASSOC. Marcelo Ricardo Leitner (1): sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_DEFAULT_SEND_PARAM sockopt Xin Long (12): sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_DELAYED_SACK sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_DEFAULT_SNDINFO sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_CONTEXT sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_MAX_BURST sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_AUTH_KEY sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_AUTH_ACTIVE_KEY sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_AUTH_DELETE_KEY sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_AUTH_DEACTIVATE_KEY sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_DEFAULT_PRINFO sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_ENABLE_STREAM_RESET sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_EVENT sockopt sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_STREAM_SCHEDULER sockopt net/sctp/socket.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) -- 2.1.0