linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [GIT PULL] gcc-plugin updates for v4.19-rc1
       [not found]         ` <CA+55aFy6jNLsywVYdGp83AMrXBo_P-pkjkphPGrO=82SPKCpLQ@mail.gmail.com>
@ 2018-08-15 20:56           ` Kees Cook
  2018-08-15 21:18             ` Alexander Popov
  2018-08-16 22:18             ` Alexander Popov
  0 siblings, 2 replies; 4+ messages in thread
From: Kees Cook @ 2018-08-15 20:56 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Linux Kernel Mailing List, Alexander Popov, Dave Hansen,
	Ingo Molnar, Masahiro Yamada, Thomas Gleixner, Tycho Andersen,
	Mark Rutland, Laura Abbott, Will Deacon, Herbert Xu, linux-crypto

On Wed, Aug 15, 2018 at 1:18 PM, Linus Torvalds
<torvalds@linux-foundation.org> wrote:
> I absolutely refuse to take any hardening patches at all that have
> BUG() or panic() or similar machine-killing in it.

Okay, mental model adjusted. :) It was only "strong discouraged" until now.

> I thought VLA's were mostly gone.

Yes. Out of the ~115 instances we counted when we started with v4.16,
we've chipped away at them pretty steadily. Right now there are two
"one-off"s that haven't been picked up by maintainers:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/log/?h=vla/leftovers

and the remaining series against crypto, for which I am waiting on
further review for Herbert. All the really odd-ball crypto cases have
been handled (and are up for the merge window for v4.19), but there's
still some minor changes that Herbert is examining:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/log/?h=vla/crypto

And after that, there's a single patch to move -Wvla up into the
top-level Makefile:

https://patchwork.kernel.org/patch/10489873/

So, we're basically done, but the timing with the merge window wasn't
great since crypto continues to get tweaked and has taken much longer
than I had expected.

-Kees

-- 
Kees Cook
Pixel Security

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [GIT PULL] gcc-plugin updates for v4.19-rc1
  2018-08-15 20:56           ` [GIT PULL] gcc-plugin updates for v4.19-rc1 Kees Cook
@ 2018-08-15 21:18             ` Alexander Popov
  2018-08-15 21:33               ` Linus Torvalds
  2018-08-16 22:18             ` Alexander Popov
  1 sibling, 1 reply; 4+ messages in thread
From: Alexander Popov @ 2018-08-15 21:18 UTC (permalink / raw)
  To: Kees Cook, Linus Torvalds
  Cc: Linux Kernel Mailing List, Dave Hansen, Ingo Molnar,
	Masahiro Yamada, Thomas Gleixner, Tycho Andersen, Mark Rutland,
	Laura Abbott, Will Deacon, Herbert Xu, linux-crypto

On 15.08.2018 23:56, Kees Cook wrote:
> On Wed, Aug 15, 2018 at 1:18 PM, Linus Torvalds <torvalds@linux-foundation.org> wrote:
>> I absolutely refuse to take any hardening patches at all that have
>> BUG() or panic() or similar machine-killing in it.
> 
> Okay, mental model adjusted. :) It was only "strong discouraged" until now.

I've just got the insight, how to avoid having BUG_ON() in stackleak_erase().
If 'task_struct.lowest_stack' is corrupted, we can erase once starting from the
stack bottom and reset the 'lowest_stack' value.

>> I care not one whit about the reason for them. In fact, if the reason
>> is stated as "it makes debugging easiler", then I fart in your general
>> direction and call your mother a hamster.

That is plain harassment. I ask to *stop* it!

--
Alexander

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [GIT PULL] gcc-plugin updates for v4.19-rc1
  2018-08-15 21:18             ` Alexander Popov
@ 2018-08-15 21:33               ` Linus Torvalds
  0 siblings, 0 replies; 4+ messages in thread
From: Linus Torvalds @ 2018-08-15 21:33 UTC (permalink / raw)
  To: Alexander Popov
  Cc: Kees Cook, Linux Kernel Mailing List, Dave Hansen, Ingo Molnar,
	Masahiro Yamada, Thomas Gleixner, Tycho Andersen, Mark Rutland,
	Laura Abbott, Will Deacon, Herbert Xu, Linux Crypto Mailing List

On Wed, Aug 15, 2018 at 2:19 PM Alexander Popov <alex.popov@linux.com> wrote:
>
> >> I fart in your general
> >> direction and call your mother a hamster.
>
> That is plain harassment. I ask to *stop* it!

The correct reply is

 "Is there someone else up there we can talk to?"

just google for it if you haven't seen the Holy Grail.

(And I got the quote wrong too. I forgot about how your father smelt
of elderberries)

         Linus

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [GIT PULL] gcc-plugin updates for v4.19-rc1
  2018-08-15 20:56           ` [GIT PULL] gcc-plugin updates for v4.19-rc1 Kees Cook
  2018-08-15 21:18             ` Alexander Popov
@ 2018-08-16 22:18             ` Alexander Popov
  1 sibling, 0 replies; 4+ messages in thread
From: Alexander Popov @ 2018-08-16 22:18 UTC (permalink / raw)
  To: Kees Cook, Linus Torvalds
  Cc: Linux Kernel Mailing List, Dave Hansen, Ingo Molnar,
	Masahiro Yamada, Thomas Gleixner, Tycho Andersen, Mark Rutland,
	Laura Abbott, Will Deacon, Herbert Xu, linux-crypto

Hello,

On 15.08.2018 23:56, Kees Cook wrote:
> On Wed, Aug 15, 2018 at 1:18 PM, Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
>> I absolutely refuse to take any hardening patches at all that have
>> BUG() or panic() or similar machine-killing in it.
> 
> Okay, mental model adjusted. :) It was only "strong discouraged" until now.
> 
>> I thought VLA's were mostly gone.
...
> And after that, there's a single patch to move -Wvla up into the
> top-level Makefile:
> 
> https://patchwork.kernel.org/patch/10489873/
> 
> So, we're basically done

I've just sent the 15th version of the series with changes according to the
feedback from Linus:

1. BUG_ON() in stackleak_erase() is safely eliminated;

2. Stack Clash detection (alloca() check) is completely dropped, since global
'-Wvla' should arrive soon. stackleak_check_alloca() for arm64 is dropped as
well in a separate commit.

This version is rebased onto Linus' tree.

Best regards,
Alexander

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-16 22:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20180813214328.GA15137@beast>
     [not found] ` <CA+55aFw5Tkn6DgkAZS-UGOjJpYp2R4rFAm9ixu_=FONeqRyofg@mail.gmail.com>
     [not found]   ` <CAGXu5jK_w7JRywdQ78FfQxeLSMmXbvyDDnaYzj27=y8wnAzKxQ@mail.gmail.com>
     [not found]     ` <CA+55aFyFCWH3YJnRUKtSzs9Mvny0eU+=QANxoPTE+9B9CkUWDw@mail.gmail.com>
     [not found]       ` <CAGXu5jJ1JNSxJABUTAO85z_hXjSkjD=nWEho7KrYJTqqVGivig@mail.gmail.com>
     [not found]         ` <CA+55aFy6jNLsywVYdGp83AMrXBo_P-pkjkphPGrO=82SPKCpLQ@mail.gmail.com>
2018-08-15 20:56           ` [GIT PULL] gcc-plugin updates for v4.19-rc1 Kees Cook
2018-08-15 21:18             ` Alexander Popov
2018-08-15 21:33               ` Linus Torvalds
2018-08-16 22:18             ` Alexander Popov

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 NNTP newsgroup(s).