Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1137771imm; Wed, 15 Aug 2018 12:05:16 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw+5Yoczb70pSQmU90aHLMtT0TbTnhGIQeEs9ygF4K4ds+5SF6zDyC3dWuSztvWgCcOxEs4 X-Received: by 2002:a63:195e:: with SMTP id 30-v6mr25661024pgz.192.1534359916574; Wed, 15 Aug 2018 12:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534359916; cv=none; d=google.com; s=arc-20160816; b=gJukynBPrOJApGaFU0dhHudUN5s3sKPM6SVcLoGrplbKK9ZAJyeZEHJ3+oBm1lV7vO RIgEYfI8T2yRaWclSgYqd6bZXfZ6twPnLA8MXyLV+otvnJY1OjmoZpB+5jmq8QI+Kaj2 mfAWlUfUk0mzM3qZBzjsWMP/MyH4xBHhUfP885/HBvbH2hH8D0zFJfmqNsz21DZfBXNl 7q92/M1+8CkmwUC/nqgSEFeDzCSKgauOlhpQPkQksWaG+qgEN5XaXJR5mwaNAo1eIYnc 8uicDMGjAz/Msa7pVYUGZboO5O9tkraD2wFREt+H03DSzGh9TlOBr6qsOhlfIwX6rJQd G0Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=1zIBQK5kS4J9YhuEHes31K5V1rpNIQR59/RCacyOg08=; b=J4DWEmQydSrIb7XoqE9Wfz2rjTX+EVzQiphZiXm95n5/loNiJz41zFnbtZhB2auOMD nxTIifVRgBgDdzYBqKo1iJs4Yz8s8JrjJ4a5EW25thQY65LgBFOJW6eRd58OKyaYmGL9 U1DQx7BfbS9LPpCc4Vqo5UmIzCRVBr6BsHLnVZBIjrUU8MpAiDG1V+cUbEwnEhiAGKJ3 njS/s+wpHZhbIyH+ASh0K6YpvhxfayOOJGod1bYrJP/GOalnIE/h6h2qIN5ltzY1EUKy A2p33DTAK9WdBWUhyUCn9WJC5aoj90xW20NjjAjd7yMWw7GtyEQSx4GAzBew9O2UyTt2 OVYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=GfagmevK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w25-v6si25031790pga.58.2018.08.15.12.05.00; Wed, 15 Aug 2018 12:05:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=GfagmevK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727427AbeHOV5f (ORCPT + 99 others); Wed, 15 Aug 2018 17:57:35 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:39606 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726749AbeHOV5f (ORCPT ); Wed, 15 Aug 2018 17:57:35 -0400 Received: by mail-io0-f196.google.com with SMTP id l7-v6so1854110iok.6 for ; Wed, 15 Aug 2018 12:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1zIBQK5kS4J9YhuEHes31K5V1rpNIQR59/RCacyOg08=; b=GfagmevKUwJnXKfiX4c3VHiczhZ1jYALrMyc5ASHTl71B2znVUPZWrkHrTe/+6wBtz 6opj6QDEM4dbJAh5QIgHxlHIgKYzi8PAKvx1QAimYegUiXwwFLY6Q1vEfLqYEBckuoVT nrXGi40nEAv45KqbC98QIVSKyQFKhuUnXRE6A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1zIBQK5kS4J9YhuEHes31K5V1rpNIQR59/RCacyOg08=; b=q6tSlu8JSgz+TIQgRURE5fZfAYrD8mfAHhL/CJdDMfR9YX0AScRxQJuKoRbpDeoOTU TijBmQ/P4GgQanqhh3DtpPr0OonGk+lAwXpGO2PtL1fNm+9y2FnyoQ/NJUC88soz7MSd JGKPmd6PiYrngQue7jw9fN03W9G+kf5PCz7+UpJAdv4WG5lkxjj+8d5rqP4bmWWkgzly S2PaxCKSIYpAEO/E2hCxTXsyiLTtvmIfayRU8lVomi/WwRCWyqMjaRHwepJ0iqGS4/Ul n+P2GchZR8EcFJA8lSKhtqrPglomCRuLCegTM2c6fBH72lTQX+C5x8kxa0/cbFJlJtVV tfuA== X-Gm-Message-State: AOUpUlHNdjJ90u+brMjMIvm1Axai6JvZFA0hCPtGjrJ92c2XN7BFlt98 bCBn06A+JCL7Dcc9Q4jt9X0bVJ8M00hnTR1Sgks= X-Received: by 2002:a6b:7a08:: with SMTP id h8-v6mr18963431iom.238.1534359851720; Wed, 15 Aug 2018 12:04:11 -0700 (PDT) MIME-Version: 1.0 References: <20180813214328.GA15137@beast> In-Reply-To: From: Linus Torvalds Date: Wed, 15 Aug 2018 12:04:00 -0700 Message-ID: Subject: Re: [GIT PULL] gcc-plugin updates for v4.19-rc1 To: Kees Cook Cc: Linux Kernel Mailing List , Alexander Popov , Dave Hansen , Ingo Molnar , Masahiro Yamada , Thomas Gleixner , Tycho Andersen , Mark Rutland , Laura Abbott , Will Deacon Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 15, 2018 at 11:35 AM Kees Cook wrote: > > I swear I'm doing my best. Are you speaking of > stackleak_check_alloca() or stackleak_erase()? These were both > discussed on the list, and we weren't able to come up with > alternatives: in both cases we're off the stack, and recovery is > seemingly impossible. Why do you even *test* that thing? Why don't you just allocate stack and clear it. Dammit, the whole f*cking point of this patch-set is to clear the stack used. It is *not* supposed to do anything else. If the process runs out of stack, that's caught by the vmalloc'ed stack. And if you don't have vmalloc'ed stack, then clearly you don't care. I refuse to take this kind of code that does stupid things, and then *because* it does those initial stupid things it does even more stupid things to correct for it. I hated the thing to begin with, told people that there are better approaches that don't have the downsides, got ignored, and then I'm pushed crap. No. Linus