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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AAF9C433F5 for ; Fri, 25 Mar 2022 22:13:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233653AbiCYWPN (ORCPT ); Fri, 25 Mar 2022 18:15:13 -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-Google-Smtp-Source: ABdhPJzrh3as6EzSlyV4zCifga3mc8DRKXJ3IcSVHDKxmnRkMthzAmI+Lf4flooxoeGxfZh8tqjnfg== 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 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