Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp297481rdb; Thu, 22 Feb 2024 04:17:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUdlgELN8jlDuPNds2xMUfmxJdQstGo3IUHmvZGKe7Kwevt0HoJP2Klc6VU5hda1+fvj7ljqj8fptwSJ9erNLjJU7FDU8rV+11GV/ZRIQ== X-Google-Smtp-Source: AGHT+IF541m6bTekovTQm8Yz5en0cvLuHak2hb/CdDFs6x4w/DQIvck1fW4IxoYqrwA/mivz217c X-Received: by 2002:a17:902:8348:b0:1d9:4e4c:23d2 with SMTP id z8-20020a170902834800b001d94e4c23d2mr17851451pln.44.1708604224739; Thu, 22 Feb 2024 04:17:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708604224; cv=pass; d=google.com; s=arc-20160816; b=O7OCdPjFHgxPgB/JhdCLZWyXoZOgb5RfuqB1pvKnIxolxPWJDqiMiG1EKKcZDWEzu8 XRGhK2OE5xwJqbQIqAmjfNydIwmE/zaVGfOiEdM8rj9W6DA6QatgkrNCfgXIa5v3EU4n iVkr0If+ft8z9dI6ZITOjwYIsQ3gcgazi+lLzN0iFJwl4O8q5X4cvFtDO+73E1OF4AmB KzNsmjFR8MPGKg7JzalyvYXuE2id2jFSy4ZnlCGJYaDuKShCvADLV8J8NdnRyXeHVX/W UN+Y1ICAh5Bp+dN5CBEBZLn6JN1ZFA9bpv7YYUbrdqXD+z0+tq7OViW6/1vehJ45CgCp POFg== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=f6+CfNubIQftLwPiTPTwpitvmZwNDvncUsb9ZrTSH7I=; fh=KfrJYLKa91jhGZvOg1qzyI/Wp1ddVK9eo1/0kOYv/Fc=; b=lLfHiEXhFt8BXYAKssIcJg6o1Q0zg+eEOntX5Km/Q+iY4qQyMLE7ctDOdQVk4ZWSMv P0E9hidK8JBdCevjXEriLwehL+P3J18pxL7Zd8J4heV90SOT4ElPz2gPPmrbPl0fBLyc PQAKgy/ZGoVh2RZubHE0AQki3tD26AfrsQIVIuIVlw7azZLG+0gJk3eV2zw7SBrTQF3b C1hUckTHtXJ4YVfS46wweZ1J06MVAlysWnsAnoKCctMmDfLKl56N3hqF1cyg5fC/qNZ+ cL0F3/I8LjmbeeipCmoY4QT7UJcPvSYNk6gTS9RWUK7+wrfuvmDAltqYEYX66CgDu7P5 4BjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-76492-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p21-20020a1709028a9500b001dbedc93609si7569956plo.250.2024.02.22.04.17.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 04:17:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76492-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 (google.com: domain of linux-kernel+bounces-76492-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl 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 A7DD8B232EF for ; Thu, 22 Feb 2024 12:16:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2D38608ED; Thu, 22 Feb 2024 12:16:09 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 45EBD5FB91; Thu, 22 Feb 2024 12:16:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708604169; cv=none; b=ZpcSmYhdyfZah99LfQsh7pLuhNQL0Dc5K4fFdFCha+PXYu4hd3vdjKFoYC4iWuzQ6bHnVLh5/RhMZmPgoszcZi16Cw9dcz1hhGaLAq6vM52wR3mMpBmOglwGopFJXSNJC09SijQmbqMlwogdbDxYR57E5Ui5qWTpVyPFs048wbM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708604169; c=relaxed/simple; bh=EzBOrHhIZy8QxnhzaZPVIu+UmwRn1mRi9keUxv87bxo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=H4FgCx3qa5bjiQz+lCEBY5yHGlCcjceNrZU5c5H89WHHwZz4eJGkYlqw/FX9sJHNA1IWnOcoa0vBswa45ENi5dJFzibidG98CySFDd1s6pYiSq16kPbhP7/1/JJqM1HgXMvdi+EqldCMNlUFN/P40W0sHtkkTqfsriDW+Pl3okU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 893ECC433F1; Thu, 22 Feb 2024 12:16:07 +0000 (UTC) Message-ID: <01046eb8-a351-4599-96dc-847896fc0785@xs4all.nl> Date: Thu, 22 Feb 2024 13:16:05 +0100 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: [PATCH] media/cec/core: fix task hung in cec_claim_log_addrs Content-Language: en-US, nl To: Hillf Danton Cc: Edward Adam Davis , syzbot+116b65a23bc791ae49a6@syzkaller.appspotmail.com, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, mchehab@kernel.org, syzkaller-bugs@googlegroups.com References: <0000000000006d96200611de3986@google.com> <20240222104320.236-1-hdanton@sina.com> From: Hans Verkuil In-Reply-To: <20240222104320.236-1-hdanton@sina.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 22/02/2024 11:43, Hillf Danton wrote: > On Wed, 21 Feb 2024 15:38:47 +0100 Hans Verkuil >> On 21/02/2024 15:20, Edward Adam Davis wrote: >>> After unlocking adap->lock in cec_claim_log_addrs(), cec_claim_log_addrs() may >>> re-enter, causing this issue to occur. >> >> But if it is called again, then it should hit this at the start of the function: >> >> if (WARN_ON(adap->is_configuring || adap->is_configured)) >> return; >> >> I'm still not sure what causes the KASAN hung task since I cannot seem to reproduce >> it, and because it is hard for me to find enough time to dig into this. > > Likely because of the window for initializing completion more than once [1]. > > [1] https://lore.kernel.org/lkml/00000000000054a54e0611f1bc01@google.com/ I have been able to reproduce this by adding msleeps in several places. When I have some more time I will start digging into this. Regards, Hans