Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1008999rwl; Sat, 25 Mar 2023 15:50:41 -0700 (PDT) X-Google-Smtp-Source: AKy350aN7Qsfpivu4JEMRdhZmVkVtGblgIUJOaQKktalU85We9jK+UXhooPQeEX8Mwavn9HJffOq X-Received: by 2002:a17:90b:1c02:b0:23d:1f95:de1c with SMTP id oc2-20020a17090b1c0200b0023d1f95de1cmr7635204pjb.28.1679784641307; Sat, 25 Mar 2023 15:50:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679784641; cv=none; d=google.com; s=arc-20160816; b=C+vGT/9aJ8tqurUK5JaWkVkS032gXad8VUVDFyUXIbxc3jBBXdv5aoDHmGtLNQ6s87 3V3LWHvM7l3Nt7T5onHdrdbrl8TtAu5vn2EU3wR89TqTue662lvmvuk/T/sZtdXw8CNT mmpg6v0BOl/qPYoI9Oe2Adsjmi/ovoYF/vRdIbkZUJtvOaIC0DExb7TqOpIIM8eWxfLR mZNu89Vk527fgfl5UpYgfR5gZeOrHdxAfHragPg1sBGZGjEue14wdLn+E6E+N1uwvcKA 37V/Kq61v5LFgHWSOqYVjMuOa5m1a5NmvSs86XfNmjzg/k+1gC4JawuqP9FGoq6KQWST uuAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :dkim-signature; bh=blzS4++pYQHNhtF7NyjyEqKRhpH86CYY7XtCWadbAsw=; b=l1H4ZE6LJf358rCCZEG2t+ZVDm2j4iLNdPKpnz8Bx15rqx/6alpwEnr+fp+SYwxWuT OsURcJ45E9tygurzNcXw9rBbBM7tRllBVJyGJILQsfDgvGvshswgM+ZmGkRw+xlguMLT bRziLkyToB3//4s6VJzXI2+UXQzhnR1l/TGGj/3o0va7eA2LsDZXPj74tcLhrHzDdMk0 lIlw+iFXOt3JhpesWb8+wdK7K5BI5k/nua/G7Ql8TWw+FPX/M2lAY+QxZD7lZ05yiai7 X7O7nBF0dWAY5AfBSvR8zV3RAQzzglNFqgvkyIc2vIE+vT3x+oJs8jVaiS7ztxv1t2Ys hz0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b="r/Nol64C"; 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 v10-20020a63610a000000b0051309268f3bsi8166698pgb.667.2023.03.25.15.50.29; Sat, 25 Mar 2023 15:50:41 -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="r/Nol64C"; 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 S231862AbjCYWPa (ORCPT + 99 others); Sat, 25 Mar 2023 18:15:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjCYWP2 (ORCPT ); Sat, 25 Mar 2023 18:15:28 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69A3DCDC1; Sat, 25 Mar 2023 15:15:27 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id C40E85FD02; Sun, 26 Mar 2023 01:15:25 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1679782525; bh=blzS4++pYQHNhtF7NyjyEqKRhpH86CYY7XtCWadbAsw=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type; b=r/Nol64Cw5hi1wTIoMUJklQnY+1478LXOuWhXWFTkVg956xDytgMpetXUX3n7keAP sVOGX4u35yO92jJKmCwDWaEgtmpDJiFCJTHNDE7lrkKyGsZFgo5I0KJZaNnkAmapFB ae1a5HaSA1PSGIq6vqIWMlbpholD/h02zQdC7aXXyA6DfplrJkEGW59utosRwaEhVG 5DjKII5VYukK+Fkthojd1iTK/oN1xaRjBncLWgTTHrHJihBfkslALsxCbrd+o2F2MH BJdWsU78rmK6J911pNtd9TI9n/4Ppoy9ZDN7hgVFi9cV/05yamhkSS3KgCq099cxu2 SuUGkUmjMVoFQ== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Sun, 26 Mar 2023 01:15:25 +0300 (MSK) Message-ID: <97f19214-ba04-c47e-7486-72e8aa16c690@sberdevices.ru> Date: Sun, 26 Mar 2023 01:12:09 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Content-Language: en-US To: Stefan Hajnoczi , Stefano Garzarella , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Bobby Eshleman CC: , , , , , , From: Arseniy Krasnov Subject: [RFC PATCH v1 0/2] return errors other than -ENOMEM to socket Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH01.sberdevices.ru (172.16.1.4) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) 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: 2023/03/25 20:38:00 #21009968 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Hello, this patchset removes behaviour, where error code returned from any transport was always switched to ENOMEM. This works in the same way as patch from Bobby Eshleman: commit c43170b7e157 ("vsock: return errors other than -ENOMEM to socket"), but for receive calls. vsock_test suite is also updated. Arseniy Krasnov (2): vsock: return errors other than -ENOMEM to socket vsock/test: update expected return values net/vmw_vsock/af_vsock.c | 4 ++-- tools/testing/vsock/vsock_test.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) -- 2.25.1