gcc/libsanitizer/sanitizer_common
Rainer Orth 6805c1c6a6 libsanitizer: Fix GetPcSpBp determination of SP on 32-bit Solaris/x86
The latest Solaris 11.4/x86 update uncovered a libsanitizer bug that
caused one test to FAIL for 32-bit:

+FAIL: c-c++-common/asan/null-deref-1.c   -O0  output pattern test
+FAIL: c-c++-common/asan/null-deref-1.c   -O1  output pattern test
+FAIL: c-c++-common/asan/null-deref-1.c   -O2  output pattern test
+FAIL: c-c++-common/asan/null-deref-1.c   -O2 -flto  output pattern test
+FAIL: c-c++-common/asan/null-deref-1.c -O2 -flto -flto-partition=none
output pattern test
+FAIL: c-c++-common/asan/null-deref-1.c   -O3 -g  output pattern test
+FAIL: c-c++-common/asan/null-deref-1.c   -Os  output pattern test

I've identified the problem and the fix has just landed in upstream
llvm-project:

	https://reviews.llvm.org/D83664

Tested on i386-pc-solaris2.11 and x86_64-pc-linux.gnu.

	libsanitizer:
	* sanitizer_common/sanitizer_linux.cpp: Cherry-pick llvm-project
	revision f0e9b76c3500496f8f3ea7abe6f4bf801e3b41e7.
2020-07-16 10:38:48 +02:00
..
Makefile.am libsanitizer: use gnu++14 2020-06-09 10:07:24 +02:00
Makefile.in libsanitizer: use gnu++14 2020-06-09 10:07:24 +02:00
sancov_flags.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sancov_flags.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sancov_flags.inc Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_addrhashmap.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_allocator_bytemap.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_allocator_checks.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_allocator_checks.h Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_allocator_combined.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_allocator_interface.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_allocator_internal.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_allocator_local_cache.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_allocator_primary32.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_allocator_primary64.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_allocator_report.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_allocator_report.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_allocator_secondary.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_allocator_size_class_map.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_allocator_stats.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_allocator.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_allocator.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_asm.h Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_atomic_clang_mips.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_atomic_clang_other.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_atomic_clang_x86.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_atomic_clang.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_atomic_msvc.h Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_atomic.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_bitvector.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_bvgraph.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_common_interceptors_format.inc Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_common_interceptors_ioctl.inc Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_common_interceptors_netbsd_compat.inc Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_common_interceptors_vfork_aarch64.inc.S Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_common_interceptors_vfork_arm.inc.S Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_common_interceptors_vfork_i386.inc.S Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_common_interceptors_vfork_x86_64.inc.S Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_common_interceptors.inc Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_common_interface_posix.inc Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_common_interface.inc Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_common_libcdep.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_common_nolibc.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_common_syscalls.inc Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_common.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_common.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_coverage_fuchsia.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_coverage_interface.inc Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_coverage_libcdep_new.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_coverage_win_dll_thunk.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_coverage_win_dynamic_runtime_thunk.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_coverage_win_sections.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_coverage_win_weak_interception.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_dbghelp.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_deadlock_detector1.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_deadlock_detector2.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_deadlock_detector_interface.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_deadlock_detector.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_errno_codes.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_errno.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_errno.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_file.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_file.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_flag_parser.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_flag_parser.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_flags.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_flags.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_flags.inc Libsanitizer: merge from trunk 2019-11-07 09:33:54 +00:00
sanitizer_freebsd.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_fuchsia.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_fuchsia.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_getauxval.h Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_glibc_version.h Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_hash.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_interceptors_ioctl_netbsd.inc Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_interface_internal.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_internal_defs.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_lfstack.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_libc.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_libc.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_libignore.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_libignore.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_linux_libcdep.cpp Reapply all revisions mentioned in LOCAL_PATCHES. 2020-06-02 08:02:15 +02:00
sanitizer_linux_s390.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_linux.cpp libsanitizer: Fix GetPcSpBp determination of SP on 32-bit Solaris/x86 2020-07-16 10:38:48 +02:00
sanitizer_linux.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_list.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_local_address_space_view.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_mac_libcdep.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_mac.cpp Reapply all revisions mentioned in LOCAL_PATCHES. 2020-06-02 08:02:15 +02:00
sanitizer_mac.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_malloc_mac.inc Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_mutex.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_netbsd.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_openbsd.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_persistent_allocator.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_persistent_allocator.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_placement_new.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_platform_interceptors.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_platform_limits_freebsd.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_platform_limits_freebsd.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_platform_limits_linux.cpp Reapply all revisions mentioned in LOCAL_PATCHES. 2020-06-02 08:02:15 +02:00
sanitizer_platform_limits_netbsd.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_platform_limits_netbsd.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_platform_limits_openbsd.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_platform_limits_openbsd.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_platform_limits_posix.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_platform_limits_posix.h Reapply all revisions mentioned in LOCAL_PATCHES. 2020-06-02 08:02:15 +02:00
sanitizer_platform_limits_solaris.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_platform_limits_solaris.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_platform.h Libsanitizer: merge from trunk 2019-11-07 09:33:54 +00:00
sanitizer_posix_libcdep.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_posix.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_posix.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_printf.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_procmaps_bsd.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_procmaps_common.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_procmaps_fuchsia.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_procmaps_linux.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_procmaps_mac.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_procmaps_solaris.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_procmaps.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_ptrauth.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_quarantine.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_report_decorator.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_ring_buffer.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_rtems.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_rtems.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_signal_interceptors.inc Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_solaris.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_stackdepot.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_stackdepot.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_stackdepotbase.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_stacktrace_libcdep.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_stacktrace_printer.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_stacktrace_printer.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_stacktrace_sparc.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_stacktrace.cpp Reapply all revisions mentioned in LOCAL_PATCHES. 2020-06-02 08:02:15 +02:00
sanitizer_stacktrace.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_stoptheworld_fuchsia.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_stoptheworld_linux_libcdep.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_stoptheworld_mac.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_stoptheworld_netbsd_libcdep.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_stoptheworld.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_suppressions.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_suppressions.h Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_symbolizer_fuchsia.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_symbolizer_internal.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_symbolizer_libbacktrace.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_symbolizer_libbacktrace.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_symbolizer_libcdep.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_symbolizer_mac.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_symbolizer_mac.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_symbolizer_markup.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_symbolizer_posix_libcdep.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_symbolizer_report.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_symbolizer_rtems.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_symbolizer_win.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_symbolizer.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_symbolizer.h Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_syscall_generic.inc Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_syscall_linux_aarch64.inc Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_syscall_linux_arm.inc Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_syscall_linux_x86_64.inc Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_syscalls_netbsd.inc Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_termination.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_thread_registry.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_thread_registry.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_tls_get_addr.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_tls_get_addr.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_type_traits.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_type_traits.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_unwind_linux_libcdep.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_unwind_win.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_vector.h Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_win_defs.h Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_win_dll_thunk.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_win_dll_thunk.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_win_dynamic_runtime_thunk.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_win_weak_interception.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
sanitizer_win_weak_interception.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
sanitizer_win.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
sanitizer_win.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00