Message ID | CAK8P3a23f2SjjNiLXaf83K2-LmQcEz_RT2gqgydJ5-k5TJpUOw@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <kernel-hardening-return-12706-patchwork-kernel-hardening=patchwork.kernel.org@lists.openwall.com> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9C22060385 for <patchwork-kernel-hardening@patchwork.kernel.org>; Tue, 20 Mar 2018 03:10:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F0D8290F9 for <patchwork-kernel-hardening@patchwork.kernel.org>; Tue, 20 Mar 2018 03:10:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 838DB291E3; Tue, 20 Mar 2018 03:10:32 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id 877F7290F9 for <patchwork-kernel-hardening@patchwork.kernel.org>; Tue, 20 Mar 2018 03:10:30 +0000 (UTC) Received: (qmail 30148 invoked by uid 550); 20 Mar 2018 03:10:26 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: <mailto:kernel-hardening@lists.openwall.com> List-Help: <mailto:kernel-hardening-help@lists.openwall.com> List-Unsubscribe: <mailto:kernel-hardening-unsubscribe@lists.openwall.com> List-Subscribe: <mailto:kernel-hardening-subscribe@lists.openwall.com> List-ID: <kernel-hardening.lists.openwall.com> Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 30119 invoked from network); 20 Mar 2018 03:10:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=OTv8nFhMmaKR0uFi5wqmC3CbIlISij8Kn4L/bJTGf/w=; b=NMinMgtKErCVs40lGetJ6krwMbyhkb8KIKnPv5q7eqZkQF/iOHiou8ku/2Xf6vAyhx GdAMwJyH0GVVEzjmgcBF+WqFdfs5QruhQ51+8HvtjjJ0X+7I0GKos7joQray8+QqA3oN srCkVL6aN6b3JEQH8pt18APobDXp4P9Pz4r65DW6r5euiRIvYPMPgmqjQWwNvsO7tFkg t/3v9b3pstLTc6wF7Krkcm2ggnwDltaVxHvFqufNB/0utDWGnUwjEOryf32JfREBilqA rvkoubB2SoL7ThW8QcT3PNPsyYREPnMzgIrPknel15edQzR2S2l1DrHVk+zMDxzQthxj H7pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=OTv8nFhMmaKR0uFi5wqmC3CbIlISij8Kn4L/bJTGf/w=; b=I4NTKhSh/5W6J+wUVWowpsDvlRpzLE/QJKvK1NmbAtwZ5kj7OJ3z+9aIKCWmaVh/jJ uA+t/pih+BiOVdUPxHQ3/NvF4O2+53RVRnHYhNB2iDmlGU/6cnjVXlYKmhEeYhkc6b6k LdOSzdCZu6Pe3uSPMJ6rEY/XadWyAnT5heQtNG4Y9ox5bnpuzQVP5sIlWfMxdt65kXEy gtsq5tBKmGHrz6eUfKjBR2JuQaoaH/8npTT3B30rFGeIsLeNlNckNr9Uz5opc8wWNdhP xLzQKgqKnndsvcesWU1w4iONtFvgpi1Juv8mb/ONXhxY05XM3jvvNRPZVPVAEzJxLa/A mjuw== X-Gm-Message-State: AElRT7FTdebLsdCy+cwuidwWsZKalBUUMR1RwuwNeZsk3EV0pWqDor4b DVYxY5DuKjhHpIFOY8h8Lrc/HwkslmXjGKCGkGk= X-Google-Smtp-Source: AG47ELvs0qhFUJwHBlVEia4edOlAVtVDNbjAf+VLbVXMvAiYHG4/U3Af9dv2BZWh43t7JZaL/Y6rCHW1afbFcRRdrnU= X-Received: by 10.200.56.177 with SMTP id f46mr22740314qtc.9.1521515413066; Mon, 19 Mar 2018 20:10:13 -0700 (PDT) MIME-Version: 1.0 Sender: arndbergmann@gmail.com In-Reply-To: <CA+55aFwZnkR5uA5Oe19Xzox=+Bcab-j6-+a=XGqS8yokDU3Dog@mail.gmail.com> References: <1521174359-46392-1-git-send-email-keescook@chromium.org> <ab2933a2-ca7b-eb3b-744d-bc037b1be688@redhat.com> <CA+55aFx92dXg-qnrjGS2Rsna6TE5HSPBgGpSA3cv4n_n3RqBzA@mail.gmail.com> <20180316175502.GE30522@ZenIV.linux.org.uk> <CA+55aFzsrVF7W+YQye=EeF4Wk3yDOTbb_vSiM8s1zkKbE4JV4Q@mail.gmail.com> <CAGXu5jJmAAgaq3VCsUN2yjpHLSc7P-kNrM_4c4cqP=ysFcETXA@mail.gmail.com> <CA+55aFwv0VC67cx2W9yrf7qSFKf6ncVRrsVyLGqdmfSBn4yTYw@mail.gmail.com> <42b4342b-aefc-a16a-0d43-9f9c0d63ba7a@rasmusvillemoes.dk> <CA+55aFwFoTapX2niPiaET5kg7K85qxhav1_PoDDxY0o_VRA5Ag@mail.gmail.com> <38b6da49-1138-017e-7307-f39ff067d6d2@rasmusvillemoes.dk> <CA+55aFw0WC+S3TTE6x_vkLbRV6YLeR4-1S9LsBXhE+E2KZqBuA@mail.gmail.com> <0e94e9582bec4373b5e21c612be179ac@AcuMS.aculab.com> <CA+55aFwZnkR5uA5Oe19Xzox=+Bcab-j6-+a=XGqS8yokDU3Dog@mail.gmail.com> From: Arnd Bergmann <arnd@arndb.de> Date: Tue, 20 Mar 2018 11:10:12 +0800 X-Google-Sender-Auth: 5Q0Lx5VtBJc2X9EAJQHvD9nAgHY Message-ID: <CAK8P3a23f2SjjNiLXaf83K2-LmQcEz_RT2gqgydJ5-k5TJpUOw@mail.gmail.com> Subject: Re: [PATCH v5 0/2] Remove false-positive VLAs when using max() To: Linus Torvalds <torvalds@linux-foundation.org> Cc: David Laight <David.Laight@aculab.com>, Rasmus Villemoes <linux@rasmusvillemoes.dk>, Kees Cook <keescook@chromium.org>, Al Viro <viro@zeniv.linux.org.uk>, Florian Weimer <fweimer@redhat.com>, Andrew Morton <akpm@linux-foundation.org>, Josh Poimboeuf <jpoimboe@redhat.com>, Randy Dunlap <rdunlap@infradead.org>, Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>, Ingo Molnar <mingo@kernel.org>, Ian Abbott <abbotti@mev.co.uk>, linux-input <linux-input@vger.kernel.org>, linux-btrfs <linux-btrfs@vger.kernel.org>, Network Development <netdev@vger.kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Kernel Hardening <kernel-hardening@lists.openwall.com> Content-Type: text/plain; charset="UTF-8" X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/Makefile b/Makefile index 37fc475a2b92..49dd9f0fb76c 100644 --- a/Makefile +++ b/Makefile @@ -687,7 +687,8 @@ KBUILD_CFLAGS += $(call cc-option,-fno-reorder-blocks,) \ endif ifneq ($(CONFIG_FRAME_WARN),0) -KBUILD_CFLAGS += $(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN}) +KBUILD_CFLAGS += $(call cc-option,-Wstack-usage=${CONFIG_FRAME_WARN}, \ + -$(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN})) endif # This selects the stack protector compiler flag. Testing it is delayed