Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: llvmorg-21-init, llvmorg-19.1.7, llvmorg-19.1.6, llvmorg-19.1.5, llvmorg-19.1.4, llvmorg-19.1.3
# 7106de95 18-Oct-2024 Vitaly Buka <vitalybuka@google.com>

[sanitizer] Add MemCpyAccessible (#112794)

A layer over `TryMemCpy` to copy only available pages.


Revision tags: llvmorg-19.1.2, llvmorg-19.1.1, llvmorg-19.1.0
# a20794b5 17-Sep-2024 Enna1 <xumingjie.enna1@bytedance.com>

[Sanitizer] Call Die() instead of Abort() when failed to reserve shadow memory range (#107833)

I grep the code and find that `Abort()` is only called in `Die()` when
the flag `abort_on_error` is se

[Sanitizer] Call Die() instead of Abort() when failed to reserve shadow memory range (#107833)

I grep the code and find that `Abort()` is only called in `Die()` when
the flag `abort_on_error` is set.
Thus, if reserving shadow memory range fails, `Die()` rather than
`Abort()` should be called. In this case, the flag `abort_on_error` will
be respected and the die callbacks will be called.

show more ...


Revision tags: llvmorg-19.1.0-rc4, llvmorg-19.1.0-rc3, llvmorg-19.1.0-rc2, llvmorg-19.1.0-rc1, llvmorg-20-init
# 7232763a 13-Jul-2024 Ilya Leoshkevich <iii@linux.ibm.com>

[sanitizer] Suggest checking ulimit -d in addition to ulimit -v (#98625)

Since Linux 4.7, RLIMIT_DATA may result in mmap() returning ENOMEM.
Example:

$ clang -fsanitize=address -o hello hell

[sanitizer] Suggest checking ulimit -d in addition to ulimit -v (#98625)

Since Linux 4.7, RLIMIT_DATA may result in mmap() returning ENOMEM.
Example:

$ clang -fsanitize=address -o hello hello.c
$ ulimit -d 100000
$ ./hello
==3349007==ERROR: AddressSanitizer failed to allocate 0x10000000
(268435456) bytes at address 7fff7000 (errno: 12)
==3349007==ReserveShadowMemoryRange failed while trying to map
0x10000000 bytes. Perhaps you're using ulimit -v

Suggest checking ulimit -d in addition to ulimit -v.

show more ...


# f0f774eb 25-Jun-2024 Vitaly Buka <vitalybuka@google.com>

[sanitizer] Rename DEFINE_REAL_PTHREAD_FUNCTIONS (#96527)

We use REAL() calls in interceptors, but
DEFINE_REAL_PTHREAD_FUNCTIONS has nothing to do
with them and only used for internal maintenance

[sanitizer] Rename DEFINE_REAL_PTHREAD_FUNCTIONS (#96527)

We use REAL() calls in interceptors, but
DEFINE_REAL_PTHREAD_FUNCTIONS has nothing to do
with them and only used for internal maintenance
threads.

This is done to avoid confusion like in #96456.

show more ...


Revision tags: llvmorg-18.1.8, llvmorg-18.1.7, llvmorg-18.1.6, llvmorg-18.1.5, llvmorg-18.1.4, llvmorg-18.1.3, llvmorg-18.1.2, llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4, llvmorg-18.1.0-rc3, llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1, llvmorg-19-init, llvmorg-17.0.6, llvmorg-17.0.5, llvmorg-17.0.4, llvmorg-17.0.3, llvmorg-17.0.2, llvmorg-17.0.1, llvmorg-17.0.0
# 4a374876 16-Sep-2023 Vitaly Buka <vitalybuka@google.com>

[NFC][sanitizer] Replace a few AppendF with Append


# 5b7dfa96 16-Sep-2023 Vitaly Buka <vitalybuka@google.com>

[NFC][sanitizer] Rename InternalScopedString::append to AppendF (#66558)

Prepare to introduce trivial InternalScopedString::Append(const char*).


Revision tags: llvmorg-17.0.0-rc4, llvmorg-17.0.0-rc3, llvmorg-17.0.0-rc2, llvmorg-17.0.0-rc1, llvmorg-18-init
# 6fc0e548 23-Jun-2023 Vitaly Buka <vitalybuka@google.com>

[test][msan] Add test for dc4d9d6


Revision tags: llvmorg-16.0.6, llvmorg-16.0.5, llvmorg-16.0.4, llvmorg-16.0.3, llvmorg-16.0.2, llvmorg-16.0.1, llvmorg-16.0.0, llvmorg-16.0.0-rc4, llvmorg-16.0.0-rc3, llvmorg-16.0.0-rc2, llvmorg-16.0.0-rc1, llvmorg-17-init, llvmorg-15.0.7, llvmorg-15.0.6, llvmorg-15.0.5, llvmorg-15.0.4, llvmorg-15.0.3, working, llvmorg-15.0.2, llvmorg-15.0.1, llvmorg-15.0.0, llvmorg-15.0.0-rc3, llvmorg-15.0.0-rc2, llvmorg-15.0.0-rc1, llvmorg-16-init, llvmorg-14.0.6, llvmorg-14.0.5, llvmorg-14.0.4
# f496a0eb 03-May-2022 Martin Liska <mliska@suse.cz>

sanitizer: use pragma clang conditionally

Use the pragma only when __clang__ is defined.

Fixes:
sanitizer_common_libcdep.cpp:101: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]

D

sanitizer: use pragma clang conditionally

Use the pragma only when __clang__ is defined.

Fixes:
sanitizer_common_libcdep.cpp:101: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]

Differential Revision: https://reviews.llvm.org/D124829

show more ...


Revision tags: llvmorg-14.0.3, llvmorg-14.0.2, llvmorg-14.0.1, llvmorg-14.0.0, llvmorg-14.0.0-rc4, llvmorg-14.0.0-rc3, llvmorg-14.0.0-rc2
# 595d340d 11-Feb-2022 Dmitry Vyukov <dvyukov@google.com>

sanitizer_common: make internal/external headers compatible

This is a follow up to 4f3f4d672254
("sanitizer_common: fix __sanitizer_get_module_and_offset_for_pc signature mismatch")
which fixes a si

sanitizer_common: make internal/external headers compatible

This is a follow up to 4f3f4d672254
("sanitizer_common: fix __sanitizer_get_module_and_offset_for_pc signature mismatch")
which fixes a similar problem for msan build.

I am getting the following error compiling a unit test for code that
uses sanitizer_common headers and googletest transitively includes
sanitizer interface headers:

In file included from third_party/gwp_sanitizers/singlestep_test.cpp:3:
In file included from sanitizer_common/sanitizer_common.h:19:
sanitizer_interface_internal.h:41:5: error: typedef redefinition with different types
('struct __sanitizer_sandbox_arguments' vs 'struct __sanitizer_sandbox_arguments')
} __sanitizer_sandbox_arguments;
common_interface_defs.h:39:3: note: previous definition is here
} __sanitizer_sandbox_arguments;

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D119546

show more ...


Revision tags: llvmorg-14.0.0-rc1, llvmorg-15-init, llvmorg-13.0.1, llvmorg-13.0.1-rc3, llvmorg-13.0.1-rc2
# 80c95bbd 21-Dec-2021 Vitaly Buka <vitalybuka@google.com>

[sanitizer] Fix compress_stack_depot.cpp test on Darwin

All platforms which can start the thread should stop it as well.


# d71775cd 08-Dec-2021 Vitaly Buka <vitalybuka@google.com>

[asan] Run background thread for asan only on THUMB

As in D114934, or lsan crashes on the same bot.


Revision tags: llvmorg-13.0.1-rc1
# fa24c4a1 23-Nov-2021 Vitaly Buka <vitalybuka@google.com>

[sanitizer] Run Stack compression in background thread

Depends on D114495.

Reviewed By: dvyukov

Differential Revision: https://reviews.llvm.org/D114498


# a1e7f628 09-Dec-2021 Petr Hosek <phosek@google.com>

Revert "[sanitizer] Run Stack compression in background thread"

This reverts commit e5c2a46c5e8fc038b9f6c898df9628f9524dc10e as this
change introduced a linker error when building sanitizer runtimes

Revert "[sanitizer] Run Stack compression in background thread"

This reverts commit e5c2a46c5e8fc038b9f6c898df9628f9524dc10e as this
change introduced a linker error when building sanitizer runtimes:

ld.lld: error: undefined symbol: __sanitizer::internal_start_thread(void* (*)(void*), void*)
>>> referenced by sanitizer_stackdepot.cpp:133 (compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp:133)
>>> compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.x86_64.dir/sanitizer_stackdepot.cpp.obj:(__sanitizer::(anonymous namespace)::CompressThread::NewWorkNotify())

show more ...


# 02997feb 09-Dec-2021 Andrew Browne <browneee@google.com>

Revert "[asan] Run background thread for asan only on THUMB"

This reverts commit 5c27740238007d22f2d0cd0ebe2aaffa90a9c92b.

Reverting due to Windows build issue:

sanitizer_stackdepot.cpp.obj : erro

Revert "[asan] Run background thread for asan only on THUMB"

This reverts commit 5c27740238007d22f2d0cd0ebe2aaffa90a9c92b.

Reverting due to Windows build issue:

sanitizer_stackdepot.cpp.obj : error LNK2005: "void __cdecl __sanitizer::StackDepotStopBackgroundThread(void)" (?StackDepotStopBackgroundThread@__sanitizer@@YAXXZ) already defined in sanitizer_common_libcdep.cpp.obj
LINK : fatal error LNK1181: cannot open input file 'projects\compiler-rt\lib\asan\CMakeFiles\RTAsan_dynamic.x86_64.dir\asan_rtl_x86_64.S.obj'

show more ...


# e5c2a46c 23-Nov-2021 Vitaly Buka <vitalybuka@google.com>

[sanitizer] Run Stack compression in background thread

Depends on D114495.

Reviewed By: dvyukov

Differential Revision: https://reviews.llvm.org/D114498


# 5c277402 08-Dec-2021 Vitaly Buka <vitalybuka@google.com>

[asan] Run background thread for asan only on THUMB

As in D114934, or lsan crashes on the same bot.


# 9b9ee34d 08-Dec-2021 Vitaly Buka <vitalybuka@google.com>

[NFC][sanitizer] Move/rename macro into sanitizer_platform.h

Folloup for D114934


# 5ff52be5 08-Dec-2021 Vitaly Buka <vitalybuka@google.com>

[sanitizer] Restore __thumb__ workaround

It was removed in D114934 and failed clang-thumbv7-full-2stage.


# 63180012 02-Dec-2021 Vitaly Buka <vitalybuka@google.com>

[sanitizer] Support IsRssLimitExceeded in all sanitizers

Reviewed By: kstoimenov

Differential Revision: https://reviews.llvm.org/D115000


# 36e6a259 02-Dec-2021 Vitaly Buka <vitalybuka@google.com>

[NFC][sanitizer] Remove SetSoftRssLimitExceededCallback

According comments on D44404, something like that was the goal.

Reviewed By: morehouse, kstoimenov

Differential Revision: https://reviews.ll

[NFC][sanitizer] Remove SetSoftRssLimitExceededCallback

According comments on D44404, something like that was the goal.

Reviewed By: morehouse, kstoimenov

Differential Revision: https://reviews.llvm.org/D114991

show more ...


# 3195610b 02-Dec-2021 Vitaly Buka <vitalybuka@google.com>

[NFC][sanitizer] Reorder functions in cpp file


# 25feff4b 02-Dec-2021 Vitaly Buka <vitalybuka@google.com>

[sanitizer] Start background thread once

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D114933


# 7c1128f3 28-Sep-2021 Vitaly Buka <vitalybuka@google.com>

[NFC][sanitizer] Return StackDepotStats by value

Differential Revision: https://reviews.llvm.org/D110644


# bfa50250 28-Sep-2021 Vitaly Buka <vitalybuka@google.com>

[NFC][sanitizer] Clang-format some code


Revision tags: llvmorg-13.0.0, llvmorg-13.0.0-rc4, llvmorg-13.0.0-rc3, llvmorg-13.0.0-rc2, llvmorg-13.0.0-rc1, llvmorg-14-init, llvmorg-12.0.1, llvmorg-12.0.1-rc4, llvmorg-12.0.1-rc3, llvmorg-12.0.1-rc2
# 6478ef61 15-Jun-2021 Vitaly Buka <vitalybuka@google.com>

[asan] Remove Asan, Ubsan support of RTEMS and Myriad

Differential Revision: https://reviews.llvm.org/D104279


12