From nobody Wed Oct 1 21:24:18 2025 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (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 8972E15E90; Sun, 28 Sep 2025 08:33:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759048428; cv=none; b=tUq79yZ2JsQXVz2vp+IE9JdP8qx5x1sNELUR+kx1dkxhHUJjmJIuveQlBMnBGIqFjnTLKJRyvkvAqFoCJgGV/oPK9F6pDkAEUkezKbh8OcdeN3sZ89Ab/5d+P+YUkjfGu41q3SXyTeOd6zsvDB/rrvx/G0qL+/aPEBpwrhwQvrI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759048428; c=relaxed/simple; bh=ixQMit7a0/nj7nzdH68bHx6oe1/d1yJsQu12Fm5b8tA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=kI0pmtCn037Jc6RAdu05byHBp2xajWDzgU+PkI4HVpFKiy67FeHOVs9XF8v2y0vFkRWEPHaEtECN65IKivMEUTO4YV7m7fNhaPwgNbNNWMsWmVZuYMY7y3CgNU3tXukVYX0g8cJxbm8NmRJ9nCbCuPVZaFHDcWp7/EhPczN65f0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: d39fe29e9c4511f08b9f7d2eb6caa7cf-20250928 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.45,REQID:b22a91b0-9e64-46ce-8d93-51c5f657325c,IP:0,U RL:0,TC:0,Content:0,EDM:25,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:25 X-CID-META: VersionHash:6493067,CLOUDID:0ab789c6641fb716e83a61c97cd9b37f,BulkI D:nil,BulkQuantity:0,Recheck:0,SF:102|850,TC:nil,Content:0|50,EDM:5,IP:nil ,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES: 1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: d39fe29e9c4511f08b9f7d2eb6caa7cf-20250928 X-User: liqiang01@kylinos.cn Received: from localhost.localdomain [(10.44.16.150)] by mailgw.kylinos.cn (envelope-from ) (Generic MTA with TLSv1.3 TLS_AES_256_GCM_SHA384 256/256) with ESMTP id 1308976069; Sun, 28 Sep 2025 16:33:36 +0800 From: Li Qiang To: wim@linux-watchdog.org, linux@roeck-us.net Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Li Qiang Subject: [PATCH] via_wdt: fix critical boot hang due to unnamed resource allocation Date: Sun, 28 Sep 2025 16:33:32 +0800 Message-Id: <20250928083332.3035370-1-liqiang01@kylinos.cn> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The VIA watchdog driver uses allocate_resource() to reserve a MMIO region for the watchdog control register. However, the allocated resource was not given a name, which causes the kernel resource tree to contain an entry marked as "" under /proc/iomem on x86 platforms. During boot, this unnamed resource can lead to a critical hang because subsequent resource lookups and conflict checks fail to handle the invalid entry properly. Signed-off-by: Li Qiang Reviewed-by: Guenter Roeck --- drivers/watchdog/via_wdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/via_wdt.c b/drivers/watchdog/via_wdt.c index d647923d68fe..f55576392651 100644 --- a/drivers/watchdog/via_wdt.c +++ b/drivers/watchdog/via_wdt.c @@ -165,6 +165,7 @@ static int wdt_probe(struct pci_dev *pdev, dev_err(&pdev->dev, "cannot enable PCI device\n"); return -ENODEV; } + wdt_res.name =3D "via_wdt"; =20 /* * Allocate a MMIO region which contains watchdog control register --=20 2.25.1