crypto/af_alg07: Skip this case when not having sockfs_setattr
PATCH 1/1 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.
--- testcases/kernel/crypto/af_alg07.c | 1 + 1 file changed, 1 insertion(+)
testcases/kernel/crypto/af_alg07.c +1 -0
@@ -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" },
Signature · 1 line
2.23.0
PATCH 1/1 crypto/af_alg07: Skip this case when not having sockfs_setattr
----- Original Message -----
Quoted 11 lines
From: "Yang Xu" <[email protected]>
To: [email protected]
Sent: Tuesday, 6 October, 2020 8:47:55 AM
Subject: [LTP] [PATCH]crypto/af_alg07: Skip this case when not havingsockfs_setattrSince kernel 4.10-rc1 commit
86741ec25462("net: core: Add a UID field to struct sock."),
it introducedsockfs_setattrfunction. This test needs to use this function to trigger this cve bug, so skip it if kernel < 4.10.Signed-off-by Yang Xu <[email protected]>
Pushed.
Thanks,
Jan