* [LTP] [PATCH] proc01: whitelist biba attr files returning EINVAL
@ 2026-04-04 1:40 Ming Wang
2026-04-08 10:33 ` Cyril Hrubis
0 siblings, 1 reply; 3+ messages in thread
From: Ming Wang @ 2026-04-04 1:40 UTC (permalink / raw)
To: ltp; +Cc: gaojuxin, Ming Wang
proc01 already treats several attr files under /proc/self/attr and
/proc/self/task/*/attr as known exceptions that may return EINVAL
on read.
On systems exposing biba attr files, reads from
/proc/self/attr/biba/* and /proc/self/task/*/attr/biba/* also
return EINVAL, which makes proc01 report false failures.
Add both path patterns to known_issues[] so the testcase keeps
reporting real regressions while ignoring this expected behavior.
Signed-off-by: Ming Wang <wangming01@loongson.cn>
---
testcases/kernel/fs/proc/proc01.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testcases/kernel/fs/proc/proc01.c b/testcases/kernel/fs/proc/proc01.c
index c90e509a3243..dadfb240fd24 100644
--- a/testcases/kernel/fs/proc/proc01.c
+++ b/testcases/kernel/fs/proc/proc01.c
@@ -100,7 +100,9 @@ static const struct mapping known_issues[] = {
{"read", "/proc/self/attr/selinux/*", EINVAL},
{"read", "/proc/self/attr/smack/*", EINVAL},
{"read", "/proc/self/attr/apparmor/*", EINVAL},
+ {"read", "/proc/self/attr/biba/*", EINVAL},
{"read", "/proc/self/task/[0-9]*/attr/*", EINVAL},
+ {"read", "/proc/self/task/[0-9]*/attr/biba/*", EINVAL},
{"read", "/proc/self/task/[0-9]*/attr/smack/*", EINVAL},
{"read", "/proc/self/task/[0-9]*/attr/selinux/*", EINVAL},
{"read", "/proc/self/task/[0-9]*/attr/apparmor/*", EINVAL},
--
2.43.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [LTP] [PATCH] proc01: whitelist biba attr files returning EINVAL
@ 2026-04-04 1:49 Ming Wang
0 siblings, 0 replies; 3+ messages in thread
From: Ming Wang @ 2026-04-04 1:49 UTC (permalink / raw)
To: ltp; +Cc: Ming Wang
proc01 already treats several attr files under /proc/self/attr and
/proc/self/task/*/attr as known exceptions that may return EINVAL
on read.
On systems exposing biba attr files, reads from
/proc/self/attr/biba/* and /proc/self/task/*/attr/biba/* also
return EINVAL, which makes proc01 report false failures.
Add both path patterns to known_issues[] so the testcase keeps
reporting real regressions while ignoring this expected behavior.
Signed-off-by: Ming Wang <wangming01@loongson.cn>
---
testcases/kernel/fs/proc/proc01.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testcases/kernel/fs/proc/proc01.c b/testcases/kernel/fs/proc/proc01.c
index c90e509a3243..dadfb240fd24 100644
--- a/testcases/kernel/fs/proc/proc01.c
+++ b/testcases/kernel/fs/proc/proc01.c
@@ -100,7 +100,9 @@ static const struct mapping known_issues[] = {
{"read", "/proc/self/attr/selinux/*", EINVAL},
{"read", "/proc/self/attr/smack/*", EINVAL},
{"read", "/proc/self/attr/apparmor/*", EINVAL},
+ {"read", "/proc/self/attr/biba/*", EINVAL},
{"read", "/proc/self/task/[0-9]*/attr/*", EINVAL},
+ {"read", "/proc/self/task/[0-9]*/attr/biba/*", EINVAL},
{"read", "/proc/self/task/[0-9]*/attr/smack/*", EINVAL},
{"read", "/proc/self/task/[0-9]*/attr/selinux/*", EINVAL},
{"read", "/proc/self/task/[0-9]*/attr/apparmor/*", EINVAL},
--
2.43.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [LTP] [PATCH] proc01: whitelist biba attr files returning EINVAL
2026-04-04 1:40 [LTP] [PATCH] proc01: whitelist biba attr files returning EINVAL Ming Wang
@ 2026-04-08 10:33 ` Cyril Hrubis
0 siblings, 0 replies; 3+ messages in thread
From: Cyril Hrubis @ 2026-04-08 10:33 UTC (permalink / raw)
To: Ming Wang; +Cc: gaojuxin, ltp
Hi!
> proc01 already treats several attr files under /proc/self/attr and
> /proc/self/task/*/attr as known exceptions that may return EINVAL
> on read.
>
> On systems exposing biba attr files, reads from
> /proc/self/attr/biba/* and /proc/self/task/*/attr/biba/* also
> return EINVAL, which makes proc01 report false failures.
What is biba? There does not seem to be any mention of string 'biba' in
upstream kernel. As a rule we do not add any fixes for out-of-tree
patches to LTP.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-04-08 10:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-04 1:40 [LTP] [PATCH] proc01: whitelist biba attr files returning EINVAL Ming Wang
2026-04-08 10:33 ` Cyril Hrubis
-- strict thread matches above, loose matches on Subject: below --
2026-04-04 1:49 Ming Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox