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

Issue 118040043: Support asan-fixed-shadow-offset in GCC

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 9 months ago by preobr
Modified:
9 years, 9 months ago
Reviewers:
dvyukov
Base URL:
svn://gcc.gnu.org/svn/gcc/trunk/
Visibility:
Public.

Description

This patch adds support for non-fixed shadow in asan stack instrumentation. It is required for Kernel AddressSanitizer, as the shadow offset is not known at the compile time, and the shadow may not be allocated during the early boot stages. This option is intended to be triggered by -fsanitize=kernel-address option, together with enabling instrumentation with calls. 2014-07-21 Yury Gribov <y.gribov@samsung.com> Alexey Preobrazhensky <preobr@google.com> New asan-fixed-shadow-offset parameter. gcc/ * asan.c (asan_emit_stack_protection): Add support for new parameter. * params.def: Define new parameter. * params.h: Likewise. gcc/testsuite/ * c-c++-common/asan/no-fixed-shadow-offset.c: New.

Patch Set 1 #

Patch Set 2 : Reupload for params.h #

Patch Set 3 : Fixed test to pass #

Patch Set 4 : 80 char limit #

Patch Set 5 : Initialize shadow_start #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -12 lines) Patch
M gcc/asan.c View 1 2 3 4 5 chunks +41 lines, -12 lines 0 comments Download
M gcc/params.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M gcc/params.def View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A gcc/testsuite/c-c++-common/asan/no-fixed-shadow-offset.c View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M libsanitizer/asan/asan_rtl.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 1
preobr
9 years, 9 months ago (2014-07-21 16:26:51 UTC) #1

          
Sign in to reply to this message.

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