[LTP] [PATCH 2/2] read_all_sys: skip debugfs

Jan Stancek jstancek@redhat.com
Mon Nov 4 18:09:08 CET 2019


debugfs is meant for debugging, it exposes also device registers
and can pretty much do anything:
  https://lore.kernel.org/linux-arm-kernel/1507592549.3785589.1570404050459.JavaMail.zimbra@redhat.com/
  https://lore.kernel.org/stable/2029139028.10333037.1572874551626.JavaMail.zimbra@redhat.com/

Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 testcases/kernel/fs/read_all/read_all.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/fs/read_all/read_all.c b/testcases/kernel/fs/read_all/read_all.c
index cef55e20d671..8e83009a5d4d 100644
--- a/testcases/kernel/fs/read_all/read_all.c
+++ b/testcases/kernel/fs/read_all/read_all.c
@@ -83,6 +83,7 @@ static char *drop_privs;
 
 static char *blacklist[] = {
 	"/sys/power/wakeup_count",
+	"/sys/kernel/debug/*",
 };
 static unsigned int blacklist_sz = ARRAY_SIZE(blacklist);
 
-- 
1.8.3.1



More information about the ltp mailing list