From: Yury Gribov <y.gribov@samsung.com>
To: Jakub Jelinek <jakub@redhat.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>,
Konstantin Serebryany <konstantin.s.serebryany@gmail.com>,
Dmitry Vyukov <dvyukov@google.com>,
Andrey Ryabinin <a.ryabinin@samsung.com>,
Konstantin Khlebnikov <k.khlebnikov@samsung.com>
Subject: Re: [PATCHv4] Enable -fsanitize-recover for KASan
Date: Thu, 23 Oct 2014 07:30:00 -0000 [thread overview]
Message-ID: <5448AE0D.2080207@samsung.com> (raw)
In-Reply-To: <20141023071353.GY10376@tucnak.redhat.com>
On 10/23/2014 11:13 AM, Jakub Jelinek wrote:
> On Thu, Oct 23, 2014 at 11:11:29AM +0400, Yury Gribov wrote:
>> Hi all,
>>
>> On 09/29/2014 09:21 PM, Yury Gribov wrote:
>>>>> This patch enables -fsanitize-recover for KASan by default. This causes
>>>>> KASan to continue execution after error in case of inline
>>>>> instrumentation. This feature is needed because
>>>>> - reports during early bootstrap won't even be printed
>>>>> - needed to run all tests w/o rebooting machine for every test
>>>>> - needed for interactive work on desktop
>>>
>>> This is the third version of patch which renames -fsanitize-recover to
>>> -fubsan-recover and introduces -fasan-recover (enabled by default for
>>> KASan). It also moves flag handling to finish_options per Jakub's request.
>>
>> A new version of patch based upon Jakub's recent changes to
>> -fsanitize-recover=. I've renamed __asan_report_recover_load* to
>> __asan_report_load*_noabort to match UBSan's style.
>>
>> Note that currently -fsanitize=kernel-address
>> -fno-sanitize-recover=kernel-address won't work as expected because we miss
>> __asan_load*_abort family of functions in libasan.
>
> I thought __asan_* functions are provided by the kernel, not libasan, for
> -fsanitize=kernel-address. Or is kernel linked with real libasan.a or
> some stripped down version thereof?
Hm, right, libasan is not linked to kernel so it indeed does not need
any changes. But now I see that for -fsanitize=kernel-address we need
both __asan_load* and __asan_load*_noabort (the latter being default)
depending on -fsanitize-recover setting. Let me update the patch for this.
-Y
next prev parent reply other threads:[~2014-10-23 7:28 UTC|newest]
Thread overview: 73+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-05 6:54 [PATCH] " Yury Gribov
2014-09-05 7:32 ` Dmitry Vyukov
2014-09-05 8:12 ` Yury Gribov
2014-09-05 8:23 ` Dmitry Vyukov
2014-09-05 8:33 ` Yury Gribov
2014-09-05 9:28 ` Jakub Jelinek
2014-09-05 9:32 ` Yury Gribov
2014-09-05 9:05 ` Andrey Ryabinin
2014-09-05 9:12 ` Yury Gribov
2014-09-15 9:38 ` [PATCH][PING] " Yury Gribov
2014-09-18 10:53 ` Jakub Jelinek
2014-09-18 13:14 ` Yury Gribov
2014-09-18 23:47 ` Joseph S. Myers
2014-09-29 17:21 ` [PATCHv3][PING] " Yury Gribov
2014-09-29 17:44 ` Jakub Jelinek
2014-09-29 21:20 ` Konstantin Serebryany
2014-09-29 22:37 ` Alexey Samsonov
[not found] ` <CAGSYnCPwbgZ++2Jt2vE6-ytveSJwSQPZT5umLeKPVWsVjWzwPQ@mail.gmail.com>
2014-09-29 23:17 ` Jakub Jelinek
2014-09-29 23:26 ` Alexey Samsonov
2014-09-30 0:24 ` Konstantin Serebryany
2014-09-30 1:05 ` Alexey Samsonov
2014-09-30 1:49 ` Konstantin Serebryany
2014-09-30 5:40 ` Jakub Jelinek
2014-09-30 7:07 ` Yury Gribov
2014-09-30 17:26 ` Alexey Samsonov
2014-09-30 17:33 ` Jakub Jelinek
2014-09-30 17:36 ` Alexey Samsonov
2014-09-30 17:39 ` Jakub Jelinek
2014-10-01 23:21 ` Alexey Samsonov
2014-10-02 5:58 ` Jakub Jelinek
2014-10-03 18:54 ` Alexey Samsonov
[not found] ` <543BADAB.4090000@samsung.com>
2014-10-17 16:16 ` [PATCH] -fsanitize-recover=list Jakub Jelinek
2014-10-20 10:44 ` Yury Gribov
2014-10-22 8:05 ` Yury Gribov
2014-10-22 10:02 ` Jakub Jelinek
2014-11-18 2:50 ` Alexey Samsonov
2014-11-18 7:27 ` Jakub Jelinek
2014-11-18 8:29 ` Alexey Samsonov
2014-11-18 8:34 ` Jakub Jelinek
2014-11-18 20:25 ` Alexey Samsonov
2014-12-19 2:47 ` Alexey Samsonov
2014-12-19 8:14 ` Jakub Jelinek
[not found] ` <CAGSYnCNLoU0p3FGDwb6mMAAOWFz2Te1m7wmWD94PhcADsQs9rQ@mail.gmail.com>
2015-01-05 17:40 ` [PATCH] -f{no-sanitize,{,no-}sanitize-recover}=all support Jakub Jelinek
2015-01-05 20:32 ` Jeff Law
2015-01-05 21:40 ` Jakub Jelinek
2015-01-05 22:02 ` Jakub Jelinek
2015-01-06 9:00 ` Dodji Seketeli
2014-11-18 7:39 ` [PATCH] -fsanitize-recover=list Yury Gribov
2014-09-30 6:57 ` [PATCHv3][PING] Enable -fsanitize-recover for KASan Yury Gribov
2014-09-30 7:14 ` Yury Gribov
2014-10-23 7:15 ` [PATCHv4] " Yury Gribov
2014-10-23 7:20 ` Jakub Jelinek
2014-10-23 7:30 ` Yury Gribov [this message]
2014-10-23 9:55 ` Andrey Ryabinin
2014-10-23 10:00 ` Jakub Jelinek
2014-10-23 10:07 ` Jakub Jelinek
2014-10-23 10:24 ` Andrey Ryabinin
2014-10-23 10:27 ` Yury Gribov
2014-10-23 10:11 ` Andrey Ryabinin
2014-10-23 10:17 ` Jakub Jelinek
2014-10-23 10:38 ` Yury Gribov
2014-10-23 10:39 ` Jakub Jelinek
2014-10-23 11:12 ` Andrey Ryabinin
2014-10-24 8:37 ` Yury Gribov
2014-10-24 9:46 ` Dmitry Vyukov
2014-10-24 9:52 ` Jakub Jelinek
2014-10-24 9:56 ` Dmitry Vyukov
2014-10-24 9:59 ` Jakub Jelinek
2014-10-24 10:01 ` Yury Gribov
2014-10-24 10:21 ` Dmitry Vyukov
2014-10-28 8:46 ` [PATCH v5] " Yury Gribov
2014-10-28 9:31 ` Jakub Jelinek
2014-10-28 10:15 ` Yury Gribov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5448AE0D.2080207@samsung.com \
--to=y.gribov@samsung.com \
--cc=a.ryabinin@samsung.com \
--cc=dvyukov@google.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jakub@redhat.com \
--cc=k.khlebnikov@samsung.com \
--cc=konstantin.s.serebryany@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).