Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2331105pxb; Fri, 25 Mar 2022 15:41:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxP3MRIXKHUfpNX12VSpiixBJ3t73Ds0IxfMm1ZDJ7ovDxgQ1hkebkADrnrPb1LXue03I+X X-Received: by 2002:a63:b748:0:b0:374:408a:eb69 with SMTP id w8-20020a63b748000000b00374408aeb69mr1374009pgt.103.1648248077134; Fri, 25 Mar 2022 15:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648248077; cv=none; d=google.com; s=arc-20160816; b=KP23UdprCDKudfYqZy0yQ1sJ5W8haJl1gtGnB3OQn+TH43K2ajqPUffnBTiEY7reTw nrzozFeSSyA8hXxswoOFdWA47vn6m3wxCUgNNka3HrY9HXrACogdCAtzcRVf853mFRuv tomMONanOyWi2ZygdzPmX3/3HLKvkQojki/S9H1u/ZuxaEWFbLut6bMEGZQ4OYU+S+pm +Za2rJxk+KVOdDk3NyY7Uwt7rnx+piqOUAPTymiLhMYyrPsJn8r2VDZXpIpZHFqgjblD zxJGb15/N6gqPHY9bzKIQy502Tu0PEKiFuyE+gT8c64iFQEPlBk3IM1VCETMkZNBqni+ ZnEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=PAdDbobA7ctOVd3F7wClb6JTLruDj5TFIdtnV7HXuO8=; b=EypeGAal4jAzVQYkRAg9JizYFJXLzmUvKn53GgwluZyLHRSIqgKRuziFOnnA0uZkem Hssj1qcrHc2IQZFlmR7gZHHUCQ0iYEgP6P4GKn5na3q9dC2xz131q3QQeyz3jek+UvI0 HqL3blI/XYVFZJ7fcdK/3ktVVoL7g9aAoOmVNhtMzFTcwOX0q6ZqrAbDoT9zn3K5oi0e 7LavScidOb0WEvMP4IXGh7Xvsz0CpWwlA6DsSOHVNaNjE9ADZXZNWlV4aqZPO91KxRdr CeuhAY+uyVUGgy1212UVd1j8uzDy2SkMdadQE06ikZVMIQgJdS/Mptf0Ta2Kvgdg70Dz WGkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=h55V9kQ5; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b17-20020a17090a991100b001c7bfb058absi3817788pjp.99.2022.03.25.15.41.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 15:41:17 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=h55V9kQ5; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E4D0448333; Fri, 25 Mar 2022 15:13:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233690AbiCYWPM (ORCPT + 99 others); Fri, 25 Mar 2022 18:15:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233614AbiCYWPL (ORCPT ); Fri, 25 Mar 2022 18:15:11 -0400 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBE6D25E87 for ; Fri, 25 Mar 2022 15:13:35 -0700 (PDT) Received: by mail-oi1-x229.google.com with SMTP id v75so9691536oie.1 for ; Fri, 25 Mar 2022 15:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=PAdDbobA7ctOVd3F7wClb6JTLruDj5TFIdtnV7HXuO8=; b=h55V9kQ5U2X286qcrn/XW1bPCCbK5drMiqQedFn46a7iit4ROK+BInCdGuGHQ+vTqd kiNIJGJTdlPf8jdH16R1D7M1ja0XnwWCXX50bLOqZlNy1DqbroREFd2qYtsxRqoGbzKA 9oMLzUfr97I+5K83Q7v4WFdfHGcrpN8OS28mw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PAdDbobA7ctOVd3F7wClb6JTLruDj5TFIdtnV7HXuO8=; b=Y5epiq2WztcPk3iEN2Lai9xxEfpiz7VKio+Cws5vfFfVu1rl7RER3qUl4fuhRW/Ktk ebUYtWnU0D4TT4AobTXD/4BPoOok5OnNZpf9p3NeHrERXRQTqciOZQUfNtqL3CoyJNbl Y2hxV8cOTdrPkGw+/YHQhWSSJnj9Hyea7NcprMTZdMgIP3/BzkLw3kBmU8WwvLZqvBO3 QV8I0Ztq4d9lw9sCxdjKybI2CDuHsD8btwOSFDl1BlHIh/uj4uWjL3UwecMdQ/rbK8iE 1DFUGX41zZQdl1ZMx4phRzjZhlLV8et049bXgR3MhIEfVB7CSo7d4rUJPYiD+OtNSesj EBGA== X-Gm-Message-State: AOAM531XOHaioUb9fKq+3gWDnVUbZaLj+wQtdW7SHAvNrekUYIcY2pi1 twurs0kxzUM2azr1tYJMCyLy6w== X-Received: by 2002:a05:6808:11c4:b0:2d9:c395:f15e with SMTP id p4-20020a05680811c400b002d9c395f15emr11146862oiv.47.1648246415160; Fri, 25 Mar 2022 15:13:35 -0700 (PDT) Received: from [192.168.1.128] ([71.205.29.0]) by smtp.gmail.com with ESMTPSA id r8-20020a05683001c800b005cdadc2a837sm3203525ota.70.2022.03.25.15.13.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Mar 2022 15:13:34 -0700 (PDT) Subject: Re: kselftest: net: tls: hangs To: Naresh Kamboju , Jakub Kicinski Cc: Shuah Khan , "David S. Miller" , Paolo Abeni , Shuah Khan , Linux-Next Mailing List , "open list:KERNEL SELFTEST FRAMEWORK" , open list , lkft-triage@lists.linaro.org, Netdev References: From: Shuah Khan Message-ID: <8c81e8ad-6741-b5ed-cf0a-5a302d51d40a@linuxfoundation.org> Date: Fri, 25 Mar 2022 16:13:33 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 3/25/22 1:40 AM, Naresh Kamboju wrote: > While running kselftest net tls test case on Linux next and mainline kernels > the test case fails at following sub test cases and hangs every time. > Please investigate this hang issue. > > kconfigs are generated from kselftest-merge config. > > metadata: > git_ref: master > git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next > git_sha: b61581ae229d8eb9f21f8753be3f4011f7692384 > git_describe: next-20220323 > kernel_version: 5.17.0 > kernel-config: https://builds.tuxbuild.com/26mKij4yB5Q6WUpOyHHEoHLstVJ/config > > Test log link, > -------------- > # selftests: net: tls > # TAP version 13 > # 1..502 > # # Starting 502 tests from 14 test cases. > # # RUN global.non_established ... > # # OK global.non_established > # ok 1 global.non_established > # # RUN global.keysizes ... > # # OK global.keysizes > > > # # RUN tls.12_aes_gcm.splice_cmsg_to_pipe ... > # # tls.c:688:splice_cmsg_to_pipe:Expected splice(self->cfd, NULL, > p[1], NULL, send_len, 0) (10) == -1 (-1) > # # tls.c:689:splice_cmsg_to_pipe:Expected errno (2) == EINVAL (22) > # # splice_cmsg_to_pipe: Test terminated by timeout > # # FAIL tls.12_aes_gcm.splice_cmsg_to_pipe > # not ok 21 tls.12_aes_gcm.splice_cmsg_to_pipe > # # RUN tls.12_aes_gcm.splice_dec_cmsg_to_pipe ... > # # tls.c:708:splice_dec_cmsg_to_pipe:Expected recv(self->cfd, buf, > send_len, 0) (10) == -1 (-1) > # # tls.c:709:splice_dec_cmsg_to_pipe:Expected errno (2) == EIO (5) > # # splice_dec_cmsg_to_pipe: Test terminated by timeout > # # FAIL tls.12_aes_gcm.splice_dec_cmsg_to_pipe > # not ok 22 tls.12_aes_gcm.splice_dec_cmsg_to_pipe > # # RUN tls.12_aes_gcm.recv_and_splice ... > # # OK tls.12_aes_gcm.recv_and_splice > > > > # # RUN tls.13_aes_gcm.splice_cmsg_to_pipe ... > # # tls.c:688:splice_cmsg_to_pipe:Expected splice(self->cfd, NULL, > p[1], NULL, send_len, 0) (10) == -1 (-1) > # # tls.c:689:splice_cmsg_to_pipe:Expected errno (2) == EINVAL (22) > # # splice_cmsg_to_pipe: Test terminated by timeout > # # FAIL tls.13_aes_gcm.splice_cmsg_to_pipe > # not ok 70 tls.13_aes_gcm.splice_cmsg_to_pipe > # # RUN tls.13_aes_gcm.splice_dec_cmsg_to_pipe ... > # # tls.c:708:splice_dec_cmsg_to_pipe:Expected recv(self->cfd, buf, > send_len, 0) (10) == -1 (-1) > # # tls.c:709:splice_dec_cmsg_to_pipe:Expected errno (2) == EIO (5) > # # splice_dec_cmsg_to_pipe: Test terminated by timeout > # # FAIL tls.13_aes_gcm.splice_dec_cmsg_to_pipe > # not ok 71 tls.13_aes_gcm.splice_dec_cmsg_to_pipe > > > > > # # RUN tls.12_chacha.splice_cmsg_to_pipe ... > # # tls.c:688:splice_cmsg_to_pipe:Expected splice(self->cfd, NULL, > p[1], NULL, send_len, 0) (10) == -1 (-1) > # # tls.c:689:splice_cmsg_to_pipe:Expected errno (2) == EINVAL (22) > # # splice_cmsg_to_pipe: Test terminated by timeout > # # FAIL tls.12_chacha.splice_cmsg_to_pipe > # not ok 119 tls.12_chacha.splice_cmsg_to_pipe > # # RUN tls.12_chacha.splice_dec_cmsg_to_pipe ... > # # tls.c:708:splice_dec_cmsg_to_pipe:Expected recv(self->cfd, buf, > send_len, 0) (10) == -1 (-1) > # # tls.c:709:splice_dec_cmsg_to_pipe:Expected errno (2) == EIO (5) > # # splice_dec_cmsg_to_pipe: Test terminated by timeout > # # FAIL tls.12_chacha.splice_dec_cmsg_to_pipe > # not ok 120 tls.12_chacha.splice_dec_cmsg_to_pipe > > > > # # RUN tls.13_chacha.splice_cmsg_to_pipe ... > # # tls.c:688:splice_cmsg_to_pipe:Expected splice(self->cfd, NULL, > p[1], NULL, send_len, 0) (10) == -1 (-1) > # # tls.c:689:splice_cmsg_to_pipe:Expected errno (2) == EINVAL (22) > # # splice_cmsg_to_pipe: Test terminated by timeout > # # FAIL tls.13_chacha.splice_cmsg_to_pipe > # not ok 168 tls.13_chacha.splice_cmsg_to_pipe > # # RUN tls.13_chacha.splice_dec_cmsg_to_pipe ... > # # tls.c:708:splice_dec_cmsg_to_pipe:Expected recv(self->cfd, buf, > send_len, 0) (10) == -1 (-1) > # # tls.c:709:splice_dec_cmsg_to_pipe:Expected errno (2) == EIO (5) > # # splice_dec_cmsg_to_pipe: Test terminated by timeout > # # FAIL tls.13_chacha.splice_dec_cmsg_to_pipe > # not ok 169 tls.13_chacha.splice_dec_cmsg_to_pipe > > > > # # RUN tls.13_sm4_gcm.splice_cmsg_to_pipe ... > # # tls.c:688:splice_cmsg_to_pipe:Expected splice(self->cfd, NULL, > p[1], NULL, send_len, 0) (10) == -1 (-1) > # # tls.c:689:splice_cmsg_to_pipe:Expected errno (2) == EINVAL (22) > # # splice_cmsg_to_pipe: Test terminated by timeout > # # FAIL tls.13_sm4_gcm.splice_cmsg_to_pipe > # not ok 217 tls.13_sm4_gcm.splice_cmsg_to_pipe > # # RUN tls.13_sm4_gcm.splice_dec_cmsg_to_pipe ... > # # tls.c:708:splice_dec_cmsg_to_pipe:Expected recv(self->cfd, buf, > send_len, 0) (10) == -1 (-1) > # # tls.c:709:splice_dec_cmsg_to_pipe:Expected errno (2) == EIO (5) > [ 661.901558] kworker/dying (49) used greatest stack depth: 10576 bytes left This seems to be the problem perhaps. Jakub, any thoughts. The last change to tls.c was a while back. > > Test case HANG here. > > Full test log links [1] including boot log and test run log. > > Reported-by: Linux Kernel Functional Testing > > -- > Linaro LKFT > https://lkft.linaro.org > > https://lkft.validation.linaro.org/scheduler/job/4770773#L2700 > thanks, -- Shuah thanks, -- Shuah