Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1932608pxb; Fri, 25 Mar 2022 08:10:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxp7xqLUjtwHCRVePKZVwnewBIiYJgZqxQQK0IY9uDS35SF1RaOkEaX2gY5pa6iI9jkrLwO X-Received: by 2002:a17:903:11c9:b0:154:be2d:eb9 with SMTP id q9-20020a17090311c900b00154be2d0eb9mr11592731plh.91.1648221049261; Fri, 25 Mar 2022 08:10:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648221049; cv=none; d=google.com; s=arc-20160816; b=D15p7AuGTKPrWLzoRGmx6r9kcNJqRNOr8uzh+dT0LTgexMsJik9Ym557qUGPJD14aZ ZYRcFo4vWNoYaZKXBbCsRKP7lK52nN8p53aV+JkEFJNRt2YYX4hfRh5a0m0RjRfTtX/W PooDdR/29DMSw8JuNE5xh8opODVr0Jpd5CTOY7DaiydVYEimvLPTXp70rGRqx4prUdHb ZzXK0D3k1U5rGMvmwXLiHx3DsUYjR5Zp8zaIAyvAbN9A5UzgdwQ10mNRwMNku2pO2CZD XjhPmA8y3hmA06FPuI95buiYz0Nft4FS2eoET2mUo34E2pnApYpFy+O7J+ltJ6vRiy24 /3qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=yvypnLVjCrWy5spCJBsgRPFJn4U1BSlCRE6N0KMRzWU=; b=P07Jj7AOKRTp/GY14vN9KwMtmV7tiXJBjhhdJNC2kZMWlvU6Y3DKo5Qlo1yVsInD/M ZvS9NzE/8zd/UXop7j9zT4ESfuJczkjSx/lpbjKPwvExZymPgjeu+XmLx9HlmFJ51Z2x nxrZ1zE/LEIOPHelKLid6t5r9MwyM5QYIJvaCI2g07q1O/VuNQXPM9vFbJ59grh5JwWZ B5dBxyeMx//iOFPbSlObIPlvrwyHDMbn/S3XFF/r2PXfw8rjozqAPQbCWUpiRoMoJMCS G38koOvyl9jhiQuCCr1TpLsL/iTjOpm3Tx6RpwQPWFrQHKHtaVrRf789t9kX6XcI8yRt fFLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TLCkjNe8; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t11-20020a63f34b000000b003816043f09fsi2467113pgj.660.2022.03.25.08.10.32; Fri, 25 Mar 2022 08:10:49 -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=@gmail.com header.s=20210112 header.b=TLCkjNe8; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344683AbiCWUgs (ORCPT + 99 others); Wed, 23 Mar 2022 16:36:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235348AbiCWUgr (ORCPT ); Wed, 23 Mar 2022 16:36:47 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2F4A269; Wed, 23 Mar 2022 13:35:15 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id bu29so4730526lfb.0; Wed, 23 Mar 2022 13:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to; bh=yvypnLVjCrWy5spCJBsgRPFJn4U1BSlCRE6N0KMRzWU=; b=TLCkjNe8KY46ih5qA1GtmMXB57U6LTd+kdCmexWzAF2WwlSu8eaRgtGVcQ78s6Fxt6 v3FksA3mvB8IXngY9316GUf0riflRzNyWD1veXCWM2cC7Vn02ybuO77PPQ969CAXZrCv 7HCFbAahuIavcEEGqYQFW0cuBrQ0Rb1pI9yx0NXRvNLb8ZHShXFgwtM+LQi5O9Lo/NrC GcQ/l45g21PIH0SUSMRE2WQ+V5Jmalr/RudVM9cakXi/HUzxTCNwVaN/h+g/rcgn4KU7 lRy0nlzgOAlS31WeN6/eSk+qukjydsyO4D/XKLkVZBJA3jhXhMpM0KjjJoztSuka612j guBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to; bh=yvypnLVjCrWy5spCJBsgRPFJn4U1BSlCRE6N0KMRzWU=; b=bK+FxVho9ywvRsjK3JR5BcQf+wk0ab+O7oOskBVC0pcb+HrOv/OrFDHqoAtA0zFS4+ veWKXmbJpRvMlirO+FxotVxKWJelZK48MxBTPsztoK3iephnjclWfe4llvZliMt3w9tI U6wx54hNJ5wYJIUMvrrDhfglJO+d2Wh1iQRkEIbHWlqNJW9b/42g5uVwT9QG8jdDYlGi xdr02DSv39Y+E3Fksw7ivN+8akyusQh9FoFJLjOXuAKkwpip0cBgUARzMfo1mNuWX5rQ xb7YiOtGL3O/vXpLE+kR70gJn88eeXnTPSoebqcAN/RHGT0NOxHnVDpNwmVT+jiG7vXQ 4f7w== X-Gm-Message-State: AOAM531xR3YlZ6bJLSoA6HwyrUSHxKrhAQAW4QiwC+0sNIgqwpok56zh AEwsKzGvohThS2jfF64YwAg= X-Received: by 2002:a05:6512:2348:b0:44a:3134:7d52 with SMTP id p8-20020a056512234800b0044a31347d52mr1164464lfu.207.1648067713945; Wed, 23 Mar 2022 13:35:13 -0700 (PDT) Received: from [192.168.1.11] ([46.235.67.145]) by smtp.gmail.com with ESMTPSA id c22-20020ac24156000000b0044846901eabsm89637lfi.24.2022.03.23.13.35.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Mar 2022 13:35:13 -0700 (PDT) Message-ID: Date: Wed, 23 Mar 2022 23:35:11 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v3] can: mcba_usb: properly check endpoint type Content-Language: en-US To: yashi@spacecubics.com, wg@grandegger.com, mkl@pengutronix.de, davem@davemloft.net, kuba@kernel.org, mailhol.vincent@wanadoo.fr Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+3bc1dce0cc0052d60fde@syzkaller.appspotmail.com References: <20220313100903.10868-1-paskripkin@gmail.com> From: Pavel Skripkin In-Reply-To: <20220313100903.10868-1-paskripkin@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------wuJb3knIS3Bcn2sAl3RLDNAC" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------wuJb3knIS3Bcn2sAl3RLDNAC Content-Type: multipart/mixed; boundary="------------zMAyY88wsciZQYHPRhRowlKy"; protected-headers="v1" From: Pavel Skripkin To: yashi@spacecubics.com, wg@grandegger.com, mkl@pengutronix.de, davem@davemloft.net, kuba@kernel.org, mailhol.vincent@wanadoo.fr Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+3bc1dce0cc0052d60fde@syzkaller.appspotmail.com Message-ID: Subject: Re: [PATCH v3] can: mcba_usb: properly check endpoint type References: <20220313100903.10868-1-paskripkin@gmail.com> In-Reply-To: <20220313100903.10868-1-paskripkin@gmail.com> --------------zMAyY88wsciZQYHPRhRowlKy Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 T24gMy8xMy8yMiAxMzowOSwgUGF2ZWwgU2tyaXBraW4gd3JvdGU6DQo+IFN5emJvdCByZXBv cnRlZCB3YXJuaW5nIGluIHVzYl9zdWJtaXRfdXJiKCkgd2hpY2ggaXMgY2F1c2VkIGJ5IHdy b25nDQo+IGVuZHBvaW50IHR5cGUuIFdlIHNob3VsZCBjaGVjayB0aGF0IGluIGVuZHBvaW50 IGlzIGFjdHVhbGx5IHByZXNlbnQgdG8NCj4gcHJldmVudCB0aGlzIHdhcm5pbmcNCj4gDQo+ IEZvdW5kIHBpcGVzIGFyZSBub3cgc2F2ZWQgdG8gc3RydWN0IG1jYmFfcHJpdiBhbmQgY29k ZSB1c2VzIHRoZW0gZGlyZWN0bHkNCj4gaW5zdGVhZCBvZiBtYWtpbmcgcGlwZXMgaW4gcGxh Y2UuDQo+IA0KPiBGYWlsIGxvZzoNCj4gDQo+IHVzYiA1LTE6IEJPR1VTIHVyYiB4ZmVyLCBw aXBlIDMgIT0gdHlwZSAxDQo+IFdBUk5JTkc6IENQVTogMSBQSUQ6IDQ5IGF0IGRyaXZlcnMv dXNiL2NvcmUvdXJiLmM6NTAyIHVzYl9zdWJtaXRfdXJiKzB4ZWQyL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XIiKQ0KPiBTaWduZWQtb2ZmLWJ5OiBQYXZlbCBTa3JpcGtpbiA8cGFz a3JpcGtpbkBnbWFpbC5jb20+DQo+IFJldmlld2VkLWJ5OiBWaW5jZW50IE1haWxob2wgPG1h aWxob2wudmluY2VudEB3YW5hZG9vLmZyPg0KDQpnZW50bGUgcGluZy4gbG9va3MgbGlrZSB0 aGlzIHBhdGNoIGdvdCBzb21laG93IGxvc3QNCg0KDQoNCg0KV2l0aCByZWdhcmRzLA0KUGF2 ZWwgU2tyaXBraW4NCg== --------------zMAyY88wsciZQYHPRhRowlKy-- --------------wuJb3knIS3Bcn2sAl3RLDNAC Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEER3XL3TplLQE8Qi40bk1w61LbBA0FAmI7hH8FAwAAAAAACgkQbk1w61LbBA2A 7w//UDuGW6KEDfBJmFHbEIeC19pI4v2v1q8B6LWq0TEhvK9afaiDdereDT4g36kpAJQdq36oHr5m WychvLnb9QWMZaGR/vT4UyRIlC7G+LRcdJZP0aIhaLMr2QxQzlZ+WeGHVP5vlNUaByCeCjO7r79O f0OB9G3TyBA976RkG2kY1TxutGEH537aEC8+VllnBibB8ysKRfU1bNBd8kcoN0zmcvcXkVfvxYIW wtc4nLaKUzQmT3RbIiIxkZylK04e1XR0cAeGeZG0TC9sv+ASXlZLLb6wUsGMox4LvSMp9InuT9JX AqXjK3cTbSIOW5NMy27w14nFFVTX3eBX0X9Z/nquwEojo9IiRwZwrC5ZRb742X/nQsoFa/Ou9IQM VZRRgWWBMMh5e2NvmxcKiIHMgIoXHq+pOMaSH7rpxb1fNl1CihgrmixKdfxVVz8EAmclzf1csOVh QEBdl2Uvhyr5kYq/Yw0hoi6FHhCxL/FHZHp7KFaGpRBXH3akzq/6yS1OPn/Q8fhnJpiIOWobwR95 0dwI+3N8O+e9bYzcxfH34qZcFYrlCiuh/Xdnpwdu3i1Eq1XmYitrYJ6KcvHfpxgjBH+wmJB7I8/s HqDThr1md9FM6N27zRL9po77M3qit1+krSvYxlhnrz2KiDYBVn8Idj8n1jJUmPwHZG812gqFYR2k Ens= =RjdE -----END PGP SIGNATURE----- --------------wuJb3knIS3Bcn2sAl3RLDNAC--