Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1418476lqz; Mon, 1 Apr 2024 06:04:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0bT6z1Bi9MZ3r72tX3Ev6Eng+h0Cw7DgHUO+mCa+aJnwpnZfdjEdKNWMEfvLq7zyBVy9Q/wze1zWJEgQjAyQlXHxVyVH/vJRfxVBUoA== X-Google-Smtp-Source: AGHT+IEcPaiZFWOReVkk9oyUa2Uf5i2d3r03sJtuidY7Ls5e4z68PqpUxn7ERUuUzXV6SLJdmPWh X-Received: by 2002:a05:6402:5190:b0:568:9ba8:8f1a with SMTP id q16-20020a056402519000b005689ba88f1amr7286005edd.7.1711976677965; Mon, 01 Apr 2024 06:04:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711976677; cv=pass; d=google.com; s=arc-20160816; b=BkjfoGtHtZOBdWiHuqLAThIX+OltBfZtDBJTrCDHcMYl40L/NccBtSuUIa+oX7eCZu tOfuHbpejJYLOtS4zl4yMQjH32nFcy+6/PIP3CwH+wl1gFtOMxWsZ0TrR5MDE6zRzRkq b0bOJmLxyaPmGSphbCXg/LCEkdTnbcGzXBFD51V9IkUM/zU+l1ScAgui+6teJPQDljLx kzjy4AjwY5waF3W2WFkGOjC+OiEnjZpdKpvGU/F6/7MPGWX2KljPXm4TO9OowtC7uRL8 mbnlL6RCC6FnKan9Y/8UPC90oh0ajPnZbOg7VLL98u8h62182xQzEcIADnCYvSgBqT4/ l5ng== 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:message-id :date:subject:cc:to:from; bh=Z2HDe4he31Ix2prpmU4weJP/LbgmoXpfawrSgg7Uptk=; fh=5xxA+ZniYI4n0IghD86GymxYYefWsD6r9RGHX2bCLqM=; b=jKM2Br0n9ZxFIhw0DKQ+K21wi9hi7JTO+AuTDs0Z2Xmrh5BJ4ia9XrL9Vu64QsQi0F OYpwo9PZqrec8pXe7PT3kzGffEUMJ9bmgSIgmODy7DBFp4iIr1Ms45cr5ERxoagaALJ/ g8vG6qyskIJo2iQui/VeshozrhnzaNtBi8LX33BLS7cIG+n4yc6rO33bPVFAwExu+EW1 Bq32Mb0XsNIhUzi6fQmd8QaLDky5T5VMa6FVDYRH588C/hApkcfV0GSvN9vEHTXFI9e4 rbUB0Hc+1EaENKpOXIGqfo0fH1GERwW1ZYSrDq2savM8Zxp790CeDwHGbcz7FuwSPLRV /VvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-126664-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126664-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a11-20020a50c30b000000b0056dc879e5b2si1772181edb.344.2024.04.01.06.04.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 06:04:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126664-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-126664-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126664-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id AF4211F2206E for ; Mon, 1 Apr 2024 13:04:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3891C3EA69; Mon, 1 Apr 2024 13:04:31 +0000 (UTC) Received: from mail115-63.sinamail.sina.com.cn (mail115-63.sinamail.sina.com.cn [218.30.115.63]) (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 0496921A0A for ; Mon, 1 Apr 2024 13:04:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.115.63 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711976670; cv=none; b=qLH2+sfCWYH+ws41uFiUc4LOuuJeaNfE3xfrAKJGFrD9tMwCCosRfwqDTc56D52h09JeEO8CkZ0sWQ4YvoOQZ1FkllqvlPmkY+1MoP4H0kDDB7DQy21sEBbRZ4wY+bQhdo9F4e70np1a8BMy6MZUxMzkr/tzy2Heyhlklc5daQs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711976670; c=relaxed/simple; bh=WOf1t5/kLTuMP0vqmrlw4HwW7o7C0/4Q8Dfs/g7PJ5I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Pm0mx/RlDTL9/zpsAG2BiXSjNCplb/hXURPQmYMg4bmlWnznsk1VAmz/PvyKQtz4lolhSvdSNIupQRNMb+Cw+LaEX7CuknertFxEZ6Cw7/VAOb9k/R8qn20dl2mMo3S9uAL/jhf6wO9//nL+BYJ9rqi4GcP3hawHd3CQE5pMZlI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=218.30.115.63 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([113.88.49.36]) by sina.com (10.75.12.45) with ESMTP id 660AB0A800007332; Mon, 1 Apr 2024 21:03:42 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 55674131457705 X-SMAIL-UIID: 6CF2D06D852B4E73966546F7E98388BD-20240401-210342-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [net?] possible deadlock in hsr_dev_xmit (2) Date: Mon, 1 Apr 2024 21:03:28 +0800 Message-Id: <20240401130328.3529-1-hdanton@sina.com> In-Reply-To: <00000000000022c6b2061502dcbb@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Sun, 31 Mar 2024 23:11:27 -0700 > syzbot has found a reproducer for the following issue on: > > HEAD commit: 480e035fc4c7 Merge tag 'drm-next-2024-03-13' of https://gi.. > git tree: upstream > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15e0f5c3180000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 480e035fc4c7 --- x/net/hsr/hsr_device.c +++ y/net/hsr/hsr_device.c @@ -226,9 +226,11 @@ static netdev_tx_t hsr_dev_xmit(struct s skb->dev = master->dev; skb_reset_mac_header(skb); skb_reset_mac_len(skb); - spin_lock_bh(&hsr->seqnr_lock); + local_bh_disable(); + spin_lock_nested(&hsr->seqnr_lock, 1); hsr_forward_skb(skb, master); - spin_unlock_bh(&hsr->seqnr_lock); + spin_unlock(&hsr->seqnr_lock); + local_bh_enable(); } else { dev_core_stats_tx_dropped_inc(dev); dev_kfree_skb_any(skb); --