Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp255731rdb; Thu, 22 Feb 2024 02:44:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWiE0Gbh3GcOXSL1lWYYhWC34P079iZ2EysjvpHM3NU9u++mFSpdeVH4PbvuJfpdzAhYP+ff3iP0XtGRRhTo3b8FaLKZnXoD8wj511jZg== X-Google-Smtp-Source: AGHT+IGV1N1u3XnIScOnsC819XZP/LX3bbF7Kj0i+9AmBTbw2FbNw7EMfeEReKN4gbCEV+7lXLJt X-Received: by 2002:aa7:90c6:0:b0:6e1:44ec:8e9e with SMTP id k6-20020aa790c6000000b006e144ec8e9emr14195696pfk.21.1708598661826; Thu, 22 Feb 2024 02:44:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708598661; cv=pass; d=google.com; s=arc-20160816; b=I5mLXlhiYoQ3CUgKDw3WoKNt/PGOS/yRbirVgmZe1u1t7/MhxzvbU2/l5kPnALXPgz rGrz4wVUwmoBZ5RP4W3SKfSjD/uDJJ1lU5Zqh5hURRmUhDok+SLpoU1fivDeM56CU3dU zv90VP63/kK1CM67HkWLEWTdIk2Ph5ryrNgZkq2YEGZqTgMMHcXFaPh76w2kNP+bLX6q yrF+jCnGWQdmkW2A/LX4CbndeFIdN5uHF4VcqNUjst/ww2C6Ds78rkD7PKIp4oCXexiU hYmOboOfcXUEufmNzGsWHwIGpw5IfxUOeRb/5U5UgyNEDJpfC7xzeWLOtkQY6eBi1QL+ RaXg== 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=kC2mmw+UtAFBEuzlz0SrdxXyMxWQFnGkIUeKx22r05c=; fh=gOgdDEiEhugCSzmRXVM/aCf0lcrq2IaREwQBC0Ot73o=; b=tszhOyXAEgMawCm5/4jqHFjysDmbuHjH9N0zyJqoaZW96mP21YNbqsp/3gTtuijBwk 6QY0I8k6SpTnH+s7PZe2dt/B2hWGjJ4qC1nTOrwhlComGRCdcN2z5Q75Ynle3HCceDbS Mv9ZAUz7KtkohGGS55mzacaSzf+ASUx6Hge/zJ1nrXA/nbD24ynkDh2IS2I/l6ZMoULS s+o9OsJI0fWigpTsXO1NBi7ilKjl12R3TRu8ZTqDv38XSXZUgFhQV+EmoLszeLHGnhuZ Hzm0fpCGDI1Nj+piLCu/Zdxszb8qXx2OmHB85/MWZTOujuCLRCfEwFyGuYd94ihin/Ew aEhA==; 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-76347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76347-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z16-20020a62d110000000b006e4cf83384asi680702pfg.198.2024.02.22.02.44.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 02:44:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-76347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76347-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 83E71283C34 for ; Thu, 22 Feb 2024 10:44:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F5DA3F9F3; Thu, 22 Feb 2024 10:44:15 +0000 (UTC) Received: from mail114-241.sinamail.sina.com.cn (mail114-241.sinamail.sina.com.cn [218.30.114.241]) (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 DA4CC3A8C9 for ; Thu, 22 Feb 2024 10:44:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.114.241 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708598655; cv=none; b=KkevFSCii1bfpXCXOW6sUbRtYQz3wMqAgnn/HwyMEpwOzBB3eeB7zDY4MDog437wgdC/BpcHlcJX6x2FTxdLM7if69qNvUGACItnNgHc0Tx4gGqAHj0QW+Hr93/nLT6JG1qwIqwOwF7qVKT9c6tgPf3FdZv8fAldq7IVxXysygI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708598655; c=relaxed/simple; bh=D8stRfjDFDtGq0BLxT2aUs3rCsJ4kenl1icgW9FiIUA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=F8Zveto9wyp+syFwjpSd/KoIbEbo/WziMG4Lu0weM+Qu14pXUxVIv/a8gluibx2P3iNeGzbL3XO9THqFyHSHWhRYMVgpxP+1eOeR9gubYNMJwbhsnIIAnbRkCfYg4EDuYBGP/dvXRjhwI/3IYS5qy4VPFbLtoB+Odckdoel0rXk= 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.114.241 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.71.174]) by sina.com (172.16.235.24) with ESMTP id 65D72550000063E8; Thu, 22 Feb 2024 18:43:30 +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: 89341145089281 X-SMAIL-UIID: D5DE81AAF69E4F36B1D97EC3AF5DB199-20240222-184330-1 From: Hillf Danton To: Hans Verkuil 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 Subject: Re: [PATCH] media/cec/core: fix task hung in cec_claim_log_addrs Date: Thu, 22 Feb 2024 18:43:20 +0800 Message-Id: <20240222104320.236-1-hdanton@sina.com> In-Reply-To: <4fa62e4f-9768-4434-8f7b-24aa3b2a3490@xs4all.nl> References: <0000000000006d96200611de3986@google.com> 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 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/