From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 36DC4C77B75 for ; Fri, 12 May 2023 10:19:06 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 917C23CD55E for ; Fri, 12 May 2023 12:19:04 +0200 (CEST) Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id C0D1C3CB467 for ; Fri, 12 May 2023 12:18:52 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id A03CA200BCA for ; Fri, 12 May 2023 12:18:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683886730; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+auYZQ/G+iwFFTT/VdJPo4gysgHFMS413cVUjjVlyys=; b=PlatVZ7eIY7lkxwHXJ4h2MpbXPUVw28JExPSg1otoZfnf+9kp7ytl+AqIKoCVevD5MRUXc gHnN63AlrARuiKmI4GanX+67Gz6H5DlCaL2r6Lvz5iWmrdPA0BTiEq448iCnDH2z/DXwig UhIuYruI/Ov8FZFhTUsirpfnIw0htLc= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-418-3MmX6zmkOz6qGlMHjgkjkQ-1; Fri, 12 May 2023 06:18:48 -0400 X-MC-Unique: 3MmX6zmkOz6qGlMHjgkjkQ-1 Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-62143c665cbso6706566d6.0 for ; Fri, 12 May 2023 03:18:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683886728; x=1686478728; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+auYZQ/G+iwFFTT/VdJPo4gysgHFMS413cVUjjVlyys=; b=EYpcXmC6Phs6JdAzw+gGEOi8BxABB6aXmjFTjtCIiUU58B6xC5SZLLtCYaLjEy4bhO NcTAT+q2/1u/0JM2G+VBlJLksecvtba6uepuw67A3LpSXoRLfaxWvKcrTQ2VDHR1CAxd 2PwjKchTB375Em88QhfMZUWXJDaCyaYBO3J9DpdTS9wV5iIFainnM5vzrBF9mFSGx+k9 zaVlhidzc0ySS6TBGzWRnoGr08Csh0yR8vnj393MGZNb6YRlfRLwrLDRb3iFSzzIpgBS cOHVkrRk5L6LbbA70w/lao08pxmh4/R4nCA/lX4Y/Kkj174UISeDEQOgjbOsqxnOJdzh +Qjw== X-Gm-Message-State: AC+VfDwwecMMMwTB7R1Oe+naR+FasaN08g96DkcP6hxJWAGx+lOXqvTD cDiUNo755TKyMCpyRq6FBrx30mPrqYXoFu1oDFOBRyFKwXCWiVZa1kds6Rybxwm92fUsuMmK/OV DurzPDcZ2s8s= X-Received: by 2002:a05:622a:1807:b0:3f3:98b7:7df with SMTP id t7-20020a05622a180700b003f398b707dfmr19423475qtc.6.1683886728126; Fri, 12 May 2023 03:18:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4NYowodSmUKmQS4Y0ySnIrOzgHEF4Guxlvz0OBOore+qTzlCJatbtf2vCCWvr3nvFbfOE4Wg== X-Received: by 2002:a05:622a:1807:b0:3f3:98b7:7df with SMTP id t7-20020a05622a180700b003f398b707dfmr19423457qtc.6.1683886727841; Fri, 12 May 2023 03:18:47 -0700 (PDT) Received: from [172.31.1.159] ([70.105.245.71]) by smtp.gmail.com with ESMTPSA id r22-20020ac85e96000000b003bd0f0b26b0sm2938792qtx.77.2023.05.12.03.18.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 May 2023 03:18:47 -0700 (PDT) Message-ID: <3ec79840-b34e-bef0-14ec-301829e9e95e@redhat.com> Date: Fri, 12 May 2023 06:18:46 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 To: Petr Vorel References: <20230504101619.GA3801922@pevik> <76403fb4-87f2-88cb-ab0c-ba63feacbeee@redhat.com> <20230512074314.GB30010@pevik> From: Steve Dickson In-Reply-To: <20230512074314.GB30010@pevik> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-Virus-Scanned: clamav-milter 0.102.4 at in-7.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] LTP: tirpc_rpcb_rmtcall is failing X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-nfs@vger.kernel.org, ltp@lists.linux.it, libtirpc-devel@lists.sourceforge.net Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Hello, On 5/12/23 3:43 AM, Petr Vorel wrote: > Hi Steve, > >> Hello Petr, > >> On 5/4/23 6:16 AM, Petr Vorel wrote: >>> Hi Steve, > >>> tirpc_rpcb_rmtcall is failing. I was able to reproduce it on >>> * openSUSE Tumbleweed with libtirpc 1.3.3 >>> * Debian stable 11 (bullseye) with libtirpc 1.3.1-1 > >>> OTOH SLE 15-SP4 with libtirpc 1.2.6 is working. > >>> PATH="/opt/ltp/testcases/bin:$PATH" rpc_test.sh -s tirpc_svc_4 -c tirpc_rpcb_rmtcall >>> rpc_test 1 TINFO: initialize 'lhost' 'ltp_ns_veth2' interface >>> rpc_test 1 TINFO: add local addr 10.0.0.2/24 >>> rpc_test 1 TINFO: add local addr fd00:1:1:1::2/64 >>> rpc_test 1 TINFO: initialize 'rhost' 'ltp_ns_veth1' interface >>> rpc_test 1 TINFO: add remote addr 10.0.0.1/24 >>> rpc_test 1 TINFO: add remote addr fd00:1:1:1::1/64 >>> rpc_test 1 TINFO: Network config (local -- remote): >>> rpc_test 1 TINFO: ltp_ns_veth2 -- ltp_ns_veth1 >>> rpc_test 1 TINFO: 10.0.0.2/24 -- 10.0.0.1/24 >>> rpc_test 1 TINFO: fd00:1:1:1::2/64 -- fd00:1:1:1::1/64 >>> rpc_test 1 TINFO: timeout per run is 0h 5m 0s >>> rpc_test 1 TINFO: check registered RPC with rpcinfo >>> rpc_test 1 TINFO: registered RPC: >>> program vers proto port service >>> 100000 4 tcp 111 portmapper >>> 100000 3 tcp 111 portmapper >>> 100000 2 tcp 111 portmapper >>> 100000 4 udp 111 portmapper >>> 100000 3 udp 111 portmapper >>> 100000 2 udp 111 portmapper >>> 100005 1 udp 20048 mountd >>> 100005 1 tcp 20048 mountd >>> 100005 2 udp 20048 mountd >>> 100005 2 tcp 20048 mountd >>> 100005 3 udp 20048 mountd >>> 100005 3 tcp 20048 mountd >>> 100024 1 udp 37966 status >>> 100024 1 tcp 43643 status >>> 100003 3 tcp 2049 nfs >>> 100003 4 tcp 2049 nfs >>> 100227 3 tcp 2049 nfs_acl >>> 100021 1 udp 59603 nlockmgr >>> 100021 3 udp 59603 nlockmgr >>> 100021 4 udp 59603 nlockmgr >>> 100021 1 tcp 39145 nlockmgr >>> 100021 3 tcp 39145 nlockmgr >>> 100021 4 tcp 39145 nlockmgr >>> rpc_test 1 TINFO: using libtirpc: yes >>> rpc_test 1 TFAIL: tirpc_rpcb_rmtcall 10.0.0.2 536875000 failed unexpectedly >>> 1 > >>> The problem is in tirpc_rpcb_rmtcall.c [1], which calls rpcb_rmtcall(), which >>> returns 1 (I suppose RPC_CANTENCODEARGS - can't encode arguments - enum >>> clnt_stat from tirpc/rpc/clnt_stat.h): > >>> cs = rpcb_rmtcall(nconf, argc[1], progNum, VERSNUM, PROCNUM, >>> (xdrproc_t) xdr_int, (char *)&var_snd, >>> (xdrproc_t) xdr_int, (char *)&var_rec, tv, &svcaddr); > >>> test_status = (cs == RPC_SUCCESS) ? 0 : 1; > >>> //This last printf gives the result status to the tests suite >>> //normally should be 0: test has passed or 1: test has failed >>> printf("%d\n", test_status); > >>> return test_status; > >>> Any idea what could be wrong with these very old tests? >> No... No idea... but I'm unable to reproduce it. It appears >> you are using different repo that the one I found on >> github [1]. But... > > Thanks a lot for looking into the issue. > BTW on which Fedora/RHEL/CentOS version did you test? Fedora 38... but I will keep trying... > > No, I'm also using the official LTP repository on github [1]. > And I compile on recent glibc (> 2.32, which removed SUN-RPC) and with libtirpc: > > ./configure > ... > libtirpc: yes > glibc SUN-RPC: no > >> Looking code, RPC_CANTENCODEARGS is returned when >> there is an xdr problem which might means a >> memory problem?? > >> With that said... commits 21718bbb^..fa153d63 did > That was released on 1.3.3, but I'm able to reproduce it on > Debian stable 11 (bullseye) with libtirpc 1.3.1-1. Good to know... thanks! steved. > > Kind regards, > Petr > >> make a lot of changes in the locking and cache >> management. > >> steved. > >> [1] https://github.com/linux-test-project/ltp > >>> Kind regards, >>> Petr > >>> [1] https://github.com/linux-test-project/ltp/blob/12765c115f11026c090ab0ee5dd79b38d95ef31f/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall.c#L91-L93 > > -- Mailing list info: https://lists.linux.it/listinfo/ltp