Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp962887imj; Fri, 15 Feb 2019 09:39:55 -0800 (PST) X-Google-Smtp-Source: AHgI3IYBJd7l6L0/xN/ey11Y+OgkLSCg5LINmijFuAk18IEhs7wD+Svwz7RES5aDnZCJhD4RO+Kf X-Received: by 2002:a17:902:6b03:: with SMTP id o3mr11394023plk.126.1550252395631; Fri, 15 Feb 2019 09:39:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550252395; cv=none; d=google.com; s=arc-20160816; b=gPdJvyp/5kWyCtInwsbj9WAO8rFNrrckzSZ6POQbyr469sdDc9YU5KYMtUpsNoq/Oh B/BX0Mi7QjQtcEmYBPFlVP+oUJezmSp7SWhLJxQ3A/hze555t0c2d/+hZ2yqHSEKrJI1 wMUzZXLTgUzLIb4hkykusr6zgsAlHd9nUKbhFrrdY5oRx6Vl75u0Ibx8xcuazjVx9Yhn sbZs1EH3p/N2N6jKfROFTrm0EHickl5xbSxtST9qyy8xbsH4zJ5A9JjiCN09b+Rfr9W+ Uki7B3e05G0vyf5QlWKgIsudqJMu+F32+BHqWzkW2TpjAFLlEskQW3nHWArYTPjznpff 7vfQ== 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; bh=LGi7S/MNU3uYxAOGaRJ4HSpN828sKONDNI6b2ZNYQr8=; b=AXQoFgPFPUOp6SUNlHgPcMQ3bEiJu0qc56qAR3ah3VHnRTD6LsGa+P/4P6Sq5UKIJQ Cwsl8NPrslHsSgqxpzKox2FzqpGkBp4FyBdoVW/oncq8DvOfLrBl7dzk86UcmRS/yFhs xhKi/S5WoVlk5Tf0/JudzOYS4JOiGlf1SshW2ix130wh+2MbkI6JKj7uEbx4+andNk/i 1FhELDSTFKuCsT6Q/uu/Z2MjwCIqHwWVCQnwjyQL4EAmck/StFrb/Rvqa/CTxCoFFUbU TTC/B/AueX501f9x9RcsaE4rLeyE1uDxJg+80EJWXYcH+ghTB77kEqNyVJwnFb1gWaTH ECjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SbZlifBX; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b38si6302855plb.11.2019.02.15.09.39.40; Fri, 15 Feb 2019 09:39:55 -0800 (PST) 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=@linaro.org header.s=google header.b=SbZlifBX; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729738AbfBORi5 (ORCPT + 99 others); Fri, 15 Feb 2019 12:38:57 -0500 Received: from mail-it1-f196.google.com ([209.85.166.196]:55248 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbfBORi4 (ORCPT ); Fri, 15 Feb 2019 12:38:56 -0500 Received: by mail-it1-f196.google.com with SMTP id f10so2471157ita.4 for ; Fri, 15 Feb 2019 09:38:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LGi7S/MNU3uYxAOGaRJ4HSpN828sKONDNI6b2ZNYQr8=; b=SbZlifBXMLKzWTPrMvZu0XJvqq7bCGviH/ni2/ZvQ0CFNimrCGPrjmQOSU0HO1sl8N GnJ/eSwr8tZytPoTCM5pv19ZqTmwrdmWuNxIhunWly5ialJVmpqKjRWv2BnqpuCAXjsX pQV94nbWJHRAAGmLbfiLaSLykwszA3N/CMc8hBt+WgI41RES9oj7zITd7BJDqGnHZO97 QtuuCHFpnHN4acv9ovX7+sUAsA/f2sfKeZKhr79gn73EGoWC+H+Y9GOz3tTldCiLFZ/L fqrPsqupCOQag8FT93ZpS1Yxa9XedcBbTNuHytSwk9KcQv+pbl9mlnj8QlKt5bteOfFs cXQA== 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=LGi7S/MNU3uYxAOGaRJ4HSpN828sKONDNI6b2ZNYQr8=; b=Xuk9MooixWpGsvKHpK81Pq8mYK9WNl+3TraXmHLyx75ZIvsEgkmNIZOuyEa5iYAjS7 8lkItoJx0qgwaSB/7jwDdyRbXe9OHg6oz/LlE7CMop8k2BwNK040vZ2JaVyOVXRYb8Lx 78VkyX2hDiwodWi4snfv7Vp8HdVMrqcvp+TxNcC9by9+e1GNMLiFHn3gez9T2ncNWGLZ gljqrcXfvsPk47fOczTGZ+yEdgFpftREylbkUsAaXTvCjfjsONtya66AymVmvgvly0Dz EIy+9UjypKdGdqFbnOmdTJd/r1W3qM7I+vf8V1qmtbd9LAJq4xhVmjgO2uNt0niYfxkd f8DA== X-Gm-Message-State: AHQUAuYKb5W4pZlsKz5Yu8nkgfb7xiRINUotPCTzGe+cQ7Fk8xNpk4pl LuycbmcEZSPOGeRH7Fd5qt+y3C6Fk/lMFHITLl7CFg== X-Received: by 2002:a02:3342:: with SMTP id k2mr5385833jak.62.1550252335329; Fri, 15 Feb 2019 09:38:55 -0800 (PST) MIME-Version: 1.0 References: <20190212180441.15340-1-keescook@chromium.org> In-Reply-To: <20190212180441.15340-1-keescook@chromium.org> From: Ard Biesheuvel Date: Fri, 15 Feb 2019 18:38:43 +0100 Message-ID: Subject: Re: [PATCH 0/2] gcc-plugins: structleak: Generalize to all variable types To: Kees Cook Cc: Linux Kernel Mailing List , Emese Revfy , Alexander Popov , Laura Abbott , Jann Horn , Alexander Potapenko , Kernel Hardening 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 Tue, 12 Feb 2019 at 19:04, Kees Cook wrote: > > Instead of a new plugin for stack initialization[1], this improves > structleak to handle initialization of all variable types. Since the > instrumentation happens at a different point, the "switch" statement > changes from the earlier posting[2] are no longer needed. As before, > this also introduces a stack initialization regression testing module to > validate various kinds of stack variable usage vs compiler instrumentation > for initialization. See the individual patches for more details. > For the series, Reviewed-by: Ard Biesheuvel (although I reviewed 2/2 only cursorily) > [1] https://lkml.kernel.org/r/CA+55aFykZL+cSBJjBBts7ebEFfyGPdMzTmLSxKnT_29=j942dA@mail.gmail.com > [2] https://lkml.kernel.org/r/20190123110349.35882-1-keescook@chromium.org > > Kees Cook (2): > gcc-plugins: structleak: Generalize to all variable types > lib: Introduce test_stackinit module > > lib/Kconfig.debug | 10 + > lib/Makefile | 1 + > lib/test_stackinit.c | 378 ++++++++++++++++++++++++ > scripts/Makefile.gcc-plugins | 2 + > scripts/gcc-plugins/Kconfig | 58 +++- > scripts/gcc-plugins/structleak_plugin.c | 36 ++- > 6 files changed, 463 insertions(+), 22 deletions(-) > create mode 100644 lib/test_stackinit.c > > -- > 2.17.1 >