Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1325158rdb; Tue, 30 Jan 2024 15:22:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhFW1Dx9nc1WcaYsHsBsCJ0EzJRCO09loQ8WZf4xvqF3N/4woWICCN0nzF2vwlm1vKkjM3 X-Received: by 2002:a17:903:3292:b0:1d9:2835:f15e with SMTP id jh18-20020a170903329200b001d92835f15emr46323plb.20.1706656973220; Tue, 30 Jan 2024 15:22:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706656973; cv=pass; d=google.com; s=arc-20160816; b=fiPRvfA+jT7LvGj3J/KBTH6CAL86zqC1HfJE8mW25Wfm2L0M2IUBjbLdiZuqWTwdCj 3pIsBVn2cmso6P7kLVYO+QlME6Ng5lZM1eK/m/PqSQ+jfUs8ymizP6o2p/O8/9muVcwj /eu91lg3+6H8jchP4dF5iiH/5E2qgc7y0fOnfyn4/mQCTHVscyodp6o6zVlRgDVEoKfb 1JwoJedAtJ19xQlAxE6cx4X6i+k/j5uOVbGMELcJobOp+o4nwQ9yl52Kjp5LXgseCL16 JyuT56pl4cBjoWueFLu2xdEtsCnqMNIyO8Jk2PhiHy01gOkjaem1+73lzSIbknVZuEPj Tptg== 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=a/2VI/Ka+smRrQum04rfbf4irzVzE/+/uns4kZozbEs=; fh=wv4jiliax2uSGY7S1sVF9gNdO8hL1iTOlAQw4vmbO64=; b=GWPQlg5AJrUhHuQn1h1camlCgW9vP62P+Byd3T2ZAfTX7fvwQfr3Y1jKefdWVgNzDo 7Pj0W534FeXNKh7aVPZzQVugtKO+n/9H7XAoPz3L506XwOSJQKJjSn0BKjjnIUyALqb2 ARl9u+5tR4sMvBEW+XMrnd4I2MSV7BygmVS6ENoAI9MyCbFcJ09ribFTWcAEWRxn0IJW 3+BA0jHyuProcfwfSQAYhvreE7NSRMbDHedfcRQiZ6xQ7T00y2f8yMaq2hxQoXYXZ05l F3ZBNxMqfFlp0EWYJ1MGq5jU95gta+Y6LIS1mZS0yAQ7EaBlLbqV8hgComB2haSdirik HbTw== 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-45465-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45465-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w6-20020a170902d3c600b001d8ef01f108si3441056plb.221.2024.01.30.15.22.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 15:22:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45465-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-45465-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45465-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6C6C6B20CEE for ; Tue, 30 Jan 2024 23:22:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FDD579957; Tue, 30 Jan 2024 23:22:42 +0000 (UTC) Received: from mail78-58.sinamail.sina.com.cn (mail78-58.sinamail.sina.com.cn [219.142.78.58]) (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 30C6B79941 for ; Tue, 30 Jan 2024 23:22:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=219.142.78.58 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706656961; cv=none; b=Z5zx1AGIvvskVtjSQZrOoeynwy8lZNVOlDNtZ5w35PsgK6Fj310vUp147dUIA50d8ig3XteyrsY/NbiLbiw7HiLfthdcKJBWIgmP5xKbsnURg+7tD4gUAd/CFPeGUnDM5eqp6t5sHb3rbgXtl993hUJOx8jNX6z6iEq8Y3PvnI8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706656961; c=relaxed/simple; bh=/tq/cx/WcvmNxhEpp2AZmoVoX3+GtT6aEqe9qYfVUFA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Taz7lCYadBTTGavdnO71HY/UG4v7XEN9fw0sHlJ6uc8nOsvyAqYzQVFFxp31G8xfV8LwTUjexIrXAQ5V4XyBxgLW6iQ+r7Z8qHUGoibOZpAgdrRg6l7SnuquUjq91wfo+ZVTJc+fRV5CwNDZpYAbmRn8n25hehOvRaoWt9WSa3o= 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=219.142.78.58 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.118.67.231]) by sina.com (172.16.235.25) with ESMTP id 65B984B10000651B; Tue, 31 Jan 2024 07:22:27 +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: 76482934210540 X-SMAIL-UIID: 4A69552BCDD8418A9CB66B69C168E737-20240131-072227-1 From: Hillf Danton To: syzbot Cc: boqun.feng@gmail.com, eadavis@qq.com, linux-kernel@vger.kernel.org, penguin-kernel@i-love.sakura.ne.jp, peterz@infradead.org, syzkaller-bugs@googlegroups.com, torvalds@linux-foundation.org Subject: Re: [syzbot] [bluetooth?] INFO: task hung in hci_conn_failed Date: Wed, 31 Jan 2024 07:22:15 +0800 Message-Id: <20240130232215.1497-1-hdanton@sina.com> In-Reply-To: <00000000000082e8ba06102ba5f1@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 Tue, 30 Jan 2024 07:45:06 -0800 > 6 locks held by kworker/u5:5/5431: > #0: ffff888027f29538 ((wq_completion)hci5){+.+.}-{0:0}, at: process_one_work+0x789/0x15d0 kernel/workqueue.c:2608 > #1: ffffc90009bffd80 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work+0x7eb/0x15d0 kernel/workqueue.c:2609 > #2: ffff888079359060 (&hdev->req_lock){+.+.}-{3:3}, at: hci_cmd_sync_work+0x170/0x410 net/bluetooth/hci_sync.c:305 > #3: ffff888079358078 (&hdev->lock){+.+.}-{3:3}, at: hci_abort_conn_sync+0x150/0xb50 net/bluetooth/hci_sync.c:5337 > #4: ffffffff8ef238c8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_connect_cfm include/net/bluetooth/hci_core.h:1983 [inline] > #4: ffffffff8ef238c8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_failed+0x158/0x370 net/bluetooth/hci_conn.c:1289 > #5: ffffffff8d1b8438 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] > #5: ffffffff8d1b8438 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3ff/0x800 kernel/rcu/tree_exp.h:995 > 3 locks held by kworker/1:5/5500: > 3 locks held by kworker/0:8/5556: > 3 locks held by kworker/1:6/5586: > 3 locks held by kworker/1:7/5659: > 2 locks held by dhcpcd/20271: > #0: ffff88808e304130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1691 [inline] > #0: ffff88808e304130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2c/0xf50 net/packet/af_packet.c:3202 > #1: ffffffff8d1b8438 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] > #1: ffffffff8d1b8438 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3ff/0x800 kernel/rcu/tree_exp.h:995 With Boqun's patch, the failure of detecting mutex with runqueue lock held disappeared but RCU stalled more than two minutes as before.