diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2019-07-19 13:13:18 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-19 16:19:14 +0100 |
commit | a921c2f9dbefde3592bfe65c80ff1ce973aac89b (patch) | |
tree | 26b492438631afde3c24b777ed7f960a750c26d7 /meta/recipes-extended/ltp/ltp/setregid01-security-string-formatting.patch | |
parent | 161d036569c17d28a1ce625a1c2e258fb6cb18c3 (diff) | |
download | poky-a921c2f9dbefde3592bfe65c80ff1ce973aac89b.tar.gz |
ltp: upgrade 20190115 -> 20190517
Drop the following patches since the issues have been fixed upstream:
0001-file01.sh-Fix-in-was-not-recognized.patch
0001-lapi-Define-TST_ABI-32-64-to-detect-target-type.patch
0001-syscalls-setrlimit03.c-read-proc-sys-fs-nr_open-for-.patch
0007-fix-__WORDSIZE-undeclared-when-building-with-musl.patch
0009-fix-redefinition-of-struct-msgbuf-error-building-wit.patch
0021-Define-_GNU_SOURCE-for-MREMAP_MAYMOVE-definition.patch
0023-ptrace-Use-int-instead-of-enum-__ptrace_request.patch
0024-rt_sigaction-rt_sigprocmark-Define-_GNU_SOURCE.patch
0026-crash01-Define-_GNU_SOURCE.patch
0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch
0034-periodic_output.patch
0039-commands-ar01-Fix-for-test-in-deterministic-mode.patch
define-sigrtmin-and-sigrtmax-for-musl.patch
setregid01-security-string-formatting.patch
Refresh the following patches:
0004-build-Add-option-to-select-libc-implementation.patch
0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch
0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch
0018-guard-mallocopt-with-__GLIBC__.patch
0020-getdents-define-getdents-getdents64-only-for-glibc.patch
0035-fix-test_proc_kill-hang.patch
0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch
0001-open_posix_testsuite-mmap24-2-Relax-condition-a-bit.patch
0001-shmctl01-don-t-use-hardcoded-index-0-for-SHM_STAT-te.patch
0001-diotest4-Let-kernel-pick-an-address-when-calling-mma.patch
0001-getrlimit03-adjust-a-bit-of-code-to-compatiable-with.patch
Add patch:
0006-rt_tgsigqueueinfo-disable-test-on-musl.patch
(From OE-Core rev: eb59546c83f4c217de6272a8d3b2fa65e3c84e7f)
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/setregid01-security-string-formatting.patch')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/setregid01-security-string-formatting.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/meta/recipes-extended/ltp/ltp/setregid01-security-string-formatting.patch b/meta/recipes-extended/ltp/ltp/setregid01-security-string-formatting.patch deleted file mode 100644 index 24449148f2..0000000000 --- a/meta/recipes-extended/ltp/ltp/setregid01-security-string-formatting.patch +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | From 430e05c2169ed15aaa6d7f9459edd607603cee02 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Daniel=20D=C3=ADaz?= <daniel.diaz@linaro.org> | ||
3 | Date: Mon, 25 Feb 2019 10:44:33 -0600 | ||
4 | Subject: [PATCH] setregid01: Fix security warning for string formatting | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | GCC 8.2.0 complains with the following: | ||
10 | setregid01.c: In function 'run': | ||
11 | setregid01.c:47:3: error: format not a string literal and no format arguments [-Werror=format-security] | ||
12 | tst_res(TFAIL | TTERRNO, tc->msg); | ||
13 | ^~~~~~~ | ||
14 | because there is no string formatting in the message. This can | ||
15 | be seen with CFLAGS set to: | ||
16 | -Wformat -Wformat-security -Werror=format-security | ||
17 | as Yocto Project's Poky does, e.g.: | ||
18 | http://errors.yoctoproject.org/Errors/Details/230043/ | ||
19 | |||
20 | Upstream-Status: Backport [46e1eda55f188810e6bf3a939b92d604321807ae] | ||
21 | |||
22 | Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org> | ||
23 | Reviewed-by: Enji Cooper <yaneurabeya@gmail.com> | ||
24 | --- | ||
25 | testcases/kernel/syscalls/setregid/setregid01.c | 4 ++-- | ||
26 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
27 | |||
28 | diff --git a/testcases/kernel/syscalls/setregid/setregid01.c b/testcases/kernel/syscalls/setregid/setregid01.c | ||
29 | index f2e41e134..8c9e11918 100644 | ||
30 | --- a/testcases/kernel/syscalls/setregid/setregid01.c | ||
31 | +++ b/testcases/kernel/syscalls/setregid/setregid01.c | ||
32 | @@ -44,9 +44,9 @@ static void run(unsigned int n) | ||
33 | TEST(SETREGID(*tc->arg1, *tc->arg2)); | ||
34 | |||
35 | if (TST_RET == -1) | ||
36 | - tst_res(TFAIL | TTERRNO, tc->msg); | ||
37 | + tst_res(TFAIL | TTERRNO, "%s", tc->msg); | ||
38 | else | ||
39 | - tst_res(TPASS, tc->msg); | ||
40 | + tst_res(TPASS, "%s", tc->msg); | ||
41 | } | ||
42 | |||
43 | static void setup(void) | ||
44 | -- | ||
45 | 2.17.1 | ||
46 | |||