Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2342394lqo; Mon, 13 May 2024 15:54:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbHEzH/zB3MKt85AjclgI9EMPVzLQySDHL56kQ0Ys6NNyrfEa0ZgYGL7HVqpyfformeGYww7bfL7IxrnqDnax6W/ifq2YfOpVnrd97Og== X-Google-Smtp-Source: AGHT+IEERXldWhCXXJH+HbMJSAdBFCWuHFKC4tMTXUOBsKhqJEky5bfMvN/gYl9mqidob/kSQpro X-Received: by 2002:a17:90a:6f85:b0:2aa:b57c:b178 with SMTP id 98e67ed59e1d1-2b6ccedd2f8mr9825938a91.34.1715640884626; Mon, 13 May 2024 15:54:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715640884; cv=pass; d=google.com; s=arc-20160816; b=xk8U5uuuaZDz0Jmu5FeG8C+xkB1ueqCBp+zrl7A6xY1JR0gseBFavRs7P+LkW/pmB2 rLGdiXhygetrowF421sDAuGslVQZcOWfrXVXjXTjtHY2CInmV7pqijyyH4fWSMVDQmtW 0ccvkdXNFxCID92/Fie+WDNKvudkHD9rRLsYyu/Q99AjMmxlUYQJR1oEbMf4cvzgmt24 U8LM4FSH5H+SWj5mT58GH7bMOSo3xgZi8Z7PpbLHvNHm2tMs1d39jjo8HUKOdf6HHNiM pF5DK3BM4yPmdhSV7NS2LH9JCLy1SmYRMWPak3n6w4fpR0dPAmEKsBWytgfg4B2faJ1z mSuQ== 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=utjBp03HTeVzlvD4dZEjyzCkQ+gKlfHdcOoiQ+23rcQ=; fh=8FyV5T7srkdeUbKVf13wPVxHWKbzAe52lWj0ZXbhy/I=; b=si/69hbMhj0tiqXJixc9eLAAtnIPDLSWognTKijZPXOgY/a2xNpTjI9R/F/je/iK8A GauVILno+axgyo0Na8uYYsejKS7SEAp6lXRiVJgry8+zJFmgwvzmQAkfQ1EmicafLEGb ZddGz2bEo/wy1y3SWH3+M/z8alJk0Zxz8OJv7v7kJmkio+7OPkCzJT8u5Q0DnT/3675c Ys+lRLxwL0uNlsxuY3JuhnMFKx6Q7FtAT6OsYV5X7Faxw1StC7EkN1HrIvQIXRdGfZDb g3ARYaHa1fPCKlpCmM3TdDPPDHQa2JRMytjhb7EC5uf16+EcEWIkLaMzd4k86ksFCH6p G9EA==; 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-178154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178154-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628a5d46dsi12573660a91.63.2024.05.13.15.54.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 15:54:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-178154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178154-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 1B65DB22BCD for ; Mon, 13 May 2024 22:54:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A8A684E02; Mon, 13 May 2024 22:54:30 +0000 (UTC) Received: from mail115-95.sinamail.sina.com.cn (mail115-95.sinamail.sina.com.cn [218.30.115.95]) (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 F3D1C84D3E for ; Mon, 13 May 2024 22:54:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.115.95 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715640869; cv=none; b=R++vPpUrZDUs8ppxRMn99OBsqf5kaO3K4gqeEZppEiCx74OL8Czb2jQQwkDtY3dFsCeUAa0pdyxQLpA2HFWKgdAxK9Bgx6zLZkTHkcRn+yw9wF3QLhyLkIlOj6ZALYda78/NrxHgKlZwvmab/fdo1upWsndqF7wel7Q4GGFFCnY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715640869; c=relaxed/simple; bh=XAh+3+CTGGVkYISHkmm739KJkfOQWMn8Cnd1CdYSj9g=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=I8I4o5HgM08m9uyUWQnDYpLNsry3VLRQVgBJETO8XHqn/EUcBGpMzv4Ii+lmMYC4uzY2/Rt7AGc7NYM/tWqTK6oaNSyuC90uTF5LpjymljBcOtVqQ3uP1d8nncoYPOvLfmR14mpQFvsZyISDbmbi4AVk87TSyxQHkOhgjox3UZo= 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.95 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.50.104]) by sina.com (172.16.235.24) with ESMTP id 66429A1B00003C20; Mon, 14 May 2024 06:54:21 +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: 97074945089598 X-SMAIL-UIID: 552A54332FBE4E46BB076C39E75AF36F-20240514-065421-1 From: Hillf Danton To: Sam Sun Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, axboe@kernel.dk, Tetsuo Handa , syzkaller-bugs@googlegroups.com, xrivendell7@gmail.com Subject: Re: [Linux kernel bug] INFO: task hung in blk_mq_get_tag Date: Tue, 14 May 2024 06:54:09 +0800 Message-Id: <20240513225409.3025-1-hdanton@sina.com> In-Reply-To: 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 Mon, 13 May 2024 20:57:44 +0800 Sam Sun > > I am happy to help testing patches. As Thanks. > for repro, I have a C repro available, but it is too long so that I > attached it to the first email. Should I just paste repro with bug > report? Yes. > I applied this patch and tried using the C repro, but it still crashed > with the same task hang kernel dump log. Oh low-hanging pear is sour, and try again seeing if there is missing wakeup due to wake batch. --- x/lib/sbitmap.c +++ y/lib/sbitmap.c @@ -579,6 +579,8 @@ void sbitmap_queue_wake_up(struct sbitma unsigned int wake_batch = READ_ONCE(sbq->wake_batch); unsigned int wakeups; + __sbitmap_queue_wake_up(sbq, nr); + if (!atomic_read(&sbq->ws_active)) return; --