Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline

Enna1 (Mingjie Xu)
User

Projects

User does not belong to any projects.

User Details

User Since
Feb 27 2019, 3:36 AM (248 w, 6 d)

Compiler Engineer @ ByteDance

Recent Activity

Sep 17 2023

Enna1 added a comment to D158978: [asan] set program exit code in keep-going mode.

gentle ping

Sep 17 2023, 9:34 PM · Restricted Project, Restricted Project

Aug 30 2023

Enna1 retitled D156618: [IR] Fix a memory leak if Function::dropAllReferences() is followed by setHungoffOperand from Fix a memory leak in Function::dropAllReferences() to [IR] Fix a memory leak in Function::dropAllReferences().
Aug 30 2023, 6:57 PM · Restricted Project, Restricted Project
Enna1 added a reviewer for D156618: [IR] Fix a memory leak if Function::dropAllReferences() is followed by setHungoffOperand: MaskRay.
Aug 30 2023, 6:56 PM · Restricted Project, Restricted Project

Aug 28 2023

Enna1 added a comment to D158978: [asan] set program exit code in keep-going mode.

What is tsan behavior?
And ubsan?

This sounds strange to me.

Intended usecase is to run but log errors.
But In multi-process environment failing process at the end will likely fails all parents.

So I'd rather reconsider behavior of msan and hwasan,

Aug 28 2023, 9:09 PM · Restricted Project, Restricted Project
Enna1 published D158978: [asan] set program exit code in keep-going mode for review.
Aug 28 2023, 7:23 AM · Restricted Project, Restricted Project

Aug 27 2023

Enna1 committed rG94b0851aad61: [sanitizer] use uptr to store the result of internal_strlen/internal_strnlen in… (authored by Enna1).
[sanitizer] use uptr to store the result of internal_strlen/internal_strnlen in…
Aug 27 2023, 11:38 PM · Restricted Project, Restricted Project
Enna1 closed D157266: [sanitizer] use uptr to store the result of internal_strlen/internal_strnlen in printf_common.
Aug 27 2023, 11:38 PM · Restricted Project, Restricted Project

Aug 21 2023

Enna1 accepted D158385: [tsan] Respect !nosanitize metadata and remove gcov special case.
Aug 21 2023, 1:50 AM · Restricted Project, Restricted Project, Restricted Project
Enna1 updated the diff for D157266: [sanitizer] use uptr to store the result of internal_strlen/internal_strnlen in printf_common.

Thanks! I have run the test on 32-bit platforms successfully.

Aug 21 2023, 1:44 AM · Restricted Project, Restricted Project

Aug 18 2023

Enna1 updated the diff for D157266: [sanitizer] use uptr to store the result of internal_strlen/internal_strnlen in printf_common.

Thanks for testing.

Aug 18 2023, 3:22 AM · Restricted Project, Restricted Project

Aug 14 2023

Enna1 added a comment to D157947: [sanitizer] Add CMake flag to build with internal symbolizer.

Thanks for working on this, this is a real useful feature!

Aug 14 2023, 11:22 PM · Restricted Project, Restricted Project
Enna1 accepted D157921: [NFC][sanitizer] Add and use empty RTSanitizerCommonSymbolizerInternal.

LGTM. I am not familiar with CMake, wait for @phosek's opinion ?

Aug 14 2023, 11:12 PM · Restricted Project, Restricted Project

Aug 8 2023

Enna1 added inline comments to D157266: [sanitizer] use uptr to store the result of internal_strlen/internal_strnlen in printf_common.
Aug 8 2023, 1:05 AM · Restricted Project, Restricted Project
Enna1 updated the diff for D157266: [sanitizer] use uptr to store the result of internal_strlen/internal_strnlen in printf_common.

update from @fmayer comment

Aug 8 2023, 1:00 AM · Restricted Project, Restricted Project

Aug 7 2023

Enna1 published D157266: [sanitizer] use uptr to store the result of internal_strlen/internal_strnlen in printf_common for review.
Aug 7 2023, 7:16 AM · Restricted Project, Restricted Project

Jul 30 2023

Enna1 added a comment to D25846: scripts: Document existing problems with the symbolizer build script..

Thanks for your reply!
Internal symbolizer is a very useful feature, which lets us symbolize sanitizer error report without the dependency of external symbolizer tool.
I have tested the build_symbolizer.sh approach in my local environment, we will try to deploy the build_symbolizer.sh approach to our sanitizer buildbot.
The cmake approach may be more compilcated according to https://bugs.llvm.org/show_bug.cgi?id=30750, I will give it a try.

Jul 30 2023, 7:07 PM · Restricted Project

Jul 27 2023

Herald added a project to D25846: scripts: Document existing problems with the symbolizer build script.: Restricted Project.

Hi @vitalybuka @pcc
is there any progress about this problem? Is symbolizer.o can be buildable with a regular cmake rule possible now? Thanks!

Jul 27 2023, 2:45 AM · Restricted Project

May 30 2023

Enna1 committed rGf28ed7f69528: [NFC][HWASAN] make variables names for callback functions more consistent (authored by Enna1).
[NFC][HWASAN] make variables names for callback functions more consistent
May 30 2023, 11:05 PM · Restricted Project, Restricted Project
Enna1 closed D151605: [NFC][HWASAN] make variables names for callback functions more consistent.
May 30 2023, 11:04 PM · Restricted Project, Restricted Project
Enna1 updated the diff for D151605: [NFC][HWASAN] make variables names for callback functions more consistent.

update

May 30 2023, 8:05 PM · Restricted Project, Restricted Project

May 26 2023

Enna1 published D151605: [NFC][HWASAN] make variables names for callback functions more consistent for review.
May 26 2023, 8:11 PM · Restricted Project, Restricted Project
Enna1 committed rGba13e1b4381e: [hwasan] support hwasan-match-all-tag flag for hwasan meminstrinsic calls (authored by Enna1).
[hwasan] support hwasan-match-all-tag flag for hwasan meminstrinsic calls
May 26 2023, 7:37 PM · Restricted Project, Restricted Project, Restricted Project
Enna1 closed D149943: [hwasan] support hwasan-match-all-tag flag for hwasan meminstrinsic calls.
May 26 2023, 7:36 PM · Restricted Project, Restricted Project, Restricted Project
Enna1 committed rGb33dcc5b1eda: [hwasan] support hwasan-match-all-tag flag for callback memory access… (authored by Enna1).
[hwasan] support hwasan-match-all-tag flag for callback memory access…
May 26 2023, 7:28 PM · Restricted Project, Restricted Project, Restricted Project
Enna1 closed D149580: [hwasan] support hwasan-match-all-tag flag for callback memory access instrumentation.
May 26 2023, 7:28 PM · Restricted Project, Restricted Project, Restricted Project

May 24 2023

Enna1 committed rG693a1b7024b8: [gcov] Add nosanitize metadata to memory access instructions inserted by… (authored by Enna1).
[gcov] Add nosanitize metadata to memory access instructions inserted by…
May 24 2023, 7:15 PM · Restricted Project, Restricted Project
Enna1 closed D150460: [gcov] Add nosanitize metadata to memory access instructions inserted by emitProfileNotes().
May 24 2023, 7:15 PM · Restricted Project, Restricted Project
Enna1 updated the diff for D149943: [hwasan] support hwasan-match-all-tag flag for hwasan meminstrinsic calls.

update

May 24 2023, 5:30 AM · Restricted Project, Restricted Project, Restricted Project
Enna1 updated the diff for D149943: [hwasan] support hwasan-match-all-tag flag for hwasan meminstrinsic calls.

update from comments

May 24 2023, 5:29 AM · Restricted Project, Restricted Project, Restricted Project
Enna1 updated the diff for D149580: [hwasan] support hwasan-match-all-tag flag for callback memory access instrumentation.

update

May 24 2023, 5:28 AM · Restricted Project, Restricted Project, Restricted Project

May 23 2023

Enna1 added a comment to D149943: [hwasan] support hwasan-match-all-tag flag for hwasan meminstrinsic calls.

gentle ping

May 23 2023, 12:33 AM · Restricted Project, Restricted Project, Restricted Project

May 19 2023

Enna1 committed rGe4e6c6510b18: [IR] Adds Instruction::setNoSanitizeMetadata() (authored by Enna1).
[IR] Adds Instruction::setNoSanitizeMetadata()
May 19 2023, 4:20 AM · Restricted Project, Restricted Project, Restricted Project
Enna1 closed D150632: [IR] Adds Instruction::setNoSanitizeMetadata().
May 19 2023, 4:19 AM · Restricted Project, Restricted Project, Restricted Project
Enna1 updated the diff for D150460: [gcov] Add nosanitize metadata to memory access instructions inserted by emitProfileNotes().

Update from MaskRay's comments.

May 19 2023, 4:17 AM · Restricted Project, Restricted Project

May 18 2023

Enna1 added inline comments to D150460: [gcov] Add nosanitize metadata to memory access instructions inserted by emitProfileNotes().
May 18 2023, 4:58 AM · Restricted Project, Restricted Project
Enna1 updated the diff for D150460: [gcov] Add nosanitize metadata to memory access instructions inserted by emitProfileNotes().

address review comments

May 18 2023, 4:54 AM · Restricted Project, Restricted Project

May 17 2023

Enna1 added inline comments to D149943: [hwasan] support hwasan-match-all-tag flag for hwasan meminstrinsic calls.
May 17 2023, 12:24 AM · Restricted Project, Restricted Project, Restricted Project

May 16 2023

Enna1 added a comment to D150460: [gcov] Add nosanitize metadata to memory access instructions inserted by emitProfileNotes().

Though, I guess you wouldn't ship coverage enabled in production.

Sure.

May 16 2023, 8:21 PM · Restricted Project, Restricted Project
Enna1 updated the diff for D150460: [gcov] Add nosanitize metadata to memory access instructions inserted by emitProfileNotes().

add comment about the intent of the test

May 16 2023, 8:10 PM · Restricted Project, Restricted Project
Enna1 updated the diff for D150632: [IR] Adds Instruction::setNoSanitizeMetadata().

address review comments

May 16 2023, 7:44 PM · Restricted Project, Restricted Project, Restricted Project
Enna1 abandoned D149054: [hwasan] add interceptor for dlopen, check if user dlopens shared library with RTLD_DEEPBIND flag.

We are going to use D150708 to incrementally add interceptors

May 16 2023, 7:16 PM · Restricted Project, Restricted Project

May 15 2023

Enna1 published D150632: [IR] Adds Instruction::setNoSanitizeMetadata() for review.
May 15 2023, 11:10 PM · Restricted Project, Restricted Project, Restricted Project
Enna1 added a comment to D150460: [gcov] Add nosanitize metadata to memory access instructions inserted by emitProfileNotes().

Thanks for you review!

Why do we want to skip sanitizing these loads and stores?

When use asan and gcov together, asan will instrument the loads and stores inserted by gcov which increases the code size a lot.
As the loads and stores inserted by gcov are unlikey to have bugs, so I add nosanitize metadata to these loads and stores like we do in SanitizerCoverage.

Also, gocv is misspelled in the commit description, please fix that up.

Thanks for pointing this.

May 15 2023, 11:08 PM · Restricted Project, Restricted Project
Enna1 updated the summary of D150460: [gcov] Add nosanitize metadata to memory access instructions inserted by emitProfileNotes().
May 15 2023, 11:01 PM · Restricted Project, Restricted Project
Enna1 updated the diff for D150460: [gcov] Add nosanitize metadata to memory access instructions inserted by emitProfileNotes().

address review comments

May 15 2023, 11:01 PM · Restricted Project, Restricted Project

May 13 2023

Enna1 updated the diff for D149943: [hwasan] support hwasan-match-all-tag flag for hwasan meminstrinsic calls.

do not use match-all memset/memcpy/memmove for kernel mode HWASAN

May 13 2023, 3:25 AM · Restricted Project, Restricted Project, Restricted Project
Enna1 updated the diff for D149580: [hwasan] support hwasan-match-all-tag flag for callback memory access instrumentation.

do not use match-all callback for kernel mode HWASAN

May 13 2023, 3:19 AM · Restricted Project, Restricted Project, Restricted Project

May 12 2023

Enna1 published D150460: [gcov] Add nosanitize metadata to memory access instructions inserted by emitProfileNotes() for review.
May 12 2023, 10:50 AM · Restricted Project, Restricted Project

May 9 2023

Enna1 added inline comments to D150166: [HWSAN] Use ThreadArgRetval in HWSAN.
May 9 2023, 6:38 PM · Restricted Project, Restricted Project
Enna1 added a comment to D149943: [hwasan] support hwasan-match-all-tag flag for hwasan meminstrinsic calls.

gentle ping :)

May 9 2023, 6:31 PM · Restricted Project, Restricted Project, Restricted Project
Enna1 committed rG11dd1fe32f5e: [NFC][HWASAN] replace redundant calls to IRBuilder::get*Ty() with saved types (authored by Enna1).
[NFC][HWASAN] replace redundant calls to IRBuilder::get*Ty() with saved types
May 9 2023, 6:30 PM · Restricted Project, Restricted Project
Enna1 closed D149628: [NFC][HWASAN] replace redundant calls to IRBuilder::get*Ty() with saved types.
May 9 2023, 6:29 PM · Restricted Project, Restricted Project
Enna1 updated the diff for D149628: [NFC][HWASAN] replace redundant calls to IRBuilder::get*Ty() with saved types.

rebase

May 9 2023, 1:54 AM · Restricted Project, Restricted Project

May 8 2023

Enna1 accepted D150166: [HWSAN] Use ThreadArgRetval in HWSAN.
May 8 2023, 8:48 PM · Restricted Project, Restricted Project
Enna1 added inline comments to D150104: [NFC][sanitizer] Add class to track thread arg and retval.
May 8 2023, 8:12 PM · Restricted Project, Restricted Project

May 5 2023

Enna1 committed rGf9dd3ea475e4: [hwasan] Fix data race between ReleaseThread() and VisitAllLiveThreads() (authored by Enna1).
[hwasan] Fix data race between ReleaseThread() and VisitAllLiveThreads()
May 5 2023, 3:39 AM · Restricted Project, Restricted Project
Enna1 closed D148909: [hwasan] Fix data race between ReleaseThread() and VisitAllLiveThreads().
May 5 2023, 3:39 AM · Restricted Project, Restricted Project
Enna1 published D149943: [hwasan] support hwasan-match-all-tag flag for hwasan meminstrinsic calls for review.
May 5 2023, 3:13 AM · Restricted Project, Restricted Project, Restricted Project

May 3 2023

Enna1 added inline comments to D149580: [hwasan] support hwasan-match-all-tag flag for callback memory access instrumentation.
May 3 2023, 6:09 PM · Restricted Project, Restricted Project, Restricted Project

May 2 2023

Enna1 retitled D149628: [NFC][HWASAN] replace redundant calls to IRBuilder::get*Ty() with saved types from [NFC][HWASAN] replace redundant calls to IRBuilder::get*Ty() with cached types to [NFC][HWASAN] replace redundant calls to IRBuilder::get*Ty() with saved types.
May 2 2023, 6:51 PM · Restricted Project, Restricted Project
Enna1 updated the diff for D149580: [hwasan] support hwasan-match-all-tag flag for callback memory access instrumentation.

update

May 2 2023, 6:37 AM · Restricted Project, Restricted Project, Restricted Project

May 1 2023

Enna1 published D149628: [NFC][HWASAN] replace redundant calls to IRBuilder::get*Ty() with saved types for review.
May 1 2023, 7:31 PM · Restricted Project, Restricted Project
Enna1 updated the summary of D149580: [hwasan] support hwasan-match-all-tag flag for callback memory access instrumentation.
May 1 2023, 6:39 PM · Restricted Project, Restricted Project, Restricted Project
Enna1 updated the diff for D149580: [hwasan] support hwasan-match-all-tag flag for callback memory access instrumentation.

implement __hwasan_load_match_all/__hwasan_store_match_all and handle hwasan-match-all-tag flag in them.

May 1 2023, 6:36 PM · Restricted Project, Restricted Project, Restricted Project
Enna1 updated the summary of D149580: [hwasan] support hwasan-match-all-tag flag for callback memory access instrumentation.
May 1 2023, 5:18 AM · Restricted Project, Restricted Project, Restricted Project
Enna1 published D149580: [hwasan] support hwasan-match-all-tag flag for callback memory access instrumentation for review.
May 1 2023, 4:41 AM · Restricted Project, Restricted Project, Restricted Project

Apr 28 2023

Enna1 committed rGd961f66b28c5: [hwasan] fix false positive when hwasan-match-all-tag flag is enabled and short… (authored by Enna1).
[hwasan] fix false positive when hwasan-match-all-tag flag is enabled and short…
Apr 28 2023, 2:01 AM · Restricted Project, Restricted Project, Restricted Project
Enna1 closed D149252: [hwasan] fix false positive when hwasan-match-all-tag flag is enabled and short granules are used.
Apr 28 2023, 2:01 AM · Restricted Project, Restricted Project, Restricted Project
Enna1 committed rG9baa85271dff: [hwasan][test] add test for hwasan-check-memaccess when hwasan-match-all-tag… (authored by Enna1).
[hwasan][test] add test for hwasan-check-memaccess when hwasan-match-all-tag…
Apr 28 2023, 1:58 AM · Restricted Project, Restricted Project
Enna1 closed D149399: [hwasan][test] add test for hwasan-check-memaccess when hwasan-match-all-tag flag and short granules both used.
Apr 28 2023, 1:58 AM · Restricted Project, Restricted Project

Apr 27 2023

Enna1 published D149399: [hwasan][test] add test for hwasan-check-memaccess when hwasan-match-all-tag flag and short granules both used for review.
Apr 27 2023, 7:10 PM · Restricted Project, Restricted Project
Enna1 updated the diff for D149252: [hwasan] fix false positive when hwasan-match-all-tag flag is enabled and short granules are used.

update

Apr 27 2023, 7:06 PM · Restricted Project, Restricted Project, Restricted Project
Enna1 updated the diff for D149252: [hwasan] fix false positive when hwasan-match-all-tag flag is enabled and short granules are used.

update

Apr 27 2023, 7:05 PM · Restricted Project, Restricted Project, Restricted Project
Enna1 published D137414: [TySan] Fix Type Sanitizer build on Linux for review.
Apr 27 2023, 3:50 AM · Restricted Project, Restricted Project, Restricted Project
Enna1 added a comment to D149252: [hwasan] fix false positive when hwasan-match-all-tag flag is enabled and short granules are used.

UNSUPPORTED: HWAddressSanitizer-x86_64 :: TestCases/short-granule-and-match-all-tag.cpp (19669 of 70430)

Pre-merge checks buildbot does not support HWASAN test, so we can not see this test failure in premerge checks .
Do you mean I create another differential only containing this testcase, commit it to llvm trunk and check if sanitizer-aarch64-linux-bootstrap-hwasan(https://lab.llvm.org/buildbot/#/builders/236) will fail?

Apr 27 2023, 12:54 AM · Restricted Project, Restricted Project, Restricted Project

Apr 26 2023

Enna1 updated the diff for D149054: [hwasan] add interceptor for dlopen, check if user dlopens shared library with RTLD_DEEPBIND flag.

remove additional test

Apr 26 2023, 8:51 PM · Restricted Project, Restricted Project
Enna1 added a comment to D149228: [HWASAN] Support tagged stack pointer.

just curious when stack will be allocated using regular allocator :)

Apr 26 2023, 8:46 PM · Restricted Project, Restricted Project
Enna1 updated the diff for D149252: [hwasan] fix false positive when hwasan-match-all-tag flag is enabled and short granules are used.
  • only test
Apr 26 2023, 8:41 PM · Restricted Project, Restricted Project, Restricted Project
Enna1 updated the diff for D149252: [hwasan] fix false positive when hwasan-match-all-tag flag is enabled and short granules are used.

update

Apr 26 2023, 5:51 AM · Restricted Project, Restricted Project, Restricted Project
Enna1 published D149252: [hwasan] fix false positive when hwasan-match-all-tag flag is enabled and short granules are used for review.
Apr 26 2023, 5:36 AM · Restricted Project, Restricted Project, Restricted Project

Apr 25 2023

Enna1 added a comment to D149054: [hwasan] add interceptor for dlopen, check if user dlopens shared library with RTLD_DEEPBIND flag.

I'm fine with waiting for HWASAN includes sanitizer_common_interceptors.inc :)

Apr 25 2023, 7:57 PM · Restricted Project, Restricted Project

Apr 24 2023

Enna1 published D149054: [hwasan] add interceptor for dlopen, check if user dlopens shared library with RTLD_DEEPBIND flag for review.
Apr 24 2023, 4:51 AM · Restricted Project, Restricted Project

Apr 21 2023

Enna1 added reviewers for D148909: [hwasan] Fix data race between ReleaseThread() and VisitAllLiveThreads(): vitalybuka, eugenis.
Apr 21 2023, 2:44 AM · Restricted Project, Restricted Project
Enna1 published D148909: [hwasan] Fix data race between ReleaseThread() and VisitAllLiveThreads() for review.

We encountered a crash due to this data race during the process of enabling hwasan for our server-side applications on AArch64/Linux. With this change, the crash will be fixed.

Apr 21 2023, 2:43 AM · Restricted Project, Restricted Project

Apr 19 2023

Enna1 committed rGb720a59c119d: [hwasan] provide a runtime flag for printing remaining threads in error report… (authored by Enna1).
[hwasan] provide a runtime flag for printing remaining threads in error report…
Apr 19 2023, 4:29 AM · Restricted Project, Restricted Project
Enna1 closed D148513: [hwasan] provide a runtime flag for printing remaining threads in error report as an extra information.
Apr 19 2023, 4:28 AM · Restricted Project, Restricted Project

Apr 17 2023

Enna1 updated the summary of D148513: [hwasan] provide a runtime flag for printing remaining threads in error report as an extra information.
Apr 17 2023, 8:19 AM · Restricted Project, Restricted Project
Enna1 published D148513: [hwasan] provide a runtime flag for printing remaining threads in error report as an extra information for review.
Apr 17 2023, 5:36 AM · Restricted Project, Restricted Project

Apr 12 2023

Enna1 committed rGb356cd70a27d: [hwasan] remove requirment for PIE (authored by Enna1).
[hwasan] remove requirment for PIE
Apr 12 2023, 11:16 PM · Restricted Project, Restricted Project
Enna1 closed D147121: [hwasan] remove requirment for PIE.
Apr 12 2023, 11:16 PM · Restricted Project, Restricted Project

Apr 9 2023

Enna1 added a comment to D147121: [hwasan] remove requirment for PIE.

gentle ping, @eugenis PTAL, thanks!

Apr 9 2023, 10:57 PM · Restricted Project, Restricted Project

Apr 3 2023

Enna1 committed rGdc7498eb027b: [hwasan] Record allocation thread id in HeapAllocationRecord (authored by Enna1).
[hwasan] Record allocation thread id in HeapAllocationRecord
Apr 3 2023, 8:26 PM · Restricted Project, Restricted Project
Enna1 closed D147215: [hwasan] Record allocation thread id in HeapAllocationRecord.
Apr 3 2023, 8:26 PM · Restricted Project, Restricted Project

Apr 1 2023

Enna1 updated the diff for D147215: [hwasan] Record allocation thread id in HeapAllocationRecord.

format

Apr 1 2023, 12:49 AM · Restricted Project, Restricted Project

Mar 31 2023

Enna1 added inline comments to D147215: [hwasan] Record allocation thread id in HeapAllocationRecord.
Mar 31 2023, 10:09 PM · Restricted Project, Restricted Project
Enna1 updated the diff for D147215: [hwasan] Record allocation thread id in HeapAllocationRecord.

address review comments

Mar 31 2023, 10:07 PM · Restricted Project, Restricted Project
Enna1 added inline comments to D147215: [hwasan] Record allocation thread id in HeapAllocationRecord.
Mar 31 2023, 8:49 PM · Restricted Project, Restricted Project

Mar 30 2023

Enna1 updated the diff for D147215: [hwasan] Record allocation thread id in HeapAllocationRecord.

clang-format

Mar 30 2023, 6:05 AM · Restricted Project, Restricted Project
Enna1 updated the diff for D147215: [hwasan] Record allocation thread id in HeapAllocationRecord.

update

Mar 30 2023, 4:38 AM · Restricted Project, Restricted Project
Enna1 updated the diff for D147121: [hwasan] remove requirment for PIE.

rebase

Mar 30 2023, 4:33 AM · Restricted Project, Restricted Project