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>] [day] [month] [year] [list]
Message-ID: <EC97073D4233B88A+20251104093135.29259-1-luoqiu@kylinsec.com.cn>
Date: Tue,  4 Nov 2025 17:31:35 +0800
From: Luo Qiu <luoqiu@...insec.com.cn>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] logic_pio: use pr_err_ratelimited() in find_io_range()

The pr_err() in find_io_range() can be triggered repeatedly when
invalid PIO tokens are encountered, potentially flooding the kernel
log with duplicate error messages. This is particularly problematic
in scenarios where drivers may repeatedly attempt to access invalid
PIO ranges.

Signed-off-by: Luo Qiu <luoqiu@...insec.com.cn>
---
 lib/logic_pio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/logic_pio.c b/lib/logic_pio.c
index e29496a38d06..d8f583246a1b 100644
--- a/lib/logic_pio.c
+++ b/lib/logic_pio.c
@@ -153,7 +153,7 @@ static struct logic_pio_hwaddr *find_io_range(unsigned long pio)
 	rcu_read_unlock();
 
 	if (!found_range)
-		pr_err("PIO entry token 0x%lx invalid\n", pio);
+		pr_err_ratelimited("PIO entry token 0x%lx invalid\n", pio);
 
 	return found_range;
 }
-- 
2.51.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ