Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752552AbdGEWjE (ORCPT ); Wed, 5 Jul 2017 18:39:04 -0400 Received: from mail-oi0-f53.google.com ([209.85.218.53]:35457 "EHLO mail-oi0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752403AbdGEWjD (ORCPT ); Wed, 5 Jul 2017 18:39:03 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170705050500.GA72383@beast> From: Linus Torvalds Date: Wed, 5 Jul 2017 15:39:02 -0700 X-Google-Sender-Auth: 5uAF1lrZVyk7sBfyZqDwgP2VgUw Message-ID: Subject: Re: [GIT PULL] gcc-plugins updates for v4.13-rc1 To: Ard Biesheuvel Cc: Arnd Bergmann , Kees Cook , Linux Kernel Mailing List , Jean Delvare Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 540 Lines: 14 On Wed, Jul 5, 2017 at 3:27 PM, Ard Biesheuvel wrote: > > The compiler already keeps track of which auto variables have their > address taken, so it shouldn't be /that/ hard to come up with a plugin > that zero initializes such variables before their address is taken if > no such initialization is included in the code. Yeah. Except one of the issues with the plugin stuff is that people probably don't do any of this normally. I suspect it would be a really nice *general* gcc extension.. Linus