Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1728034rwl; Thu, 30 Mar 2023 00:14:20 -0700 (PDT) X-Google-Smtp-Source: AKy350YVDQWr3U0ZWI9MkCKJcDtn1lFF3r2LxIhijnCi15yCHiaovqF59plGFZt9xoL2T/cXFuNe X-Received: by 2002:a17:906:15b:b0:92f:38a6:d087 with SMTP id 27-20020a170906015b00b0092f38a6d087mr1088316ejh.4.1680160460259; Thu, 30 Mar 2023 00:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680160460; cv=none; d=google.com; s=arc-20160816; b=yOE8nm9TnrFEv7/Epyxny9tB0UzgnExHXLLpjRRlkQ9fmqBgo9HJRc9OGODqjDhhzL UWQiSvM7qzGWtBA/6WheVNxAdzb7nQfj5x/xPZk8fE4w3HA49LfM+rolnKmaJLwxfFo6 KGhq3zeClYXPae32oHIOeWuo7H/FumppYhu/mTUQNVGAYI+AQVO5/4LDlAj8/EmFoSOD dyuKVuGd1XA4oXHob2IAgOXYAFGIyoPDWES+IL1ZCpQgrcYCsUsUn5vN0K2uZzy90cPC 9/85J6kI483vQk+XyRWw2bKH1TQbuqaWKufJ098cRrUGT4RTBq/aivo0bs6BtVFw37sp pjdw== 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 :in-reply-to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=Q1dSLV0WkKrQTTWvKTXPk9LEK5CXRc1NRkFMGJRvt8g=; b=KjEWR6n9dFV5alRpkbt7c4kpWBI6y8qT6n8w/s2FiUlXXxkfPwqxSYbqnQJPq9wDpc xvW+zrkAjvuhQ4s1sN57kcL6DEEWXKkdhQO3ngiNw+Fz8vVgpNXywbs7KmkG2hHykWi0 Hb7j+2MKAkVeEvQEsanKrbdykr8Ihtj5Gj5iCNsFPDI/Hj4UJgTyW9tP6YgHtBtJVSnQ 5aGsJfnInWh7sN/rbhk9fPg57vRcYQHzG+lJP3TKttaxdEsGo31M6EQMe6HOqbg4qIAI 9LXM8mU5U8s6ScSq5QDuu5RbaeawB2fruMnEL2CsJi0Z4g2O+Yghxtm5JYOpYpJy1Qqr d5fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=Z7s+Tc7f; 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 v20-20020a1709063bd400b0092f55812555si33772629ejf.586.2023.03.30.00.13.54; Thu, 30 Mar 2023 00:14:20 -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=Z7s+Tc7f; 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 S230458AbjC3HMd (ORCPT + 99 others); Thu, 30 Mar 2023 03:12:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230104AbjC3HMb (ORCPT ); Thu, 30 Mar 2023 03:12:31 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39E4C2686; Thu, 30 Mar 2023 00:12:26 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 9068F5FD25; Thu, 30 Mar 2023 10:12:24 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1680160344; bh=Q1dSLV0WkKrQTTWvKTXPk9LEK5CXRc1NRkFMGJRvt8g=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type; b=Z7s+Tc7fwTVfIdjgrreVorfBYwh8bKlswKxF76azvuzxau0r07Vyoa7hAXC4c0qRa 3fq1fw1Y1LV3y2MBZcXCzC2YxQJ0Tf3UxvfHffmKVV0rWYqyYzvLPG9QvNTxvLrUQf WTrNXnqtXm3FbUbgsOQaN1szRG0WaMf640RbKSGrm/MClOV6Fgb8nPHK2jsSsnU5fq 4FvkJ6CbKLTD77nBfz50JJbXWarp2UtNH9AbpDBKwIC/ZlJJO8jtDkZdifi9CCxCh/ E5v2+5O5E5lTj/8kd9mDPCa7xJiUccludrufUa6lhEUw3ddMCv+fmd9cDwxxVoTT7k 9p0PY9sHZ4Bag== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Thu, 30 Mar 2023 10:12:23 +0300 (MSK) Message-ID: <0441efbd-2138-23c8-bda1-e3e0f53c5415@sberdevices.ru> Date: Thu, 30 Mar 2023 10:08:55 +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 In-Reply-To: <60abc0da-0412-6e25-eeb0-8e32e3ec21e7@sberdevices.ru> To: Stefan Hajnoczi , Stefano Garzarella , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Bobby Eshleman , Bryan Tan , Vishnu Dasa CC: , , , , , , , From: Arseniy Krasnov Subject: [RFC PATCH v2 3/3] vsock/test: update expected return values 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/30 01:24:00 #21043458 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 This updates expected return values for invalid buffer test. Now such values are returned from transport, not from af_vsock.c. Signed-off-by: Arseniy Krasnov Reviewed-by: Stefano Garzarella --- tools/testing/vsock/vsock_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/vsock/vsock_test.c b/tools/testing/vsock/vsock_test.c index 3de10dbb50f5..a91d0ef963be 100644 --- a/tools/testing/vsock/vsock_test.c +++ b/tools/testing/vsock/vsock_test.c @@ -723,7 +723,7 @@ static void test_seqpacket_invalid_rec_buffer_server(const struct test_opts *opt exit(EXIT_FAILURE); } - if (errno != ENOMEM) { + if (errno != EFAULT) { perror("unexpected errno of 'broken_buf'"); exit(EXIT_FAILURE); } @@ -887,7 +887,7 @@ static void test_inv_buf_client(const struct test_opts *opts, bool stream) exit(EXIT_FAILURE); } - if (errno != ENOMEM) { + if (errno != EFAULT) { fprintf(stderr, "unexpected recv(2) errno %d\n", errno); exit(EXIT_FAILURE); } -- 2.25.1