lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251017023531.5616-1-Chloe_Chen@asmedia.com.tw>
Date: Fri, 17 Oct 2025 10:35:31 +0800
From: Szuying Chen <chensiying21@...il.com>
To: akpm@...ux-foundation.org,
	andriy.shevchenko@...ux.intel.com,
	dan.j.williams@...el.com,
	gourry@...rry.net,
	jhubbard@...dia.com,
	akinobu.mita@...il.com,
	sumanthk@...ux.ibm.com,
	peterz@...radead.org,
	huang.ying.caritas@...il.com,
	linux-kernel@...r.kernel.org
Cc: Andrew_Su@...edia.com.tw,
	Yd_Tseng@...edia.com.tw,
	Ed_Huang@...edia.com.tw,
	Cindy1_Hsu@...edia.com.tw,
	Jesse1_Chang@...edia.com.tw,
	Richard_Hsu@...edia.com.tw,
	Chloe_Chen@...edia.com.tw
Subject: [PATCH] kernel: resourse: Add conditional handling for ACPI device

To avoid address conflicts and related errors, specific checks for
the ACPI device "AMDIF031" should be bypassed.

Signed-off-by: Szuying Chen <Chloe_Chen@...edia.com.tw>
---
 kernel/resource.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/kernel/resource.c b/kernel/resource.c
index b9fa2a4ce089..9ffcd5bdb62e 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -177,6 +177,27 @@ static struct resource *alloc_resource(gfp_t flags)
 	return kzalloc(sizeof(struct resource), flags);
 }

+static int IgnoreResource(struct resource *tmp)
+{
+	char *pt, *name_sep;
+	char *name;
+
+	pt = kstrdup(tmp->name, GFP_KERNEL);
+	name_sep = pt;
+	if (!name_sep)
+		goto out;
+
+	name = strsep(&name_sep, ":");
+	if (strcmp(name, "AMDIF031") == 0) {
+		kfree(pt);
+		return 1;
+	}
+
+out:
+	kfree(pt);
+	return 0;
+}
+
 /* Return the conflict entry if you can't request it */
 static struct resource * __request_resource(struct resource *root, struct resource *new)
 {
@@ -202,6 +223,8 @@ static struct resource * __request_resource(struct resource *root, struct resour
 		p = &tmp->sibling;
 		if (tmp->end < start)
 			continue;
+		if (IgnoreResource(tmp))
+			continue;
 		return tmp;
 	}
 }
--
2.39.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ