Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20496341rwd; Thu, 29 Jun 2023 03:09:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7pgzR7DDasXSizCmt0B4dmZ3ebv4dlbEQ3Ne8LpmofKWNDZKbB6z8IKYb6MqAx6c6eClAe X-Received: by 2002:aca:2109:0:b0:39c:9173:31f1 with SMTP id 9-20020aca2109000000b0039c917331f1mr40013618oiz.28.1688033394280; Thu, 29 Jun 2023 03:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688033394; cv=none; d=google.com; s=arc-20160816; b=b6qv1m2EwAic1O0HOCh2K9VAAELroh8GkjpNFTDeQdzuublHkMKBx2u6nlnKeIeMYN +pO2F03x7h/xBKObf5xBvSwwZrT2kMRiQpGgFqDyJ6FqjQVxBCxfjPbSPkB9+RU3OfJq 8UdyZQ9D8Jd9z0OY0kh1KjJUHSyNZBtKv3m7lEgcQTGpDllgnFiUKAJzg07CgKwZEnP/ +7MePWiryUc77g49qb4wBSNSntqyoxzJa375osbgMKPosbOGxANKT/FQxw3pUQP78hTP MZ6P/ydwDRCr5uGZ1TtkGmbF2s3moC3sLEKiSEYOtoZoY8o/I4HSiE8At8OWRlKH2HoG 8Www== 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=s4eoojwnUgBL0PChZA1CbdqCdS0sLUNotySWZ2M0vcM=; fh=XZbR+VYaDr1aHW0wiH7ulAlQq5siUGT4PG3vHiEZrp8=; b=G47q3MdG49BV89FIjnW+yieUHNZWHlKx9aQnoaR3QMSbDRK2ieUoPe7Hlq9QJmbaW8 FznYDtQNNLS08dyhvX0iHHNDMCFBdm2b64JXwY2Z2FfC0AMk3uvZmAxAkaYv3ZYAHnzW Qdo1INsfHiOswcjtR5JAWljUdJ92mDVoODzq0u5vxRk8hwmKoVFbYA2dH6z5IjR3VEuZ uV+uU5iJoWRV6r31WWK/q3XQ/nMr1zVbS2qPBlS+TqqKVl4AQ7SvJ2kmGOw5b2epHrge 3RuFbedjcMHPlCFQgASM4IAsJecBPp1DZSp9o7g0zPG2jQ7wwBnLGPokr9K9XdNB5r4H 4HEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="oDHVOrr/"; 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 mh7-20020a17090b4ac700b00262e3c1c1efsi9036103pjb.79.2023.06.29.03.09.40; Thu, 29 Jun 2023 03:09:54 -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="oDHVOrr/"; 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 S232224AbjF2KDu (ORCPT + 99 others); Thu, 29 Jun 2023 06:03:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232456AbjF2KBk (ORCPT ); Thu, 29 Jun 2023 06:01:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 761B73582; Thu, 29 Jun 2023 03:00:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1369D6150C; Thu, 29 Jun 2023 10:00:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 5E0E1C433C9; Thu, 29 Jun 2023 10:00:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688032821; bh=6BSYODeXAvBc1bYzqyJYg+UUhE64/mpp9Tu40F5CwoU=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=oDHVOrr/5JM70o8y0DmxBWIVGGiaWWXfzS94TATG7gX18UJiEXtcnfnbjgS14itYd RjDupaiQALNLc4zEyV9ElOhba0fYXYHoDfJ8tZlsfgOg1DJaaeZZK48ThBknPuQxOc /7gEQdxojynYXj5ZWNDMbsuGzHRw6KBoX5a+8Wna1pZuuPXLPuKXxMndlqBCyoRav7 mGuQVJGE6lMiPKEWQdF9qjiHgVRjXoivbJ/ASo3o5t76qKE40VFbLNBe5mw9QHMw4u 5oN9H5Ihhy4pdzSmD/s49gZuNXWuInDrpEWATZHph7ul1/wK8ZNnhRUc3KEzn2s27h gp9+ZfzIrhcnA== 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 40A04C395D8; Thu, 29 Jun 2023 10:00:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] sctp: fix potential deadlock on &net->sctp.addr_wq_lock From: patchwork-bot+netdevbpf@kernel.org Message-Id: <168803282125.4865.3870530612120862542.git-patchwork-notify@kernel.org> Date: Thu, 29 Jun 2023 10:00:21 +0000 References: <20230627120340.19432-1-dg573847474@gmail.com> In-Reply-To: <20230627120340.19432-1-dg573847474@gmail.com> To: Chengfeng Ye Cc: marcelo.leitner@gmail.com, lucien.xin@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-sctp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-7.1 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 (main) by Paolo Abeni : On Tue, 27 Jun 2023 12:03:40 +0000 you wrote: > As &net->sctp.addr_wq_lock is also acquired by the timer > sctp_addr_wq_timeout_handler() in protocal.c, the same lock acquisition > at sctp_auto_asconf_init() seems should disable irq since it is called > from sctp_accept() under process context. > > Possible deadlock scenario: > sctp_accept() > -> sctp_sock_migrate() > -> sctp_auto_asconf_init() > -> spin_lock(&net->sctp.addr_wq_lock) > > -> sctp_addr_wq_timeout_handler() > -> spin_lock_bh(&net->sctp.addr_wq_lock); (deadlock here) > > [...] Here is the summary with links: - sctp: fix potential deadlock on &net->sctp.addr_wq_lock https://git.kernel.org/netdev/net/c/6feb37b3b06e You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html