Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5484271rwb; Mon, 8 Aug 2022 21:09:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR43hmkbJHtvJw1ecuqBf7y6silofkymZONYLDuPiy5oTIAgrYN37SqvMPQ47XShnQmjkIns X-Received: by 2002:aa7:de18:0:b0:43d:30e2:d22b with SMTP id h24-20020aa7de18000000b0043d30e2d22bmr20404053edv.224.1660018154098; Mon, 08 Aug 2022 21:09:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660018154; cv=none; d=google.com; s=arc-20160816; b=U1KjzXsOQ14kP7t5zpR5Gzp3WKEa3gkCgidxMkr8d13ZVkh7WAr5BhXQFlRyMOoJKH 9kzdfjgatSyU4ZdkG9rq6LKQBgRbYsmxpp3vpw+mwnWMr/Z7Eph/yniZLMhNTatNxvkN KPK5lTWAfATqEHIimpLcHY/vq4mK3B+zyVo7QYD7/2V2FecLmdVXY4uKYtiR4YSmEhBA 69mRmSjMDx61GQaf/q2dDZWkvuoQl++u2NiYtJh5mbOhWWylqWDyz++zTgJPJE3Qh+Jh KX4H3boNMUYU1b0hjhNvtaNI+P21FQ+x+HbCDoj4MJ33YQnPNBTMC67ClyI7H98C9Lqe UU0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=1jA5+kEqAuiYeIlNhZQh+eGf914X0YUKd3BqrMS9Y1A=; b=vG5TJxQsl9kVLRX7B5BsVBWmt3m8fF5iYoUfKQ+FJGgGErQtArA1o4ypOXlZoPG7QT 8MdB1SlgcLyAPSraGDi3PBnalc1wgQFSfJW7tOy00pXP5bwcEvLJVjkhMTpQsKsLtwRY WXbFIWZXfs14fOu5/SkZ9tHlvX1K6d1U/bROYZ7HgdU4e6f0rvqPuH4OlA5sQP0Etx6L rkngWGHHfsKLqFIFYOc7LdqZrZIiulqprZ5RQt2ZXwbtHgghOcvYZQBdt/DZOX8nP3ar 2+xtLHz07OF626Bv9Ppso2KqESQsUP9n8qiYUaLbcVfA8Cex9LmcnGl8/ZdjfF8RS26J wLQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h9pGFWPb; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b10-20020a056402278a00b0043d2baaf94bsi1251810ede.357.2022.08.08.21.08.48; Mon, 08 Aug 2022 21:09:14 -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=@kernel.org header.s=k20201202 header.b=h9pGFWPb; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234019AbiHIEAp (ORCPT + 99 others); Tue, 9 Aug 2022 00:00:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231346AbiHIEAX (ORCPT ); Tue, 9 Aug 2022 00:00:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7343E7A; Mon, 8 Aug 2022 21:00:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0D559B81190; Tue, 9 Aug 2022 04:00:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 91DAAC433B5; Tue, 9 Aug 2022 04:00:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660017614; bh=0uHjm+KGcXAlJ7V6LXwNtiG4SVeDoNJSDLlk7EbtmWI=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=h9pGFWPb+hUeNR7eRF3hmP03hcVneB+7HEaCkkxDhbfCeWuxgUPDoIOs9xJ8ANI6t Uc0O3YbWZz9vT1PzadqJCQZp4UG3qu+iqHI3mCDLigXh+nIOa9ZlsUBzeWn2gIqDjz CrZ/qsd28oJGfzAZJNv+MuxS6xvauIeTtLM7AJHjSBfykx8JSudfZiXP8sSCKW5bQW f6pbwKZOhPWd2GlleTMcR9fwKx4CW//+/PocSzinSIkyi5TBuFcxLQlvSZcyaxfJVL cvkDJ5uCKKFBgzzLT791fOpp3hDG/qiAOBWCTA8PbrO3jGXltAOqu9YeescmAv6prH P5LEv0PVhg4KQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 753FAC43144; Tue, 9 Aug 2022 04:00:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] net/x25: fix call timeouts in blocking connects From: patchwork-bot+netdevbpf@kernel.org Message-Id: <166001761447.6286.4599664715576942070.git-patchwork-notify@kernel.org> Date: Tue, 09 Aug 2022 04:00:14 +0000 References: <20220805061810.10824-1-ms@dev.tdt.de> In-Reply-To: <20220805061810.10824-1-ms@dev.tdt.de> To: Martin Schiller Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, linux-x25@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hello: This patch was applied to netdev/net.git (master) by Jakub Kicinski : On Fri, 5 Aug 2022 08:18:10 +0200 you wrote: > When a userspace application starts a blocking connect(), a CALL REQUEST > is sent, the t21 timer is started and the connect is waiting in > x25_wait_for_connection_establishment(). If then for some reason the t21 > timer expires before any reaction on the assigned logical channel (e.g. > CALL ACCEPT, CLEAR REQUEST), there is sent a CLEAR REQUEST and timer > t23 is started waiting for a CLEAR confirmation. If we now receive a > CLEAR CONFIRMATION from the peer, x25_disconnect() is called in > x25_state2_machine() with reason "0", which means "normal" call > clearing. This is ok, but the parameter "reason" is used as sk->sk_err > in x25_disconnect() and sock_error(sk) is evaluated in > x25_wait_for_connection_establishment() to check if the call is still > pending. As "0" is not rated as an error, the connect will stuck here > forever. > > [...] Here is the summary with links: - [net] net/x25: fix call timeouts in blocking connects https://git.kernel.org/netdev/net/c/944e594cfa84 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html