mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alexander Popov <alex.popov@linux.com>
To: Kees Cook <keescook@chromium.org>,
	Robin Lindner <robin.lindner1@t-online.de>
Cc: re.emese@gmail.com, kernel-hardening@lists.openwall.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Documentation patch (gcc-plugins kernel)
Date: Wed, 14 Aug 2019 14:29:07 +0300	[thread overview]
Message-ID: <9d1a86e8-0997-54ba-d3b9-58cc92af3a1f@linux.com> (raw)
In-Reply-To: <201908011311.A06FB03C6C@keescook>

Hello Kees and Robin,

On 01.08.2019 23:14, Kees Cook wrote:
> On Thu, Aug 01, 2019 at 09:30:58AM +0200, Robin Lindner wrote:
>> Cleaned documentation comment up. I removed the "TODO" because it was very old.
>> ---
>>  scripts/gcc-plugins/stackleak_plugin.c | 2 --
>>  1 file changed, 2 deletions(-)
>>
>> diff --git a/scripts/gcc-plugins/stackleak_plugin.c b/scripts/gcc-plugins/stackleak_plugin.c
>> index dbd37460c573e..d8ba12c3bb238 100644
>> --- a/scripts/gcc-plugins/stackleak_plugin.c
>> +++ b/scripts/gcc-plugins/stackleak_plugin.c
>> @@ -144,8 +144,6 @@ static unsigned int stackleak_instrument_execute(void)
>>  	 *
>>  	 * Case in point: native_save_fl on amd64 when optimized for size
>>  	 * clobbers rdx if it were instrumented here.
>> -	 *
>> -	 * TODO: any more special cases?
>>  	 */
>>  	if (is_leaf &&
>>  	    !TREE_PUBLIC(current_function_decl) &&
> 
> As to the content of the patch, let's also CC Alexander...
> 
> Are there no more special cases?

I don't know other special cases when we should avoid the instrumentation.

And I can't imagine a method of finding such cases except runtime testing.

Robin, I would better save this comment only removing "TODO" if it matters.

Best regards,
Alexander

      reply	other threads:[~2019-08-14 11:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <ebb6d995-a356-bc01-074b-6154a283e299@t-online.de>
2019-08-01 20:14 ` Kees Cook
2019-08-14 11:29   ` Alexander Popov [this message]

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=9d1a86e8-0997-54ba-d3b9-58cc92af3a1f@linux.com \
    --to=alex.popov@linux.com \
    --cc=keescook@chromium.org \
    --cc=kernel-hardening@lists.openwall.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=re.emese@gmail.com \
    --cc=robin.lindner1@t-online.de \
    /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

all inboxes | Powered by JetHome®