Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1235932imm; Wed, 15 Aug 2018 13:57:44 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwTVOiqbxLuyf5Xzf0iG+CVAmazpFpsWET6b2gYtV9x1vRDFkFcTcZyG0aFsTOU67JJYU7E X-Received: by 2002:a62:1b4a:: with SMTP id b71-v6mr28734161pfb.221.1534366664786; Wed, 15 Aug 2018 13:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534366664; cv=none; d=google.com; s=arc-20160816; b=Pa2jc9aUT+dghH/KstY563ml/P0Ncc9IqeMHG9OB6pPQF/Q0o4TJ3kFXwiw4dWlxdk CbsIR8m84inLbo5rdIypJP1NUUIU3YB0OcXYEy8z18tnj6XqL4bGsRT6jdGVXULPRq5V /p54KlVaVXIx39dra0SOXCt5Hxp6xsrDblMkIdg3lUE+ReeTowkUGy4O1b0RH+lJvIye v1KQU2Imvxvx++j9amcviGBaoQAEhMXHDuoe0tSlPfp4jPIeygIIlEfkp1pUufUyd+Yw kN4ec+CsNzjL8Kdwr62wz56F6ooQUNVmbZlgRmU5DoiazbGrD7LTmkrD2cQIMF8m4kq/ ftuQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=bTNVJAMjXkljxYvMVSkLhToG62VWlCP5thIWKqOyyXo=; b=Fh2iI+bY9dY/0mAv0Fz9wQ/b4aLQ7WEgRYdvqOCFjVjCP72/gEfskJmnXWB35TcI2C 8iYV7piZPF3PS7XVOcMlpetjc9DF6jzRi7EMDgbALwFY/RlNIfLDitjtOBfMQSoMQ6fj 3w5YZ/DpCTowb4UyJcfzP/cedhaXv1/SDUKIAztI88FJfouYfG75gO9Cepnf7F1JjMo2 aYbzliewh7+H1XcWBPUxvoAu63GLGBNEAvbnVhi/K70TJg3wkNYy59d/MZ9Zkarxbate Sft7vu4m0vYiC78nmwOKoCpcDWDIYtrwZqc6zm3utobPtyiphnDR+2uICJvOTrzSjjsc ozjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ePCaItHs; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si19169673ple.262.2018.08.15.13.57.29; Wed, 15 Aug 2018 13:57:44 -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=@chromium.org header.s=google header.b=ePCaItHs; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727330AbeHOXu0 (ORCPT + 99 others); Wed, 15 Aug 2018 19:50:26 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:38907 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726123AbeHOXu0 (ORCPT ); Wed, 15 Aug 2018 19:50:26 -0400 Received: by mail-yw1-f67.google.com with SMTP id r3-v6so1875826ywc.5 for ; Wed, 15 Aug 2018 13:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bTNVJAMjXkljxYvMVSkLhToG62VWlCP5thIWKqOyyXo=; b=ePCaItHs6r6oGKMj8tA/fIx5+X4bvZ0Yj9N9nlB1veat0b2PcBZXnOUuzg5ACUm6Te FcNFigx/6Duv0qCsAfbwi37LnEt0923DsiyHU5R3K87WxE5sOKvSPL3U88B7Mob613nZ MzFb4qhD04m0yB79qSK20pWxhKbgSd9RStVXI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bTNVJAMjXkljxYvMVSkLhToG62VWlCP5thIWKqOyyXo=; b=o7CtutY2uDPaEQ2jip0Y6/3gc/wGRsuLA7XGqyVd7FjBBovGdDICKoazKOsD6JTIDn Hp8sw1GtUp00PS4pP4wZnuz6tQ4HevJf+jqFA80V1IW/U74yR70/2OzjvtRxm8+G29xe 8lUaZhMxjpGQe5SknyKOzmUPrMly7m2JASuoYfd47aTPo74JBMIvrbOJcvdESsEklGmz vV0/LJamHOvyJxDjSpBUhzvRtTSHcCaZbu22X6p+dOY4Ybly6MeVJ1zQmnRtaWXEHA26 5kQuM66B7qYe64k36l6ZgTHVreplR1yTUf3U4qV/1H9b607OBVZH2olbKedEphe5co/n aLlw== X-Gm-Message-State: AOUpUlEsHQzfYQ42Rp4wFcR2Sp0btF5j/uS40aJ8hC2GbVKVJlCW/YUX TEG9hteT3NPKC+QBSxvH/onBCIkhcC0= X-Received: by 2002:a25:9705:: with SMTP id d5-v6mr12335782ybo.77.1534366597257; Wed, 15 Aug 2018 13:56:37 -0700 (PDT) Received: from mail-yw1-f48.google.com (mail-yw1-f48.google.com. [209.85.161.48]) by smtp.gmail.com with ESMTPSA id h10-v6sm5923723ywa.35.2018.08.15.13.56.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Aug 2018 13:56:35 -0700 (PDT) Received: by mail-yw1-f48.google.com with SMTP id z143-v6so1869044ywa.7 for ; Wed, 15 Aug 2018 13:56:35 -0700 (PDT) X-Received: by 2002:a25:15ca:: with SMTP id 193-v6mr16169286ybv.484.1534366594557; Wed, 15 Aug 2018 13:56:34 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:5092:0:0:0:0:0 with HTTP; Wed, 15 Aug 2018 13:56:33 -0700 (PDT) In-Reply-To: References: <20180813214328.GA15137@beast> From: Kees Cook Date: Wed, 15 Aug 2018 13:56:33 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] gcc-plugin updates for v4.19-rc1 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 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 1:18 PM, Linus Torvalds 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