Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp1077317lqs; Wed, 6 Mar 2024 05:51:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV8mcd0sNFU1O/RM0EA4J/Wib4b1y4AZ4AXlgPf+Jn1gnyP+6q8u176PKy9gHSwQbVYOeHGsIPxPD/t6gWRJ/gJ4fyVOmRJfsDIrYd16A== X-Google-Smtp-Source: AGHT+IGTZ0CXOXenO8ReH+1GIvIEdGbrJV+UKwvWT2UnvDoD84IN6GOINgjZd84nFKExMUJpVUDL X-Received: by 2002:a05:6a00:2354:b0:6e5:599a:52b7 with SMTP id j20-20020a056a00235400b006e5599a52b7mr18706913pfj.28.1709733119245; Wed, 06 Mar 2024 05:51:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709733119; cv=pass; d=google.com; s=arc-20160816; b=F86TRzi3Bv6gMEKguVJmCJOJT6acVY2D14CnxM1MoP54zrG6Ps0X+NmkHxiQqWS/Ps mwul7dydDio3lbALTwq34YcoWrFFUbe7ArcZeLUVig6SryMhQ6UfxlCGUgWwMjsY4TX4 u/Dao+7v4Z741otA/IKpMPQMXJPM5OZmLRcsPYd0e8bvgIz7imNojqeUMlTJZ8NIXuWl EjYT4TQowzpleeqn4k/IY0uCCU2OmvLQxUbqkfXBfIjHp8eX7asrajCo8Od5tekalXE9 8YtqxAynYgPKQG+ZAA/r38mnAThIIBEmuboiPFG54PqCBAdAxn981dHdAN14EfdON2VQ Re2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :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=T4XufvKumvfjA/Mzi1v3U795CeS7EnqB34S1cub0C5Y=; fh=Mng8dTrM39FomeY8e6TuLVqErlo36G0636WJiUWpAEk=; b=Iq+ej4cdLLiviJfJX2TmuyRV8DBoudK9zDVTUDFoOTZGNR7U/UJEtisZh+ezFGufq1 pns0GM6cIXNJkXSL5pniibiWEJumJlCsX3mO5ZMUOTCmGfXB5b87j6Fw3wPJMV7PpCQ0 y3ONjCS9g0TmcZZIEukC77Dsn7ZoiP3D8t8mmmZd9N2O2iWpfnufBrf/NcykAHiGkJq8 U5vHVMd2y0orTrtITfO/ymRzNhbkhitZC01pZaLgZefzwNshs0k3854v94D212AxqfOG M95r2Kr4NEMpb5ohxS+egwgeKLogj5nPRKNhcjCTW+XhCUpERFHjGdxIch1RBkPqtvIr NY6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infotecs.ru header.s=mx header.b="awCPkog/"; arc=pass (i=1 spf=pass spfdomain=infotecs.ru dkim=pass dkdomain=infotecs.ru dmarc=pass fromdomain=infotecs.ru); spf=pass (google.com: domain of linux-kernel+bounces-93997-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93997-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=infotecs.ru Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t20-20020a63eb14000000b005ce030a6460si11419247pgh.71.2024.03.06.05.51.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 05:51:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93997-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infotecs.ru header.s=mx header.b="awCPkog/"; arc=pass (i=1 spf=pass spfdomain=infotecs.ru dkim=pass dkdomain=infotecs.ru dmarc=pass fromdomain=infotecs.ru); spf=pass (google.com: domain of linux-kernel+bounces-93997-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93997-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=infotecs.ru Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B0F61B21D67 for ; Wed, 6 Mar 2024 13:46:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC81F13174B; Wed, 6 Mar 2024 13:46:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=infotecs.ru header.i=@infotecs.ru header.b="awCPkog/" Received: from mx0.infotecs.ru (mx0.infotecs.ru [91.244.183.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4E3F13172F; Wed, 6 Mar 2024 13:46:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.244.183.115 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709732773; cv=none; b=ebeua02FF5r9c5SCDJWlC8XBJVQ7W11/A9Nk/6uCnd2CH7dmmdiUfCb+0YVYWA+1aguJoy9mAnBr8XztvogC3ArGLaKNYdPYW5hdDQAkExHo/SdBWuzrwNAQ5cRc66e2t+p0gIp/sp6lYU/8H6blFaiVK1O3HHi67noMuAfNJZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709732773; c=relaxed/simple; bh=T4XufvKumvfjA/Mzi1v3U795CeS7EnqB34S1cub0C5Y=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=n7FXG+CxzrSgHSgCMcVTmwQbzYQWDBXBX6XRLjBagtF9T8N2uX/yGjm1tRYFcZ2j/IvcXDy6yCjZOK/dWAx8CyUyDKDR+/1ir/0ty0ypJb369H88/4hKcSH0Q7iEUp1WAD+N0tdC9cHMTXjc6FCaBSBUsxepBqoihze2h0FC/Hs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=infotecs.ru; spf=pass smtp.mailfrom=infotecs.ru; dkim=pass (1024-bit key) header.d=infotecs.ru header.i=@infotecs.ru header.b=awCPkog/; arc=none smtp.client-ip=91.244.183.115 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=infotecs.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infotecs.ru Received: from mx0.infotecs-nt (localhost [127.0.0.1]) by mx0.infotecs.ru (Postfix) with ESMTP id BC12F148956B; Wed, 6 Mar 2024 16:46:07 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx0.infotecs.ru BC12F148956B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infotecs.ru; s=mx; t=1709732768; bh=T4XufvKumvfjA/Mzi1v3U795CeS7EnqB34S1cub0C5Y=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=awCPkog/UsHiG65vXSzgTrIA/kznIAK7fWHki/jJb70Pt+LxTB10vD4pr6x1OHOk2 sTTeWLA2YHTUreG68xGwUFwlvW1HJScFim8N48ACrVjMhazmkHIRJTodV0YN61DYSV 97Czb+g/AJi389fBnDEPs6Wwk/aHOkPSRPakwT/U= Received: from msk-exch-01.infotecs-nt (msk-exch-01.infotecs-nt [10.0.7.191]) by mx0.infotecs-nt (Postfix) with ESMTP id B9582303407D; Wed, 6 Mar 2024 16:46:07 +0300 (MSK) From: Gavrilov Ilia To: Tom Parkin CC: James Chapman , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "lvc-project@linuxtesting.org" Subject: Re: [PATCH net-next] l2tp: fix incorrect parameter validation in the pppol2tp_getsockopt() function Thread-Topic: [PATCH net-next] l2tp: fix incorrect parameter validation in the pppol2tp_getsockopt() function Thread-Index: AQHab8yjjDkKg7PSKU+NNTqnqRR+7g== Date: Wed, 6 Mar 2024 13:46:07 +0000 Message-ID: References: <20240306095449.1782369-1-Ilia.Gavrilov@infotecs.ru> In-Reply-To: Accept-Language: ru-RU, en-US Content-Language: ru-RU X-MS-Has-Attach: X-MS-TNEF-Correlator: x-exclaimer-md-config: 208ac3cd-1ed4-4982-a353-bdefac89ac0a Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KLMS-Rule-ID: 5 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Status: not scanned, disabled by settings X-KLMS-AntiSpam-Interceptor-Info: not scanned X-KLMS-AntiPhishing: Clean, bases: 2024/03/06 12:45:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, bases: 2024/03/06 11:20:00 #24013337 X-KLMS-AntiVirus-Status: Clean, skipped T24gMy82LzI0IDE2OjE0LCBUb20gUGFya2luIHdyb3RlOg0KPiBPbiAgV2VkLCBNYXIgMDYsIDIw MjQgYXQgMDk6NTg6MTAgKzAwMDAsIEdhdnJpbG92IElsaWEgd3JvdGU6DQo+PiBkaWZmIC0tZ2l0 IGEvbmV0L2wydHAvbDJ0cF9wcHAuYyBiL25ldC9sMnRwL2wydHBfcHBwLmMNCj4+IGluZGV4IGYw MTFhZjY2MDFjOS4uNjE0NmU0ZTY3YmJiIDEwMDY0NA0KPj4gLS0tIGEvbmV0L2wydHAvbDJ0cF9w cHAuYw0KPj4gKysrIGIvbmV0L2wydHAvbDJ0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