Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp326531lqo; Thu, 16 May 2024 07:28:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDEZqGhAIHAAwj+VDLqUIXPssYDrSsHRRiKXcc8L6hravqbHfFokn16eTIVlYNTP8azoTgx+QfJWx06QnL/vzXvVfwz/6BolVozcw9fQ== X-Google-Smtp-Source: AGHT+IEMr57soRfBJ9QdR8BnjNyaOqI01LljNgGxFWsuUPRakBBEWVaHIGjc1TddsjqQp/3GszUs X-Received: by 2002:a05:6214:3a83:b0:6a0:76d8:e79a with SMTP id 6a1803df08f44-6a168167b8emr231980446d6.19.1715869700046; Thu, 16 May 2024 07:28:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715869700; cv=pass; d=google.com; s=arc-20160816; b=EsI5Ok6K266CGClQ5hrRUWux7ELL3ntMW5d/r5eKP7KgvZo3E6TnGHGTSut36WNtot P9uKcCDO7ThxnoAj84NYl1S2f/iWNSJ/1Hyu44DsY1rmL9Se87oDzNw/Aoil+dh/cs5u CV255t5+MDs8Pv5qEWZXX0JyAnOqBTzNIrCrGzRRxfEuu50Q125zA09WWw9d2J0IBb65 M/dEjccxrhfnsO9x6bmuORldceT0VD5qhp6Ysup+j5RMe0MYIhhqnkVcjeKQis0QrWT2 cLWuO/8Iga4FxmsYC9wwmR6TZPApWSpR6YsV09QSnmKru1UzSqJoopsh150xpp+RtfwR 7vZg== 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=wmmYztW2Iw5bxp5j7qhn9JX2bTEWsx2TXoehoFjKOoU=; fh=ppZhcCZkR0niMATzqSPq1FOnrEbFbFztyeiR2aD9HII=; b=vjWAoFKq2w1dBWoMTiiwkMG/VGSQc5Z+F74CdGe5vul1QXm21+hOrFkqQREvAMyUqF IuMrrNRYQ9IH4ihDjyCwAWjhIj+q/v1Mq27o5QlmXRT93AAKABMMbYfpcn2gsROBhRF3 9o/spbdacaYLgiGY9TdmT3mDTDNV/l/RvHZ1YgvfwHeeCc2VaiTg8l0BUfibYX1Ld46O BC2q/IeNGXAmAYNUXFz5i/9WYZsXFHuNp8lj0cTW3346Dt6d3tU9ZHRX2B/bWy1a3R6T TP7FVnjJM3uUz3GFk2DPC8BktjyPuSTVLD0Bgp0xA4c0D4MWE9dOCohoAJ5inJUzwvTn +oXA==; 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-181171-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181171-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 6a1803df08f44-6a15f2ef05esi163347886d6.494.2024.05.16.07.28.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 07:28:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181171-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-181171-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181171-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 BE9411C20DE1 for ; Thu, 16 May 2024 14:28:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2D1F14A4F3; Thu, 16 May 2024 14:28:14 +0000 (UTC) Received: from mail115-69.sinamail.sina.com.cn (mail115-69.sinamail.sina.com.cn [218.30.115.69]) (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 5F1F6149DFB for ; Thu, 16 May 2024 14:28:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.115.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715869694; cv=none; b=GH5aRdpreBvu4PxyVNkM1fR8vEqnmmssvlqFiRXvzbFXrMfoPvMr+W9xSaZxzTitBqQpe9StikEk7MgtUgautEGybtHcqzqkgoOa1lWUrgdBiJTRlmxnutaUXuNBvA0WXVZgpwwaoZoH4yk5FKJbgPG+sOUhDOaSil2faFX/w/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715869694; c=relaxed/simple; bh=TDaEZybXqvpmUnjwTVX/eb2UV3Rfqn0IpKildOfcolo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=C0uaxObyJUpdHxmjFGOpJtAHJsZtlFxB36d7TogOdpgFU0dJKwzR/xqk1NWP2GFbGI3gVAMcA1iiRlZUaP02iNv30MEAmbq80FrGzYXX4ed0lhVErgCcNT/719VsnNcR53lBraOF4AcSEaY8Q4Q/akROqubc1/FNUGPVA7651Tk= 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.69 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.157]) by sina.com (10.75.12.45) with ESMTP id 664617ED00000A8D; Thu, 16 May 2024 22:28:00 +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: 10188231457764 X-SMAIL-UIID: 4EA501508203459DB2B96C4558590B53-20240516-222800-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [kernfs?] [usb?] WARNING in kernfs_get (5) Date: Thu, 16 May 2024 22:27:48 +0800 Message-Id: <20240516142748.3376-1-hdanton@sina.com> In-Reply-To: <0000000000007224f506186be18b@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, 14 May 2024 08:44:43 -0700 > syzbot has found a reproducer for the following issue on: > > HEAD commit: 26dd54d03cd9 Add linux-next specific files for 20240514 > git tree: linux-next > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14b06900980000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 26dd54d03cd9 --- l/drivers/base/firmware_loader/fallback.c +++ f/drivers/base/firmware_loader/fallback.c @@ -64,6 +64,7 @@ void kill_pending_fw_fallback_reqs(bool mutex_unlock(&fw_lock); } +static DEFINE_MUTEX(fw_load_sysfs_mutex); /** * fw_load_sysfs_fallback() - load a firmware via the sysfs fallback mechanism * @fw_sysfs: firmware sysfs information for the firmware to load @@ -82,6 +83,7 @@ static int fw_load_sysfs_fallback(struct fw_priv->is_paged_buf = true; dev_set_uevent_suppress(f_dev, true); + mutex_lock(&fw_load_sysfs_mutex); retval = device_add(f_dev); if (retval) { @@ -124,6 +126,7 @@ out: device_del(f_dev); err_put_dev: put_device(f_dev); + mutex_unlock(&fw_load_sysfs_mutex); return retval; } --