[1/1] kernel/proc01: Whitelist /proc/pressure/*
diff mbox series

Message ID 20190128111437.1964-1-pvorel@suse.cz
State Accepted
Delegated to: Petr Vorel
Headers show
Series
  • [1/1] kernel/proc01: Whitelist /proc/pressure/*
Related show

Commit Message

Petr Vorel Jan. 28, 2019, 11:14 a.m. UTC
Kernel v4.20 added /proc/pressure/{cpu,io,memory}, when enabled
CONFIG_PSI ("Pressure stall information tracking").
When CONFIG_PSI_DEFAULT_DISABLED is also enabled (and psi=1 kernel
parameter is *not* set) these files are created, but not readable.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/kernel/fs/proc/proc01.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Cyril Hrubis Jan. 28, 2019, 1:06 p.m. UTC | #1
Hi!
Looks good, acked.
Petr Vorel Jan. 28, 2019, 1:42 p.m. UTC | #2
Hi Cyril,

> Hi!
> Looks good, acked.
Thanks! Pushed.

Kind regards,
Petr

Patch
diff mbox series

diff --git a/testcases/kernel/fs/proc/proc01.c b/testcases/kernel/fs/proc/proc01.c
index c886e7e85..d917591bf 100644
--- a/testcases/kernel/fs/proc/proc01.c
+++ b/testcases/kernel/fs/proc/proc01.c
@@ -111,6 +111,7 @@  static const struct mapping known_issues[] = {
 	{"read", "/proc/sys/vm/nr_hugepages", EOPNOTSUPP},
 	{"read", "/proc/sys/vm/nr_overcommit_hugepages", EOPNOTSUPP},
 	{"read", "/proc/sys/vm/nr_hugepages_mempolicy", EOPNOTSUPP},
+	{"read", "/proc/pressure/*", EOPNOTSUPP},
 	{"", "", 0}
 };