Received: by 2002:a05:7208:13c3:b0:82:bbfa:f723 with SMTP id r3csp1532283rbe; Wed, 15 May 2024 06:12:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3aOLNwBKiyd6WNABHvC4gorFaKDcExmpiQOlnzkV1jIHi0mzVF5dFSziWbTtb141xEKyLOItHAfqi8Evy8vjbMLtIQVWV6NErEyM8Dg== X-Google-Smtp-Source: AGHT+IG6XEA0HqMLtWXAKxLqzfzSuhruPPGwib2EQmwKrOeMnSM4+V//2oMrkbJdKKYygJE+59xf X-Received: by 2002:a50:a691:0:b0:572:5bc3:3871 with SMTP id 4fb4d7f45d1cf-5734d5b9089mr9480668a12.10.1715778759991; Wed, 15 May 2024 06:12:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715778759; cv=pass; d=google.com; s=arc-20160816; b=P+LV6mm5mlj5aXvVVtW9uMc5MQy849UzU8nAjUCVObdrfzy0TjcL/g0zuXsxAkP0W4 IzsX1Mf8Y170tl/c2cCb31K60mZqGkUmOiNkfAUQwyunsyuv7RuQIcNAQHSyrVvpbZ8H 1L+c4U8KnEYd3A/qSwPGowL85uRL/cDH1WYz9QjaxMq/kQIKjnLn8v+qFJDZNja/sOVL X8K4U08NevDLFnGWbC/xlwFPs7XYOIGRzhwtD0RA5km0N2GZwWR1Z96seFExEQ3fdjav jmcWblfIBk3wPGlUBT1+/Ezsz6tM4um7se6tKVZWe1LDMOOq2fY/wUqPo+EKte0cysM1 ZUgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=qJag3rzOyg7PZ3S9rhJQnO+ooNNSDVxsMAkng/lw/Sk=; fh=+Nmo6j2UTfRB0lOj8amRBrgWgA8xICIrwGforVtQdF4=; b=fmtnigiwfh0grmAJiF4aqmwjjWbeH2JQwWlInSXJojoTDM01Qhq4H27NRPTz3je7Yo IOPks7I+2DxvUmlRWwE6mSiwAe4B9oCjSMF6YRl4NT3mEHz2KgYNG+0rJvIyyjZ3wpXQ 9nW0zWpCcvbwXLh1c010akMK0QQ80ZXEKLussuSYqIitlu2zx0NGcxvuFLQVBYncTJ83 Pmj75Gt+9aodPiYGFVd2j8qkciNKaOXnTB5uxthxS/rQMqIj3uaQ4qNu53KSPlGWYVmy r/knhhG4KJSLuzcbf/dJApRfHBVyrY+OfxFl1GYKEDA54cRNMsNknMKr5aSBeWtAe0Kj aSOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=i-love.sakura.ne.jp); spf=pass (google.com: domain of linux-kernel+bounces-179883-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179883-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 4fb4d7f45d1cf-5733beac56bsi7363195a12.52.2024.05.15.06.12.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 06:12:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179883-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=i-love.sakura.ne.jp); spf=pass (google.com: domain of linux-kernel+bounces-179883-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179883-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 9AE751F24406 for ; Wed, 15 May 2024 13:12:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BAF2127E02; Wed, 15 May 2024 13:12:19 +0000 (UTC) Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) (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 04BA78625C; Wed, 15 May 2024 13:12:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.181.97.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715778738; cv=none; b=ofzmteHwoA2fEINAdKUD/AuneCw6P7WSsAExpTDhBDtQGsff7ECIf3/ZtNdG+oZBwVszjuvFh2+iTtyntnHMe2/CgEGinAtlQt+QnwG8omstr94sIeSNSqS9qMWeuH+PyUHAkvG0X4kSQLbUrHlIYnzfpgkzhHEP9qA/XDoz2qc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715778738; c=relaxed/simple; bh=/0KXK6PmkZcde0ubOE7xzi/16BLUawUejjdCW6lX7S4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=EIZs/joK4wZXmTCOpt6a/uYYIX4WONor5vvYpUycmJET4+xLMlpdWQZ+RtZcqpLeNh/p/VRkSvGUOTaMohy2veO3bfOe1DDr22YGTbUJyOKX6mW3MZt90ohQLScSuK8V96FvTNX2Yicqo8xOolUKEgA7wSq93RwGzzMLuQQLK+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=I-love.SAKURA.ne.jp; spf=pass smtp.mailfrom=I-love.SAKURA.ne.jp; arc=none smtp.client-ip=202.181.97.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=I-love.SAKURA.ne.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=I-love.SAKURA.ne.jp Received: from fsav113.sakura.ne.jp (fsav113.sakura.ne.jp [27.133.134.240]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 44FDC0M4081731; Wed, 15 May 2024 22:12:00 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav113.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav113.sakura.ne.jp); Wed, 15 May 2024 22:12:00 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav113.sakura.ne.jp) Received: from [192.168.1.6] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 44FDC0JS081728 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Wed, 15 May 2024 22:12:00 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: <8aa947c2-5373-4efd-83db-6a5f75069317@I-love.SAKURA.ne.jp> Date: Wed, 15 May 2024 22:12:00 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [Linux kernel bug] INFO: task hung in blk_mq_get_tag To: Sam Sun Cc: Hillf Danton , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, axboe@kernel.dk, syzkaller-bugs@googlegroups.com, xrivendell7@gmail.com References: <20240514103742.3137-1-hdanton@sina.com> Content-Language: en-US From: Tetsuo Handa In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2024/05/15 21:46, Sam Sun wrote: >> What happens if you disable >> >> sysfd = write(sysfd, input, hash - input + 1); >> >> line (i.e. stop updating sg_allow_dio value) in the reproducer? >> > > I tried to change the value of /sys/module/sg/parameters/allow_dio to > 0 and remove write() call, both still triggers task hang report and > kernel panic. I think this write is not the call crashing the kernel. > Kernel panic by general protection fault upon calling trigger_all_cpu_backtrace() is a different bug. Please be sure to keep /proc/sys/kernel/hung_task_all_cpu_backtrace 0 while investigating this hung task problem. This hung task problem happens without touching /sys/module/sg/parameters/allow_dio , doesn't it? scsi_rescan_device() is reliably printed when this hung task problem happens, isn't it? Then, it is strange that scsi_rescan_device() is called despite the reproducer is almost no-op. Maybe you can trigger scsi_rescan_device() without using the reproducer. Can you simplify steps to reproduce? For example, doing a lot of write().