Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4424267rwb; Tue, 16 Aug 2022 22:41:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR7+iYR5w1VYQEoSKi8ZbQSz5ZESrAiqLxaXM/5HhhYnmkBINH7xazlQ+IxyAb5150BK+huP X-Received: by 2002:a05:6402:2789:b0:440:44b6:849b with SMTP id b9-20020a056402278900b0044044b6849bmr21796157ede.387.1660714865725; Tue, 16 Aug 2022 22:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660714865; cv=none; d=google.com; s=arc-20160816; b=lRGNCcn8GrNOQS/MC2CzwPmvZIBDSCrDwUTFYiQvrXdOkQDWl9/wIZOg1Z4nRU/+G/ wmXS6csAvwO9QxVjRmBcOiloQzlJuvuXdKTSX9jct/D0m3GAjyLG0+Ik0Gz/U3aHOnQg 7wnKF9nL2cwLzd6kGuQzFaWlLkZq5mwi1i9M8BQM5IQd8/ktIVKyx4lJXTEgVFB2gWXX HT4/MZ20C6TAzp9i4xWSVU/tH6qTJ0QEAqbn7rApL858QRajROXOzJycIJUSRcoMhcqa NGN8Xr81Q0WPGeyA5XZURmO8eXboy2Y8gqj69F7OjGyvHgYrl/o2zFK/E4WWZGEeKBLA N1dA== 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; bh=E45LUo5dnBIoo1JgEmeJ3I8mH7kcX+2NFKB8RJnjTmI=; b=gBsQdMicV+Jn0zgneQcyobjiVnPKus0WgMgWtttToSEaWhYcc03Em8a3dcHiY8WmjY ZV0Z88JrNjYE7owWOsnVV1DKWjUen1o4c+fn9/y9kfNT0i0YgaOJzraZ/OJoKSfvR1Dj GfefNXXlPb7Ps3VeFd4skM370Dhkv7QHRU+ad/UeVvm+Sz64l/s5aqGlHyHUYFvTguQV J/nIM+cHML7aQhqriMnFb3pAe2uN15Sk0+vY7tXW+tVkZV7SEeFEBxxU7DscSVCwO5hw 9ZuG8pILCs+phK+LZLiawdiJMLNT9bzGDPkGRmNk55jOVmbbNJwxQbMQGLvsQzT3whK4 MRBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=HIiMwRjT; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x15-20020a05640226cf00b0043d88b558a9si12723076edd.442.2022.08.16.22.40.39; Tue, 16 Aug 2022 22:41:05 -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=@sberdevices.ru header.s=mail header.b=HIiMwRjT; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238287AbiHQF3C (ORCPT + 99 others); Wed, 17 Aug 2022 01:29:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231709AbiHQF3A (ORCPT ); Wed, 17 Aug 2022 01:29:00 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB54B4E62A; Tue, 16 Aug 2022 22:28:58 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id D1CD55FD08; Wed, 17 Aug 2022 08:28:56 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1660714136; bh=E45LUo5dnBIoo1JgEmeJ3I8mH7kcX+2NFKB8RJnjTmI=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=HIiMwRjTZJulm7QTAB2KCUgr/I+QW9JZH371Fv0r3aNy1ADNAa6gGcRH+Szp1SfRO I1vspcK2HS40x9nbJDNFdWEQqqrgumGXGesgA8LGtzrKuEgUsYOhkXuMOMhtHflgLG swMnBHgOQ+RAck2Hpvj55saliGuVXPJYipxlwyPwX0M3ugol3wqGG9sniPkDnKAfr3 1NmbVuI2xEvGIy2Ca2uNEdxHGd7J0IbfDdix1D9YnjuMxZfWoki4ARBWrMD8iQBSPT PvwLo1ftjqLWtX/nVTGe3xNi79NUIekPLSWjIsOV2p8DUfbSiIVhhJVNeizlJbWgSr PXucFNQwP3CRw== Received: from S-MS-EXCH02.sberdevices.ru (S-MS-EXCH02.sberdevices.ru [172.16.1.5]) by mail.sberdevices.ru (Postfix) with ESMTP; Wed, 17 Aug 2022 08:28:54 +0300 (MSK) From: Arseniy Krasnov To: Bobby Eshleman , Bobby Eshleman CC: "virtio-dev@lists.oasis-open.org" , "Bobby Eshleman" , Cong Wang , Jiang Wang , Stefan Hajnoczi , Stefano Garzarella , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "K. Y. Srinivasan" , Haiyang Zhang , "Stephen Hemminger" , Wei Liu , Dexuan Cui , "kvm@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" Subject: Re: [virtio-dev] Re: [PATCH 2/6] vsock: return errors other than -ENOMEM to socket Thread-Topic: [virtio-dev] Re: [PATCH 2/6] vsock: return errors other than -ENOMEM to socket Thread-Index: AQHYsY0HA9PuVtzJ6EGz2Q3NauAiZq2yXxWA Date: Wed, 17 Aug 2022 05:28:43 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US, ru-RU Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.1.12] Content-Type: text/plain; charset="utf-8" Content-ID: <6B57B3ABE02F19489494D8714B6D1A53@sberdevices.ru> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2022/08/17 01:22:00 #20132227 X-KSMG-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 T24gMTYuMDguMjAyMiAwNTozMCwgQm9iYnkgRXNobGVtYW4gd3JvdGU6DQo+IENDJ2luZyB2aXJ0 aW8tZGV2QGxpc3RzLm9hc2lzLW9wZW4ub3JnDQo+IA0KPiBPbiBNb24sIEF1ZyAxNSwgMjAyMiBh dCAxMDo1NjowNUFNIC0wNzAwLCBCb2JieSBFc2hsZW1hbiB3cm90ZToNCj4+IFRoaXMgY29tbWl0 IGFsbG93cyB2c29jayBpbXBsZW1lbnRhdGlvbnMgdG8gcmV0dXJuIGVycm9ycw0KPj4gdG8gdGhl IHNvY2tldC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