Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4115100rwl; Tue, 28 Mar 2023 02:51:46 -0700 (PDT) X-Google-Smtp-Source: AK7set8vZs/IkU+HQTdNMAJi6SmzII2d2+fc0ELGGh0pizIhBvmdmmE34IB0LTuFg33zOyYqT66T X-Received: by 2002:a05:6a20:bc97:b0:d6:c9e2:1795 with SMTP id fx23-20020a056a20bc9700b000d6c9e21795mr14558872pzb.27.1679997106074; Tue, 28 Mar 2023 02:51:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679997106; cv=none; d=google.com; s=arc-20160816; b=vzHMtrkcKGRGPbnVatVhOB0xwCkStBEttTJUxJGBxYhE9rFnMj5BPu8m3sWuz50flt wZPd6/uue+V15KUqMQqb8rnN2Gv/ndyJZZZb41VVjDkeOvphXza6zhpMCZW2gHl3JB6z tb2TNxdWkUYPClvcokOvYYGAZS6e2095qHJ0Aaw6RJGmCbDmrz6zd6XW6CvQxChYsHMB uO/wdv43hXimjYJ4xBHNPxN0COjqF5aXLx2hY0++jb7lkN4nDpCt+OH4Pu4vacQyu/OJ l1fn6gRypIfaoMoX6nDXmnOv3FpB6DdsqfKtDrDhG51M/GcqR9EGUA0hGzG1+ji1J8ET ALNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GyxpUUnFruYhLDW97U96aBL0RSI09u9J7yvwV5Q6QsQ=; b=dHFzVSg2jsvP1dj3dOadz7iKHf1J1MWFVOX2nX9V3mvhHhCKCC4EIsMYk3tDZqPuD1 XqV090rL4jJ2lZ7p2c/WcpjkiZzB2Fy2KqIg3x8V4zL18sLURwfhAiLTzyVPa4V1c1Bq dh1hi/3it14hU5vfBGHz9pJiFAJj6VJvYVEqs49GxNdV5dALobyPtRll10iWsdPE1Akp yUkbxM3+NOkTHpOg2OmOgYpi/lQ+0f7F+GVj8OY1ibtdiNeGfzrr0QUk3pmf3L8p6iw3 Ul4WurWbnHZu8aFf5ANgIKiCUky07KQGTESCaUuoIaymyOpGD/q/iCWRtKsVqMs6PnyO jwIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iqe5j9qU; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a636b09000000b0050beb80f377si28640478pgc.431.2023.03.28.02.51.14; Tue, 28 Mar 2023 02:51:46 -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=@redhat.com header.s=mimecast20190719 header.b=iqe5j9qU; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233017AbjC1Jpl (ORCPT + 99 others); Tue, 28 Mar 2023 05:45:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230250AbjC1JpY (ORCPT ); Tue, 28 Mar 2023 05:45:24 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A7316180 for ; Tue, 28 Mar 2023 02:44:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679996670; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GyxpUUnFruYhLDW97U96aBL0RSI09u9J7yvwV5Q6QsQ=; b=iqe5j9qUCnWbGqE+d1ov1worlyZrY/2ilgjtJfeMeAXNWB2sksgbSi9VrX7+LJGtxwzpoQ 2GLWucC3BF9OKabnXyTFBpe8WiO+XpXDL8sDEyN0V+YNUc3Arbzlx4qn9f98KejW7wQIfs mk1RJe4knto8/iMgasMAm/7XP7h8dHY= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-170-d0nAe_svODexzsPv5q261A-1; Tue, 28 Mar 2023 05:44:29 -0400 X-MC-Unique: d0nAe_svODexzsPv5q261A-1 Received: by mail-qk1-f199.google.com with SMTP id 195-20020a3705cc000000b00746a3ab9426so5343017qkf.20 for ; Tue, 28 Mar 2023 02:44:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679996669; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GyxpUUnFruYhLDW97U96aBL0RSI09u9J7yvwV5Q6QsQ=; b=cIdcCaq8mFiZIAHCC33707/FOQBMSG+XLVJNjO7aVhTNy7dTc3YTJvkNFa7UzMmW/Y LYWcpmzImxYT8idTSfNfdPqqwB0pVKaFSZRB9CztFxwG/MqpLbbI0wwh6IWVWz+L+aEJ IbGWbm4Xnit79Pvx6nDadia5IE6orEi7S7uaLuCekLl44DmhYRt0gASkttUxMJIrsdxM aHTo5+YgXbhg/cshdIUJ91R1T/E3lpLLcFIjHhnad8vthngu5SouPOJvoFf6hXWo8zeS /BoCXhEtSuwPnTlB5QjKocyNstUkqruqkvNYBCY0Llnf0HVwjRjSgw1vr3etZ+DCnTZN Se+g== X-Gm-Message-State: AO0yUKWhIad94yBRGb50j9I2dUdaa1RiFy60cp9gh8ODWW0LXBy6ggEg MXad+mT4BtAmiOBYo+Jwmbwpz2M3mmxA7BbQ6rRM9suTXGA0PHBGt+hssDJOICz3C43r8yrDjwk Yk+0l6QUrp602TiMdZ3I1l0pq X-Received: by 2002:a05:622a:13cc:b0:3e3:89a5:192f with SMTP id p12-20020a05622a13cc00b003e389a5192fmr22427362qtk.61.1679996669193; Tue, 28 Mar 2023 02:44:29 -0700 (PDT) X-Received: by 2002:a05:622a:13cc:b0:3e3:89a5:192f with SMTP id p12-20020a05622a13cc00b003e389a5192fmr22427348qtk.61.1679996668960; Tue, 28 Mar 2023 02:44:28 -0700 (PDT) Received: from sgarzare-redhat (host-82-53-134-98.retail.telecomitalia.it. [82.53.134.98]) by smtp.gmail.com with ESMTPSA id 11-20020a05620a040b00b007468733cd1fsm6632277qkp.58.2023.03.28.02.44.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:44:28 -0700 (PDT) Date: Tue, 28 Mar 2023 11:44:23 +0200 From: Stefano Garzarella To: Arseniy Krasnov Cc: Stefan Hajnoczi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Bobby Eshleman , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@sberdevices.ru, oxffffaa@gmail.com Subject: Re: [RFC PATCH v1 2/2] vsock/test: update expected return values Message-ID: References: <97f19214-ba04-c47e-7486-72e8aa16c690@sberdevices.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 On Sun, Mar 26, 2023 at 01:14:01AM +0300, Arseniy Krasnov wrote: >This updates expected return values for invalid buffer test. Now such >values are returned from transport, not from af_vsock.c. Since only virtio transport supports it for now, it's okay. In the future we should make sure that we have the same behavior between transports. Reviewed-by: Stefano Garzarella > >Signed-off-by: Arseniy Krasnov >--- > 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 >