Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp146313rwl; Thu, 30 Mar 2023 13:33:37 -0700 (PDT) X-Google-Smtp-Source: AKy350a3NWungbeOKfQ5ea40ov4ZoKRZam4uMwPDRoftTwPsLC1Wc+rbi7EfYOT9ZWf7uxPxFsT0 X-Received: by 2002:a17:906:190:b0:8eb:fb1a:6970 with SMTP id 16-20020a170906019000b008ebfb1a6970mr2359889ejb.1.1680208417254; Thu, 30 Mar 2023 13:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680208417; cv=none; d=google.com; s=arc-20160816; b=Dg9+e/4kMUFRXkeRQfuByBsSuTn/XAPZt3UeMwgwRNg7uMA8FO0OEfZESYVVCQGHfM KCsTs7d3+dzr7TJSShpj4Nm6AHQVTwZlKZpqIOLxsiZ3hnQovGq2iEHjmPpjWgmK/7eN LFrd2cUmb51QdvfAJpRtm9pmBUAc3ggPPQQ5pHvzjuS1g6uSpxGx4fKJ+hhb8ph1gDpI QbIJYc5WNfhSk/anh5zvr/nJnDb89emstRdD4m2lGF1EwHti/+DYnvSOinnaiC0leYTC bMhrozAuvv3unI5VRr26+poSq8EG7tsaGCIJcw4E4DIosEeF5TFu4zFazcjEhDRdZYBD E8VA== 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=ydygUQ7qFSSwWniSKT2XEUcutP9x3zzsYHbQ+bT7IAMufqoSSx0iIavCQrAPFTXFgm LaZEvxrsDKCmSCnijFWtURRk5vQI3TQcm0SEB+RkAuhzdl8LpRjJDKB+wKDcAo9/g/k6 FqVwfFZaSEe1PZU0uLiX6COk7FYwUwBaPVpJQgwRbr3dU5HGQnwbx3B6croEar8XFoYy ZICGXm447Tauqwnrgs4bGr+d0LOCrAHqo0lzvoB56/ud6HfdOx2HVNbr3uQyHxtzF62o kmTIy2Gi+BwWMKiaaZKCwIAjAfwx6uY5lbWP9M/3TKLwqCElln4aEzkD5NXQzf1Y5tJO bwzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b="kU4aK/E3"; 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 l6-20020a1709060e0600b0094495cc0dcfsi443039eji.70.2023.03.30.13.33.10; Thu, 30 Mar 2023 13:33:37 -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="kU4aK/E3"; 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 S229769AbjC3UTL (ORCPT + 99 others); Thu, 30 Mar 2023 16:19:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229762AbjC3UTK (ORCPT ); Thu, 30 Mar 2023 16:19:10 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AF36D52B; Thu, 30 Mar 2023 13:19:09 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id BDAC65FD0B; Thu, 30 Mar 2023 23:19:07 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1680207547; bh=Q1dSLV0WkKrQTTWvKTXPk9LEK5CXRc1NRkFMGJRvt8g=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type; b=kU4aK/E3vQu5t1Eebd5p3PWN/Bc3KDjVm0/N0WsUhRHUM4GVWGvnz3r4DWxe/xJJC bG3ZE6KGc/1rqUoroukAYe8bbhdnAlDeQb3+KdSyuEKBuPnO8jSHAKjMbf8QciP5uI 6vBE0sroOzGPYEOaCqgZGd0hy4HHYw+Ix21h6+g6LZn09SIrPkaD4sIoX2KcYJrYML RpllYuYSB14ofcFpZNbHQ/0Qh6wfk+yK1qPApgUewMSfxSc6tV6T52N5SDDhdp+UI4 LE2E4ccdcyvgrxVE0ofo7Y8F1ipMZtoaYze4sePePIwxquwXsl7k14rzl+haGn7YhU wCVglskf9OLMg== 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 23:19:07 +0300 (MSK) Message-ID: <58763a8f-8898-84a3-8bab-b11d004eb200@sberdevices.ru> Date: Thu, 30 Mar 2023 23:15:42 +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: 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 v3 4/4] 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 18:07:00 #21069213 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