pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

compiler-rt-netbsd: Sync with upstream



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Tue Jun 5 22:31:56 2018 +0200
Changeset:	c78d2d4571e0bc499b17e2481ce4a285ec53dac7

Modified Files:
	compiler-rt-netbsd/distinfo
Removed Files:
	compiler-rt-netbsd/patches/patch-lib_asan_asan__rtl.cc
	compiler-rt-netbsd/patches/patch-lib_msan_msan.cc
	compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__common.h
	compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__fuchsia.cc
	compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__mac.cc
	compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__win.cc
	compiler-rt-netbsd/patches/patch-lib_tsan_rtl_tsan__rtl.cc

Log Message:
compiler-rt-netbsd: Sync with upstream

Merged upstream:
"Introduce CheckASLR() in sanitizers"

Sponsored by <The NetBSD Foundation>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c78d2d4571e0bc499b17e2481ce4a285ec53dac7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 compiler-rt-netbsd/distinfo                               |  7 -------
 compiler-rt-netbsd/patches/patch-lib_asan_asan__rtl.cc    | 12 ------------
 compiler-rt-netbsd/patches/patch-lib_msan_msan.cc         | 12 ------------
 .../patch-lib_sanitizer__common_sanitizer__common.h       | 12 ------------
 .../patch-lib_sanitizer__common_sanitizer__fuchsia.cc     | 12 ------------
 .../patches/patch-lib_sanitizer__common_sanitizer__mac.cc | 15 ---------------
 .../patches/patch-lib_sanitizer__common_sanitizer__win.cc | 15 ---------------
 .../patches/patch-lib_tsan_rtl_tsan__rtl.cc               | 12 ------------
 8 files changed, 97 deletions(-)

diffs:
diff --git a/compiler-rt-netbsd/distinfo b/compiler-rt-netbsd/distinfo
index a514db3e73..77236d566f 100644
--- a/compiler-rt-netbsd/distinfo
+++ b/compiler-rt-netbsd/distinfo
@@ -3,27 +3,20 @@ $NetBSD: distinfo,v 1.35 2015/09/11 01:21:57 tnn Exp $
 SHA1 (patch-CMakeLists.txt) = b80970b86107f4e17f994433e743f83160f71428
 SHA1 (patch-cmake_config-ix.cmake) = c2ac835eb5cddaf2d4820b0d21e36e18d29bd1a5
 SHA1 (patch-lib_asan_asan__posix.cc) = 0f596061c078eaab0b5b4b183550aa7820677f46
-SHA1 (patch-lib_asan_asan__rtl.cc) = a7570fa1e6818a4fa312d30ef9ed97e1e7ca2ca4
 SHA1 (patch-lib_fuzzer_FuzzerLoop.cpp) = 9e86608f740e199b0c1f9b6285f8e5ac3412486a
 SHA1 (patch-lib_fuzzer_tests_CMakeLists.txt) = e2e0e397eaf148df329f2c25ca9185f57989d082
-SHA1 (patch-lib_msan_msan.cc) = 7e9156927a9c4d76b933348bc15a76957712d7cc
 SHA1 (patch-lib_msan_msan__interceptors.cc) = 4c036592c9c5a3b0f658f22b004b30813ad841ec
 SHA1 (patch-lib_msan_msan__linux.cc) = 6fd2ada4a84d1e1cc47ec8f4e1f0608861c73c1a
-SHA1 (patch-lib_sanitizer__common_sanitizer__common.h) = b31695d963eb324550ad868cbea7a8199598944c
 SHA1 (patch-lib_sanitizer__common_sanitizer__common__interceptors.inc) = e1d8ad46afc9bec97b7f0e00d0edf5ee377772b7
-SHA1 (patch-lib_sanitizer__common_sanitizer__fuchsia.cc) = 27aedcac4f63376017bb89777411b66139ddcbd9
 SHA1 (patch-lib_sanitizer__common_sanitizer__internal__defs.h) = 9ffcb3ae5ccfcb99d842efe55f6d698cd2e02846
 SHA1 (patch-lib_sanitizer__common_sanitizer__linux.cc) = f641782a88248bb43ef0fbfa244a403935086004
 SHA1 (patch-lib_sanitizer__common_sanitizer__linux__libcdep.cc) = c1ce6657580cc0865808dd713d1f28afc3baaaa7
-SHA1 (patch-lib_sanitizer__common_sanitizer__mac.cc) = 928b8798802392ae05fbe1a4ea6570681ad327f3
 SHA1 (patch-lib_sanitizer__common_sanitizer__platform__interceptors.h) = dbe5aee67312a9042299cd3bd14d25fa68860fb2
 SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cc) = f242e307950755010305b004b4c2e21c528114fb
 SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.h) = a5f5898534bd3c66a0fa9086781bd0124fe43281
 SHA1 (patch-lib_sanitizer__common_sanitizer__procmaps__bsd.cc) = 8b629840ff7f56c670d322a9dbbdf7e33ce90cb5
 SHA1 (patch-lib_sanitizer__common_sanitizer__unwind__linux__libcdep.cc) = 5225619de386fa8e017b6d391c9f1eba4bdda2af
-SHA1 (patch-lib_sanitizer__common_sanitizer__win.cc) = 8715620e8a80735363bf3e876bd2b6133b8ab53b
 SHA1 (patch-lib_scudo_scudo__platform.h) = 119d7ad8f8ca9d3e846dbdd7f805ca771e30e410
-SHA1 (patch-lib_tsan_rtl_tsan__rtl.cc) = b18c893d75bf682bef92e4331900fb05ec2a1870
 SHA1 (patch-test_asan_TestCases_Posix_stack-use-after-return.cc) = 7eb1109c646b5eb4cce26140246949eb4c593a3b
 SHA1 (patch-test_asan_TestCases_heavy__uar__test.cc) = a0d7c228b02c4b5d4a198bce9ef8bc594c92544d
 SHA1 (patch-test_asan_TestCases_interception__failure__test.cc) = b4711fcc3315eaacc2a4ec1021e04b8200749e51
diff --git a/compiler-rt-netbsd/patches/patch-lib_asan_asan__rtl.cc b/compiler-rt-netbsd/patches/patch-lib_asan_asan__rtl.cc
deleted file mode 100644
index 5be659fb95..0000000000
--- a/compiler-rt-netbsd/patches/patch-lib_asan_asan__rtl.cc
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD$
-
---- lib/asan/asan_rtl.cc.orig	2018-06-01 09:39:33.000000000 +0000
-+++ lib/asan/asan_rtl.cc
-@@ -384,6 +384,7 @@ static void AsanInitInternal() {
-   asan_init_is_running = true;
- 
-   CacheBinaryName();
-+  CheckASLR();
- 
-   // Initialize flags. This must be done early, because most of the
-   // initialization steps look at flags().
diff --git a/compiler-rt-netbsd/patches/patch-lib_msan_msan.cc b/compiler-rt-netbsd/patches/patch-lib_msan_msan.cc
deleted file mode 100644
index 815ecb5b43..0000000000
--- a/compiler-rt-netbsd/patches/patch-lib_msan_msan.cc
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD$
-
---- lib/msan/msan.cc.orig	2018-02-27 02:50:00.000000000 +0000
-+++ lib/msan/msan.cc
-@@ -397,6 +397,7 @@ void __msan_init() {
-   InitTlsSize();
- 
-   CacheBinaryName();
-+  CheckASLR();
-   InitializeFlags();
- 
-   // Install tool-specific callbacks in sanitizer_common.
diff --git a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__common.h b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__common.h
deleted file mode 100644
index 7277269f68..0000000000
--- a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__common.h
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD$
-
---- lib/sanitizer_common/sanitizer_common.h.orig	2018-05-10 23:16:36.000000000 +0000
-+++ lib/sanitizer_common/sanitizer_common.h
-@@ -221,6 +221,7 @@ bool SetEnv(const char *name, const char
- 
- u32 GetUid();
- void ReExec();
-+void CheckASLR();
- char **GetArgv();
- void PrintCmdline();
- bool StackSizeIsUnlimited();
diff --git a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__fuchsia.cc b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__fuchsia.cc
deleted file mode 100644
index fb44d34fdf..0000000000
--- a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__fuchsia.cc
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD$
-
---- lib/sanitizer_common/sanitizer_fuchsia.cc.orig	2018-06-01 09:39:33.000000000 +0000
-+++ lib/sanitizer_common/sanitizer_fuchsia.cc
-@@ -87,6 +87,7 @@ void GetThreadStackTopAndBottom(bool, up
- }
- 
- void MaybeReexec() {}
-+void CheckASLR() {}
- void PlatformPrepareForSandboxing(__sanitizer_sandbox_arguments *args) {}
- void DisableCoreDumperIfNecessary() {}
- void InstallDeadlySignalHandlers(SignalHandlerType handler) {}
diff --git a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__mac.cc b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__mac.cc
deleted file mode 100644
index 333e121d16..0000000000
--- a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__mac.cc
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD$
-
---- lib/sanitizer_common/sanitizer_mac.cc.orig	2018-05-10 23:16:36.000000000 +0000
-+++ lib/sanitizer_common/sanitizer_mac.cc
-@@ -340,6 +340,10 @@ void ReExec() {
-   UNIMPLEMENTED();
- }
- 
-+void CheckASLR() {
-+  // Do nothing
-+}
-+
- uptr GetPageSize() {
-   return sysconf(_SC_PAGESIZE);
- }
diff --git a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__win.cc b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__win.cc
deleted file mode 100644
index 23c69a64a3..0000000000
--- a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__win.cc
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD$
-
---- lib/sanitizer_common/sanitizer_win.cc.orig	2018-05-10 23:16:35.000000000 +0000
-+++ lib/sanitizer_common/sanitizer_win.cc
-@@ -1025,6 +1025,10 @@ void MaybeReexec() {
-   // No need to re-exec on Windows.
- }
- 
-+void CheckASLR() {
-+  // Do nothing
-+}
-+
- char **GetArgv() {
-   // FIXME: Actually implement this function.
-   return 0;
diff --git a/compiler-rt-netbsd/patches/patch-lib_tsan_rtl_tsan__rtl.cc b/compiler-rt-netbsd/patches/patch-lib_tsan_rtl_tsan__rtl.cc
deleted file mode 100644
index d94c88fc78..0000000000
--- a/compiler-rt-netbsd/patches/patch-lib_tsan_rtl_tsan__rtl.cc
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD$
-
---- lib/tsan/rtl/tsan_rtl.cc.orig	2018-05-10 23:16:36.000000000 +0000
-+++ lib/tsan/rtl/tsan_rtl.cc
-@@ -354,6 +354,7 @@ void Initialize(ThreadState *thr) {
-   ctx = new(ctx_placeholder) Context;
-   const char *options = GetEnv(SANITIZER_GO ? "GORACE" : "TSAN_OPTIONS");
-   CacheBinaryName();
-+  CheckASLR();
-   InitializeFlags(&ctx->flags, options);
-   AvoidCVE_2016_2143();
-   InitializePlatformEarly();


Home | Main Index | Thread Index | Old Index