From patchwork Sun Oct 28 17:24:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 10658685 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 41570109C for ; Sun, 28 Oct 2018 17:24:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2599129131 for ; Sun, 28 Oct 2018 17:24:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 190A7298A0; Sun, 28 Oct 2018 17:24:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A698829131 for ; Sun, 28 Oct 2018 17:24:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726757AbeJ2CJT (ORCPT ); Sun, 28 Oct 2018 22:09:19 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35562 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726692AbeJ2CJT (ORCPT ); Sun, 28 Oct 2018 22:09:19 -0400 Received: by mail-pg1-f195.google.com with SMTP id 32-v6so2752753pgu.2 for ; Sun, 28 Oct 2018 10:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=K6O8T0JW/yZqF5e35ubtRewtxR5rCSPy1fbwHFqgkyQ=; b=gllXGvv1nW0L7fEaB1Z2VZ31atxoS6kevyW3E3G0r33NrQewBUm387eRZUwBqgHBiI UC18XV1pXE8DvSmtnKQpTOXPIZRYp0oRy7KJQHSUIE7kVNqAJBpUjM3gEPwpCLw10Jrs kX6yZJbJE2c27ipLK2GyDx+M0SiiNaxp8b3B4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=K6O8T0JW/yZqF5e35ubtRewtxR5rCSPy1fbwHFqgkyQ=; b=GAcgl0VfMvlZTL2YhchM5QAj8tnbJCE84Byn5qfG5uvPcrGzCuwkjcy4YufWmnGLgI /aY0Gtx4iL0jQ4G2zH0IIt1AP2b48HF4or6EL3KmsQW0qxO9bG+Dpy1twfp3GH0YhU8o eOIOzZ7yWg0ziy70jRlYUL/uzRsZuz0J+LkGF9YGspxBnz0s6d5UqhCQH5Vu+Ba3vm0Q QiF5NfBFChqAX4SD9hB7aHPlbGLMqOTWIzUSZoguMvp1IwPNfr6qFh0Hej0ytKA2MlZj UWO/xEDCVgSVcE85NCQdVRJZRSAtz25I8RCOAmzM/QBo4t8Di+3WYd2IK2as/TWL73mR Ml9Q== X-Gm-Message-State: AGRZ1gIebUfv0z8e67InZZuPM0a0SgZlhFcICJlg8GbfHsBseX9b/imK PajegrZXhg3Y2T0iCYl4iC57yg== X-Google-Smtp-Source: AJdET5dNn/t0uNG5gSHkrbtXiwoqFfF0bzEBNPqE/5AJmhGHZwLbkUZclcpZ0TwLuG4LomEgSpRa8w== X-Received: by 2002:a63:6cc:: with SMTP id 195mr10958632pgg.52.1540747443916; Sun, 28 Oct 2018 10:24:03 -0700 (PDT) Received: from www.outflux.net (173-164-112-133-Oregon.hfc.comcastbusiness.net. [173.164.112.133]) by smtp.gmail.com with ESMTPSA id z22-v6sm18611546pgv.24.2018.10.28.10.24.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 28 Oct 2018 10:24:02 -0700 (PDT) Date: Sun, 28 Oct 2018 10:24:01 -0700 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Andrew Morton , David Airlie , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kbuild@vger.kernel.org, Masahiro Yamada , Nick Desaulniers Subject: [GIT PULL] VLA removal for v4.20-rc1 Message-ID: <20181028172401.GA41102@beast> MIME-Version: 1.0 Content-Disposition: inline Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Linus, Please pull these VLA removal changes for v4.20-rc1. This turns on "-Wvla" globally now that the last few trees with their VLA removals have landed (crypto, block, net, and powerpc). Arnd mentioned that there may be a couple more VLAs hiding in hard-to-find randconfigs, but nothing big has shaken out in the last month or so in linux-next. We should be basically VLA-free now! Wheee. :) Thanks! -Kees The following changes since commit 57361846b52bc686112da6ca5368d11210796804: Linux 4.19-rc2 (2018-09-02 14:37:30 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/vla-v4.20-rc1 for you to fetch changes up to 0bb95f80a38f82884693194ea720e9cca5e12ada: Makefile: Globally enable VLA warning (2018-10-11 08:17:50 -0700) ---------------------------------------------------------------- Globally warn on VLA use - Remove unused fallback for BUILD_BUG_ON (which technically contains a VLA) - Lift -Wvla to the top-level Makefile ---------------------------------------------------------------- Kees Cook (1): Makefile: Globally enable VLA warning Masahiro Yamada (1): compiler.h: give up __compiletime_assert_fallback() Makefile | 3 +++ drivers/gpu/drm/i915/Makefile | 2 +- include/linux/compiler.h | 17 +---------------- lib/Makefile | 2 ++ scripts/Makefile.extrawarn | 1 - 5 files changed, 7 insertions(+), 18 deletions(-)