Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp536654rwr; Wed, 3 May 2023 02:22:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4MeGGfZd5KLZxZbW4rcwijYqhUfQ/PmB0fVPBRUU68imqPAk/QJAuNa+D1+vSAs3HMhasU X-Received: by 2002:a05:6a20:2451:b0:f6:28de:89e1 with SMTP id t17-20020a056a20245100b000f628de89e1mr26044898pzc.33.1683105775845; Wed, 03 May 2023 02:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683105775; cv=none; d=google.com; s=arc-20160816; b=SdjBKFNgOW9GIkjbgMMr/G2Wa/5CCgmz/vuK5ABuaCinqSLEkPKxeSx4bA+hkjmT+s /k2hlK3ewuhB7c6HWS2uMFDy6jtKCK7vQpCh/8dDAhjRK7GfT6rzkxbVkaFzAZhpoeED GKol36Ei9HK+Xd5k+0Lo3mxd8HcgVOs3laP3f36fhIjSG4jehXXQKQogjXjI87T3cIL8 zUlSkQq2pJz8gg8mqih0/jYNAAyfUmbzSMePxW8uWV/lOc66LLVcwZ/+FAzB/4+Ie3tG oQ9hp8PFGpDzyZAUg5EHukKdz3IWYbHbwXgD2lDDSm/YXrRn84z9TJZU/EMdnKBVgg59 rjzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-filter; bh=vPxxxy7yV8868nj9fGRfvJrPnweJYozvSJXXZIINGZo=; b=YJW7dn7r05FoN/SN1XNFIaNgz+ihzNPhh3Dyf+a9M8SvzTToxpZMynxiYQmfZmp036 ER+Qw2HMG35dwgt7uklpzOwZw4DfF28WoW81XDwGRJ172Ir3VXs7iuxA+w96u3EovaMs ZoJrHfkIX9lW/aNaFSKF0bnlPfC8TYfAeYjm01JIrnjQEODAdLLpPYQWxCzyY84oj3CT RdNgMvmO+4r3ssuHjwp1pxr1OwarckYQHOgaRwCVnycQdAI32HH6U3IsaUHhgCpjwTwp cN6oClRWsAezfSW9EVCDTUKbkHtbojZ6/VyuAvz40GkysyV7W+DZZ+uiYs3Xoxrt8uUa pzEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infotecs.ru header.s=mx header.b=O0+p5usX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=infotecs.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u62-20020a627941000000b006434b94516csi503109pfc.378.2023.05.03.02.22.41; Wed, 03 May 2023 02:22:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infotecs.ru header.s=mx header.b=O0+p5usX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=infotecs.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229585AbjECJPx (ORCPT + 99 others); Wed, 3 May 2023 05:15:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjECJPu (ORCPT ); Wed, 3 May 2023 05:15:50 -0400 Received: from mx0.infotecs.ru (mx0.infotecs.ru [91.244.183.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ACC449F6; Wed, 3 May 2023 02:15:20 -0700 (PDT) Received: from mx0.infotecs-nt (localhost [127.0.0.1]) by mx0.infotecs.ru (Postfix) with ESMTP id 12512108AFAA; Wed, 3 May 2023 12:08:18 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx0.infotecs.ru 12512108AFAA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infotecs.ru; s=mx; t=1683104898; bh=vPxxxy7yV8868nj9fGRfvJrPnweJYozvSJXXZIINGZo=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=O0+p5usXS6dDvhwZJJh9p0mrY6Q80lT/FA3VYIZ37f6MaxjcmQMBshFwqsBI9ikjh inCvROSbr4fQGrnU17RK8j+vzP55ntmQwrgMBynBwNaaPx8fqprgjfWuE7NfyD39km cvIrRGeF0nAjjhFCU2juhf+qydl3gtI6d655pFqc= Received: from msk-exch-02.infotecs-nt (msk-exch-02.infotecs-nt [10.0.7.192]) by mx0.infotecs-nt (Postfix) with ESMTP id 095E830B3400; Wed, 3 May 2023 12:08:18 +0300 (MSK) From: Gavrilov Ilia To: Marcelo Ricardo Leitner , Kuniyuki Iwashima CC: "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-sctp@vger.kernel.org" , "lucien.xin@gmail.com" , "lvc-project@linuxtesting.org" , "netdev@vger.kernel.org" , "nhorman@tuxdriver.com" , "pabeni@redhat.com" , "simon.horman@corigine.com" Subject: Re: [PATCH net v2] sctp: fix a potential buffer overflow in sctp_sched_set_sched() Thread-Topic: [PATCH net v2] sctp: fix a potential buffer overflow in sctp_sched_set_sched() Thread-Index: AQHZfRha2tve32hJCkW0xqVNIsz0zK9HEG0AgAEAqYA= Date: Wed, 3 May 2023 09:08:17 +0000 Message-ID: <95bc9b12-9e1e-5054-c2df-ad9201d94ed5@infotecs.ru> References: <20230502130316.2680585-1-Ilia.Gavrilov@infotecs.ru> <20230502170516.39760-1-kuniyu@amazon.com> In-Reply-To: Accept-Language: ru-RU, en-US Content-Language: ru-RU X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.17.0.10] x-exclaimer-md-config: 208ac3cd-1ed4-4982-a353-bdefac89ac0a Content-Type: text/plain; charset="utf-8" Content-ID: <1C74EF4D003C8D4B85C674386ED3FD4C@infotecs.ru> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 177140 [May 03 2023] X-KLMS-AntiSpam-Version: 5.9.59.0 X-KLMS-AntiSpam-Envelope-From: Ilia.Gavrilov@infotecs.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Auth: dkim=none X-KLMS-AntiSpam-Info: LuaCore: 510 510 bc345371020d3ce827abc4c710f5f0ecf15eaf2e, {Tracking_msgid_8}, {Tracking_uf_ne_domains}, {Tracking_from_domain_doesnt_match_to}, 127.0.0.199:7.1.2;infotecs.ru:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1 X-MS-Exchange-Organization-SCL: -1 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, bases: 2023/05/03 08:22:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, bases: 2023/05/03 05:22:00 #21210527 X-KLMS-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCg0K0KEg0YPQstCw0LbQtdC90LjQtdC8LA0K0JjQu9GM0Y8g0JPQsNCy0YDQuNC70L7Qsg0K 0JLQtdC00YPRidC40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