Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2327578rdb; Wed, 21 Feb 2024 04:30:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX5H154a1a6TxdB3lG6/4w+UCVUVJwHR33kjUiW0Th8+KI4D8yw7dOiKHrsB/0a/c7V9NlwKbu3iTIVhYNAjrHZcj2qA1SW6S8CEUj8FA== X-Google-Smtp-Source: AGHT+IGVdXF2kYxEnPUdLeBUIqxnQrmV8l//1egZ9HU7bDjwGKbMwIyyI6fH/auRTXaLTEzgQPEw X-Received: by 2002:a5b:b03:0:b0:dc7:1a9a:11da with SMTP id z3-20020a5b0b03000000b00dc71a9a11damr18865752ybp.38.1708518611372; Wed, 21 Feb 2024 04:30:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708518611; cv=pass; d=google.com; s=arc-20160816; b=brm7RUijpS2hBitmZQjp4p/hKORgloU1Ny32rg2646UuZ59IeP760GD5AHWd+24kNZ eL8q0k7+weBUTa1gmlGAaC/py9mCirA91CAkZSckzkHjy0eavXRFsKYezCFu5qs+lw2y gcbCW8V3fMS/LweGUPRdTXWdCe9kuUwe8wcm3umHpZNzoZqpzD/ZzeFurUzltZGvKZvW zbIzplkuvl/JLhUfEoXjXbyQaAHjUFVJIUHuMoB56I+V425ug05j6NAYsLrhuPt5TVkO AHVYr0bZQujqDYFV+vI5Po/jP70sMqzBnJ0VvCdTFFa3JfVGGb3f7TejmoRU3QyJWcHC YKmQ== 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=53XISVJbMBklHBoZc8snj/nr0TB+f8r5rVKtC2Oc1zM=; fh=LEnrXDlxlJe4042xR0wwZ9pTuQpXH19IZXUj18VPRT0=; b=0b4MXDLpgL+9wX7Bofp49sSZKI7a5fwlZBVZqay6SURtgMUXsJybco0Em6w+pZ5/2c G3X43mMCR411G/kstkwD3LZrrYY7AmnqmPC6aKOJEDmWXvbd6Wj1Y8/ZcxkG+7FQActX OB+PN645geqNmA2iJF4J5oz7whzMecHGorDwNJ7mb+ELWTTO/Ru4p7qe+q+VpB90hg+F nZlRBNHyC6+n2dDRZ/jQVgRVOZJ/IIc9JsIA+scBTsTka7kqZ4Q84nBa+b2m5X16g3fH XA6UA0EBkZmlHUw9jgL5hoy28TbrGKUCsUDUV/XaD3dsWT7Wx7DxngpMuqUiMZ7A7S03 RzFQ==; 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-74697-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74697-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v10-20020a05620a440a00b007878c8e1b6fsi635140qkp.154.2024.02.21.04.30.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 04:30:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74697-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-74697-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74697-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1BBBA1C21AD5 for ; Wed, 21 Feb 2024 12:30:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C23B654F94; Wed, 21 Feb 2024 12:30:05 +0000 (UTC) Received: from mail115-118.sinamail.sina.com.cn (mail115-118.sinamail.sina.com.cn [218.30.115.118]) (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 5D50D4F88A for ; Wed, 21 Feb 2024 12:29:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.115.118 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708518605; cv=none; b=H+uJn1WL+DOQHJ551rVx6SvSowz2IGdMl4n5+7yHyYnaPoukOK0tR0ekoViCYtYzDZKw/Abz8hZEUB9mO9xjO9Ewy9oMnPxsrgro98H7yOaNAOFHa+4P85h4RS+/MJ/zIsdyTNuS7OWlKKPo5mVcIJbqcrJ49MfIuPpdF2FjCGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708518605; c=relaxed/simple; bh=/rve7Yh6o6FE1Zdw5ssfvFHBaR5OWILMvPZl5mSKeUo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gB71+Qw6gJA0h9TFKywlg2cIz9vFLI5gJ3RvgDOxp1AkBFD0+sz1u+nmvj3XWkxA3p6oiDNBCGT6PmFXkZ3A0FUUy6Jj8RqUt7V4M0YhEpUdBUb6wdf1fxH7UiSnOpurT9OWixlJca8VNJSeZ6Ace9OgP0+HoF0NBAAuCPR4n/w= 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.118 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)([116.24.10.19]) by sina.com (172.16.235.25) with ESMTP id 65D5EC980000067A; Wed, 21 Feb 2024 20:29:14 +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: 81409134210322 X-SMAIL-UIID: 73EBF547B8C24724A602B099B8740D11-20240221-202914-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [media?] INFO: task hung in cec_claim_log_addrs Date: Wed, 21 Feb 2024 20:29:04 +0800 Message-Id: <20240221122904.1393-1-hdanton@sina.com> In-Reply-To: <0000000000006d96200611de3986@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, 20 Feb 2024 22:13:24 -0800 > HEAD commit: 83d49ede4b18 Merge branch 'for-next/core' into for-kernelci > git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11ddc734180000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci --- x/drivers/media/cec/core/cec-adap.c +++ y/drivers/media/cec/core/cec-adap.c @@ -1575,7 +1575,6 @@ unconfigure: cec_adap_unconfigure(adap); adap->is_configuring = false; adap->must_reconfigure = false; - adap->kthread_config = NULL; complete(&adap->config_completion); mutex_unlock(&adap->lock); return 0; @@ -1592,6 +1591,8 @@ static void cec_claim_log_addrs(struct c if (WARN_ON(adap->is_configuring || adap->is_configured)) return; + if (adap->kthread_config) + return; init_completion(&adap->config_completion); /* Ready to kick off the thread */ @@ -1605,6 +1606,7 @@ static void cec_claim_log_addrs(struct c mutex_unlock(&adap->lock); wait_for_completion(&adap->config_completion); mutex_lock(&adap->lock); + adap->kthread_config = NULL; } } --