* [LTP] [PATCH] crypto/af_alg07: Skip this case when not having sockfs_setattr
@ 2020-10-06 6:47 Yang Xu
2020-10-07 11:03 ` Jan Stancek
0 siblings, 1 reply; 2+ messages in thread
From: Yang Xu @ 2020-10-06 6:47 UTC (permalink / raw)
To: ltp
Since kernel 4.10-rc1 commit 86741ec25462 ("net: core: Add a UID field to struct sock."),
it introduced sockfs_setattr function. This test needs to use this function
to trigger this cve bug, so skip it if kernel < 4.10.
Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
---
testcases/kernel/crypto/af_alg07.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/kernel/crypto/af_alg07.c b/testcases/kernel/crypto/af_alg07.c
index 270197bb0..6ad86f4f3 100644
--- a/testcases/kernel/crypto/af_alg07.c
+++ b/testcases/kernel/crypto/af_alg07.c
@@ -109,6 +109,7 @@ static struct tst_test test = {
.test_all = run,
.setup = setup,
.cleanup = cleanup,
+ .min_kver = "4.10.0",
.taint_check = TST_TAINT_W | TST_TAINT_D,
.tags = (const struct tst_tag[]) {
{"linux-git", "9060cb719e61"},
--
2.23.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [LTP] [PATCH] crypto/af_alg07: Skip this case when not having sockfs_setattr
2020-10-06 6:47 [LTP] [PATCH] crypto/af_alg07: Skip this case when not having sockfs_setattr Yang Xu
@ 2020-10-07 11:03 ` Jan Stancek
0 siblings, 0 replies; 2+ messages in thread
From: Jan Stancek @ 2020-10-07 11:03 UTC (permalink / raw)
To: ltp
----- Original Message -----
> From: "Yang Xu" <xuyang2018.jy@cn.fujitsu.com>
> To: ltp@lists.linux.it
> Sent: Tuesday, 6 October, 2020 8:47:55 AM
> Subject: [LTP] [PATCH] crypto/af_alg07: Skip this case when not having sockfs_setattr
>
> Since kernel 4.10-rc1 commit 86741ec25462 ("net: core: Add a UID field to
> struct sock."),
> it introduced sockfs_setattr function. This test needs to use this function
> to trigger this cve bug, so skip it if kernel < 4.10.
>
> Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Pushed.
Thanks,
Jan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-10-07 11:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-06 6:47 [LTP] [PATCH] crypto/af_alg07: Skip this case when not having sockfs_setattr Yang Xu
2020-10-07 11:03 ` Jan Stancek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.