aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp/ltp/0037-containers-netns_netlink-Avoid-segmentation-fault.patch
diff options
context:
space:
mode:
authorDengke Du <dengke.du@windriver.com>2017-02-08 21:25:38 -0500
committerDengke Du <dengke.du@windriver.com>2017-02-22 02:51:06 -0500
commit48edf52328e80992d4a1d06fcff23d589dc3e7f1 (patch)
treee20ec6f2e4241f11575be9f913125d88157b15d6 /meta/recipes-extended/ltp/ltp/0037-containers-netns_netlink-Avoid-segmentation-fault.patch
parente436a6398684d2872cb541f1cfb0f67b3618d15a (diff)
downloadopenembedded-core-contrib-dengke/ltp-upgrade-to-20170116.tar.gz
ltp: upgrade to 20170116dengke/ltp-upgrade-to-20170116
1. Upgrade ltp from 20160126 to 20170116. 2. Delete some patches because these have been integrated in upstream. 0001-ltp-Don-t-link-against-libfl.patch 0006-sendfile-Use-off64_t-instead-of-__off64_t.patch 0007-replace-SIGCLD-with-SIGCHLD.patch 0009-Guard-error.h-with-__GLIBC__.patch 0012-fsstress.c-Replace-__int64_t-with-int64_t.patch 0013-include-fcntl.h-for-getting-O_-definitions.patch 0014-hyperthreading-Include-sys-types.h-for-pid_t-definit.patch 0015-mincore01-Rename-PAGESIZE-to-pagesize.patch 0016-ustat-Change-header-from-ustat.h-to-sys-ustat.h.patch 0017-replace-sigval_t-with-union-sigval.patch 0019-tomoyo-Replace-canonicalize_file_name-with-realpath.patch 0022-include-sys-types.h.patch 0029-trace_shed-Fix-build-with-musl.patch 0031-vma03-fix-page-size-offset-as-per-page-size-alignmen.patch 0032-regen.sh-Include-asm-unistd.h-explicitly.patch 0037-containers-netns_netlink-Avoid-segmentation-fault.patch 0038-run-posix-option-group-test-replace-CWD-qith-PWD.patch 0040-containers-userns05-use-unsigned-int-for-ns-id.patch 3. Add new patch based on Khem Raj's 0007-replace-SIGCLD-with-SIGCHLD.patch 0001-add-_GNU_SOURCE-to-pec_listener.c.patch 4. Add new patches fix building errors with musl: 0006-fix-PATH_MAX-undeclared-when-building-with-musl.patch 0007-fix-__WORDSIZE-undeclared-when-building-with-musl.patch 0009-fix-redefinition-of-struct-msgbuf-error-building-wit.patch Add new patch fix building errors, when the distro is poky-lsb 0012-fix-faccessat01.c-build-fails-with-security-flags.patch 5. Modify some patches because the upstream contains changes, those patches maybe failed when they apply to the new version of ltp. 0011-Rename-sigset-variable-to-sigset1.patch 0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch 0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch 0035-fix-test_proc_kill-hang.patch 6. Rename and modify this patch. fcntl-fix-the-time-def-to-use-time_t.patch to 0039-fcntl-fix-the-time-def-to-use-time_t.patch 7. The new version of ltp add the checking for ksh and csh, we doesn't support ksh and csh in oe-core, so remove the checking files when the system executes do_install function. Signed-off-by: Dengke Du <dengke.du@windriver.com>
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0037-containers-netns_netlink-Avoid-segmentation-fault.patch')
-rw-r--r--meta/recipes-extended/ltp/ltp/0037-containers-netns_netlink-Avoid-segmentation-fault.patch50
1 files changed, 0 insertions, 50 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0037-containers-netns_netlink-Avoid-segmentation-fault.patch b/meta/recipes-extended/ltp/ltp/0037-containers-netns_netlink-Avoid-segmentation-fault.patch
deleted file mode 100644
index 18d1f727f2..0000000000
--- a/meta/recipes-extended/ltp/ltp/0037-containers-netns_netlink-Avoid-segmentation-fault.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From 193ce739b2a5174269a958b00c3a5590de944e0d Mon Sep 17 00:00:00 2001
-From: Huacai Chen <chenhc@lemote.com>
-Date: Thu, 27 Oct 2016 14:45:52 +0800
-Subject: [PATCH] containers/netns_netlink: Avoid segmentation fault
-
-In order to avoid segmentation fault (use NULL as a function pointer),
-this patch modify check_netns() by passing a dummy function pointer to
-do_clone_unshare_test().
-
-Signed-off-by: Huacai Chen <chenhc@lemote.com>
-Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
-
-Upstream-Status: Backport
-
-Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
----
- testcases/kernel/containers/netns/netns_helper.h | 10 ++++++++--
- 1 file changed, 8 insertions(+), 2 deletions(-)
-
-diff --git a/testcases/kernel/containers/netns/netns_helper.h b/testcases/kernel/containers/netns/netns_helper.h
-index 2a331ae..7df6dcb 100644
---- a/testcases/kernel/containers/netns/netns_helper.h
-+++ b/testcases/kernel/containers/netns/netns_helper.h
-@@ -56,6 +56,12 @@ static void check_iproute(unsigned int spe_ipver)
- pclose(ipf);
- }
-
-+static int dummy(void *arg)
-+{
-+ (void) arg;
-+ return 0;
-+}
-+
- static void check_netns(void)
- {
- int pid, status;
-@@ -64,8 +70,8 @@ static void check_netns(void)
- tst_brkm(TCONF | TERRNO, NULL, "CLONE_NEWNS (%d) not supported",
- CLONE_NEWNS);
-
-- pid = do_clone_unshare_test(T_UNSHARE, CLONE_NEWNET | CLONE_NEWNS, NULL,
-- NULL);
-+ pid = do_clone_unshare_test(T_UNSHARE, CLONE_NEWNET | CLONE_NEWNS,
-+ dummy, NULL);
- if (pid == -1)
- tst_brkm(TCONF | TERRNO, NULL,
- "unshare syscall smoke test failed");
---
-2.7.4
-