Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7723)

Issue 314180043: TBR: i#1986 WSL: use safe reads for get_segment_base() on WSL

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years, 4 months ago by bruening
Modified:
7 years, 4 months ago
Reviewers:
zhaoqin
CC:
dynamorio-devs_googlegroups.com
Visibility:
Public.

Description

Commit log for first patchset: --------------- i#1986 WSL: use safe reads for get_segment_base() on WSL Adds safe_read_tls_self() and safe_read_tls_app_self() for reading the segment bases under the Windows Subsystem for Linux (WSL), where the arch_prctl queries are broken in the kernel. Relaxes the fatal error on WSL into a warning as small tests now seem to work, though with some curiosities. Further testing is still needed. ---------------

Patch Set 1 #

Patch Set 2 : Committed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -23 lines) Patch
M core/arch/asm_defines.asm View 2 chunks +8 lines, -2 lines 0 comments Download
M core/arch/x86/x86.asm View 1 chunk +27 lines, -3 lines 0 comments Download
M core/unix/loader_linux.c View 2 chunks +4 lines, -0 lines 0 comments Download
M core/unix/os.c View 1 chunk +1 line, -0 lines 0 comments Download
M core/unix/os_asm_defines.asm View 1 chunk +13 lines, -5 lines 0 comments Download
M core/unix/os_private.h View 1 chunk +5 lines, -1 line 0 comments Download
M core/unix/signal.c View 1 chunk +9 lines, -1 line 0 comments Download
M core/unix/tls.h View 1 chunk +3 lines, -0 lines 0 comments Download
M core/unix/tls_linux_x86.c View 5 chunks +44 lines, -10 lines 0 comments Download
M core/win32/events.mc View 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 2
bruening
7 years, 4 months ago (2016-12-11 00:48:52 UTC) #1
bruening
7 years, 4 months ago (2016-12-11 00:48:54 UTC) #2
Committed as
https://github.com/DynamoRIO/dynamorio/commit/826aae0ed0e415add3ecae33388d231...

Final commit log: 
---------------
i#1986 WSL: use safe reads for get_segment_base() on WSL

Adds safe_read_tls_self() and safe_read_tls_app_self() for reading the
segment bases under the Windows Subsystem for Linux (WSL), where the
arch_prctl queries are broken in the kernel.

Relaxes the fatal error on WSL into a warning as small tests now seem to
work, though with some curiosities.  Further testing is still needed.

Review-URL: https://codereview.appspot.com/314180043
---------------
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b