Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp439971lqi; Thu, 7 Mar 2024 01:37:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU3GsYZZJdGkknVf4M8cIQpcjnvdWl05zF2qkgK+C2mQvgFzdEoaTSIUrxsKPgQ/28qFGR1Z4a/z7w59VzJZekruO6TvCiqHbW6IgtvXQ== X-Google-Smtp-Source: AGHT+IE+pek0vipeeYEzpP9LuyJgy7nXUGSLNJrjJg1iNgDiM9kG7maYkWxyQMHCi3/yeuw4lWKe X-Received: by 2002:a05:6808:1815:b0:3c1:b2c7:f6d3 with SMTP id bh21-20020a056808181500b003c1b2c7f6d3mr9050302oib.41.1709804266621; Thu, 07 Mar 2024 01:37:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709804266; cv=pass; d=google.com; s=arc-20160816; b=HZpwKiTcyY26Xe482pXN/ktqt/AE2rLBRTjlx9NtdBmIz668PoouZoEd8ZS3qHUdy1 JkgXtd6naimSjd3n4gFSVBxUfpmiiL1x+e4RZ0APG16BCleZ4JIj1k4yC9QL336tTy7k MHlQJo4edS+Qe2LulDi5/ZNERzzAXPK/m/gPueyYBXkvHl4SaKn0Dd3m8qzxoTHoCLNn M28WXFOee5cjGv3TFmtBOuMcoyEcCYTxhgQlK2TDygnt9S/gMI6YUWDfnUdkBYEVp8B2 /AyCI/QnIOj/Luid0GlT9prlUsYaFRsggFgS50tmjf+wTE17hKJynf1TzvNqR43DeRcg aqog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:date :subject:cc:to:from:message-id:dkim-signature; bh=rr/tMbcEktlPmy+7OAbx4X+bXXLxmest/fGA0BS7Zes=; fh=x/ceKplH9pQNJc7WLiOOmfjP+wvNcsTnPQNWkxef3rA=; b=JjVDh9O1TpbBWvu8LnYZOvbiiOxBxPMRMQKByrm7HMam3lf9TH7+/CMFYGZ1IbpPam oAFXnp4fjibz3Po5/olZKMpBybbFlWsnV9llL4SI0r1KGoOSP/rB7f79gf10k8dObqLf 7tGYSVPg8/CJmsceP5dnaMYLOE0qoS9n0+Tv6L/gXurl26E1dOBDUSG2HuiJbasEvZFf NU396dbaJcp/oKNqgxY8+viN8rNUfoBS3I+yvagp8BH7fa4MtZRxGqA/3v2KKLrG3kUK KigtfI1fdvHBX1DZQHxZkxBmuBBdScUurKr/fjSCc+/2D+cfilXQiNS/ns4hQ8INY5Cs fvGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=sTJtoRut; arc=pass (i=1 spf=pass spfdomain=qq.com dkim=pass dkdomain=qq.com dmarc=pass fromdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-95223-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95223-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=qq.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k2-20020a63d842000000b005d8e379746asi13209075pgj.630.2024.03.07.01.37.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 01:37:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95223-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=sTJtoRut; arc=pass (i=1 spf=pass spfdomain=qq.com dkim=pass dkdomain=qq.com dmarc=pass fromdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-95223-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95223-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=qq.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 47457287F81 for ; Thu, 7 Mar 2024 09:31:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4650183A0D; Thu, 7 Mar 2024 09:31:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="sTJtoRut" Received: from out162-62-57-49.mail.qq.com (out162-62-57-49.mail.qq.com [162.62.57.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE2BD83A14 for ; Thu, 7 Mar 2024 09:31:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.62.57.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709803887; cv=none; b=Ff4dkwP+pdmJ4IUsXOWWa1ZnqrEJWOjCsHd4s6NtLNOOMGmjy4hNFo+nD3gSBXjIc+36+40HzF1vlNvXTZlMADnF48idu1KPDVKu+xV23P5zXn1nVMn2OenRuUZ3heTTvm/OabCQDP+dapZFny6jBLKAQACX0HS841ducnRyPsg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709803887; c=relaxed/simple; bh=CYHiZKkDoPsJzfs65WAiQvs1WtzRsSvj65+4bNbaALQ=; h=Message-ID:From:To:Cc:Subject:Date:In-Reply-To:References: MIME-Version; b=c/ccaXVOE5qbUN7iVdkzydIKonl9FyCjGUgRqJJje1v0f8+ZGmW7p485ufbmXJohDYQ9JgkyZRcnTmbYFtT2Uc4cVKbj6BDg8VkqpmupB6GANyxdaGMNQpWOIMdf42H3ST9J2Bvfubx0/7BE+Xj1J7wcWb/6a/57hZAcs12tuJo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=qq.com; spf=pass smtp.mailfrom=qq.com; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b=sTJtoRut; arc=none smtp.client-ip=162.62.57.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=qq.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qq.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709803579; bh=rr/tMbcEktlPmy+7OAbx4X+bXXLxmest/fGA0BS7Zes=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=sTJtoRutQLgxvEeC3Bq5RtQdk2Cs7wKJg7WhF7WuxVRE7J01QKGs+M/okccGOi79z mFQyb5jKCDOMj2liOaZ+KSjMZZeMSJnCdmKFdJj1W4sP+vVL41y53eki6n6VvSiGnD Ez00ZraX7vjotsEi2PVl2Oe9a5tJyw9toxU2AJ1o= Received: from pek-lxu-l1.wrs.com ([2408:8409:c90:315:7d1b:6e30:5639:5d6c]) by newxmesmtplogicsvrszb9-0.qq.com (NewEsmtp) with SMTP id 69107A41; Thu, 07 Mar 2024 17:26:17 +0800 X-QQ-mid: xmsmtpt1709803577t0cy356vf Message-ID: X-QQ-XMAILINFO: MQ+wLuVvI2LQhx4bsLYeD9MBjvMm1UoM4n3alo0EHfscbFc7v12R8Z2U42hHT/ gjeV9TLr6T72cS//4xYR/EtOp9c2761ZeZuZHVR8zwPtPSVxSDHywL4vMB06z/YMYCTshVN2O8Xd qw8comxCdgYLZ1YOnvO61Br0/I9j/ju4FPZwFKekG1NI1wzCuLP7JLmQ+D1YhY0Vttr2S03aIEME b1okn3dXog/rsJn64Grkgck+/GSDBpX0RhlULllpjVQiSzZkoidkap/hkWY3wjT24bl7SY0YIhDE 8xyk5I4RXX6xI7n3I9TBGYLZ3+EYe/BZFSZoxoc2rwb3RF0fhU0dA46ICSn5RcqNaQ9DtTmJwgWD goAkAU5kPRQsXX0oOcqPfUoh9mMbXwm7+673OuSK1m+3tKoSX6otIhh3eD8QBukCNEcMVc7f1lbg 3CN51bojOKBUbbrbCxfMyOt65p/XbBCVxfr8axZ4LQWIiWUoAaz70DABnkh3cY3NUudnf0mrxmof C3/Ivz0xn4Sk1ZcaW2JfXDFQbwV73b1JVP0I9w3IcbmDM9VRDFpOwRP1tQD+z0JfcHAXp5gKj92A vE11dxhZLJ6PjSaxCjcl6ospDY2yTs+hS11bZoN60r2AprJmHuTzACL30SfTbQelPbm1aXxRBq0Z CB8k8YwiX+pmOrPS3uM3LunlXMsKeTarfEp9kPFUyNm9hjx2dJkD+iQNnnXgGLkjhCpzZ/m4bG1e rUmcMf0SyrtpOe/+am6seSvvvgIyAAZEckqTceLctGHEmn3wcLjQMpIYSQ4A+KFYZgIyf/kH5mp4 JhKD3gTaaN38l6XIziGFZ/5VGI+VgzBipdsUiS6butIPLTUK6yxhQEhC99JYpud0eEEz9jvLLBNb FUnnbSkaaS/nV04in87ramuZoMzmiKmu9W9c0fQty60B8ncLq9wFJUfazWA3Qyj0mM9tNnVaZc X-QQ-XMRINFO: M/715EihBoGSf6IYSX1iLFg= From: Edward Adam Davis To: syzbot+3c47b5843403a45aef57@syzkaller.appspotmail.com Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [net?] possible deadlock in team_port_change_check (2) Date: Thu, 7 Mar 2024 17:26:17 +0800 X-OQ-MSGID: <20240307092616.940471-2-eadavis@qq.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <0000000000004af86e0612f195c7@google.com> References: <0000000000004af86e0612f195c7@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit please test dl in team_port_change_check #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index f575f225d417..ecce44b16e4f 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c @@ -1212,7 +1212,9 @@ static int team_port_add(struct team *team, struct net_device *port_dev, goto err_port_enter; } + mutex_unlock(&team->lock); err = dev_open(port_dev, extack); + mutex_lock(&team->lock); if (err) { netdev_dbg(dev, "Device %s opening failed\n", portname);