Received: by 2002:ac2:48a3:0:0:0:0:0 with SMTP id u3csp564479lfg; Fri, 11 Mar 2022 13:26:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwa5ElkT/bWi+EWlEh4GR7VeA87XUpebQ9D1tyxH9oPImFvqT50VW3C4WlRU4xKvec/emLP X-Received: by 2002:a17:902:e8c2:b0:151:cae6:46fa with SMTP id v2-20020a170902e8c200b00151cae646famr12342092plg.164.1647033968669; Fri, 11 Mar 2022 13:26:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647033968; cv=none; d=google.com; s=arc-20160816; b=K/1WypC0qOfWX/6UnZ4DWR11ydy/CpkV11XIXpJ/fCVa/BDfl52atgS3NYAL+wBWfR ddeOFOSxFge1J5QrckuCunS+FVEf8hddJmp/OCYW3kMC1UwmgTRb3Qt7kclD3rCxR7YZ HmlCwf3aLZX+QMjfEZceuDeHUENAMxF1JgtyiGkv5MLC1J1j1vQOhxK9G7qZb7O/slHP aXjo/LkqIEFwTUX3JGnO7BD14P/MjkZRxNi7kr8UBhGXK+C/7XqgBriDp9I3htZ4VAR/ MPrvj/uARrWr8RRP+uXETJBVcyXK5XlxMKxrbMd0BQT8KK9lz2TBv8gI5LBPwSfadfxs 2g7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=UuTD4CaXuJhjAdM97KgJAlWuhmp9SwCz1oJS9DD5Q8I=; b=BM6culQ0NcD9PvqDVc+ab5ys/NK27JSk3RNnM5FBy8Ny33vns6lBonnFVfGjlTWFt1 W26rHJ96zTgXYFDjwe9W7hT2thIT3kwoseLH0Qmb6RcFp55HEFA/EYy08lUL8bbVnqUK myTD+xSRFvQLfNW3sV1/UTdFQWQBKR53MX8g2UaMKa4dpo1LuhLkn6EmvdAICerDWCCi kxmTl/HWxH0UobOBzSb7PFwaqyk2A6PVbDVxvztGWZq/OLEkIpQyLC2G+23AM8RfwaSQ MF2287eG1v2ZWHGvpZ6eG/cfnppVHiofPgFUIOfqaqmOvsQnCnEdJyv7leKzGvZbpNy3 HuMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EfLj4rQ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b9-20020a17090a990900b001bd14e01f7esi9140269pjp.108.2022.03.11.13.26.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 13:26:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EfLj4rQ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CFF40230E65; Fri, 11 Mar 2022 13:00:47 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344216AbiCJWAJ (ORCPT + 99 others); Thu, 10 Mar 2022 17:00:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343762AbiCJWAG (ORCPT ); Thu, 10 Mar 2022 17:00:06 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BCE4FFF9B; Thu, 10 Mar 2022 13:59:05 -0800 (PST) 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 E17E9B82883; Thu, 10 Mar 2022 21:59:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49848C340E8; Thu, 10 Mar 2022 21:59:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646949542; bh=UkTta+mJNOiFDvaEmTZvAluAm01tKTqeCObiTi1om6s=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EfLj4rQ5ncUAmzUrV1VxHBVwUHfRsjkyhGeidtsw1TgfV1+ucYcO9p0kGuYxUQ1/m LZZsyVuR3mFA82Ns0Dy5obJTr37C28pPokJys+lYABbHXTq7gVuyIjHtuGfHN52Ukc erEKcE0/rRIODCLkZf420AZymkR0jOvw86TGRH9ElYHGF0GGtvguN4uCYvhkI2BjsU nYa98vSPRuFJduEA75K3SncU8j7qNCJtRch4an24KWEzIriauRHNt6ruG0h/HXV2n8 IMMOt02fGEIoxbes5r7ELa1uIg7QMicasHiz70gUpJu5bjmSww48U1DWKDZdr8Znbh MC0FczHVY7kXg== Date: Thu, 10 Mar 2022 13:59:01 -0800 From: Jakub Kicinski To: Ivan Vecera , Jesse Brandeburg , Tony Nguyen Cc: netdev@vger.kernel.org, Petr Oros , "David S. Miller" , intel-wired-lan@lists.osuosl.org (moderated list:INTEL ETHERNET DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: Re: [PATCH net] ice: Fix race condition during interface enslave Message-ID: <20220310135901.39b1abdf@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20220310171641.3863659-1-ivecera@redhat.com> References: <20220310171641.3863659-1-ivecera@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 Thu, 10 Mar 2022 18:16:41 +0100 Ivan Vecera wrote: > Commit 5dbbbd01cbba83 ("ice: Avoid RTNL lock when re-creating > auxiliary device") changes a process of re-creation of aux device > so ice_plug_aux_dev() is called from ice_service_task() context. > This unfortunately opens a race window that can result in dead-lock > when interface has left LAG and immediately enters LAG again. > > Reproducer: > ``` > #!/bin/sh > > ip link add lag0 type bond mode 1 miimon 100 > ip link set lag0 > > for n in {1..10}; do > echo Cycle: $n > ip link set ens7f0 master lag0 > sleep 1 > ip link set ens7f0 nomaster > done What's the priority on this one? The loop max of 10 seems a little worrying. Tony, Jesse, is it important enough to push into 5.17 or do you prefer to take it via the normal path and do full QA? The blamed patch come in to 5.17-rc it seems.