Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp927696ybl; Tue, 28 Jan 2020 15:05:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxOtLCmCXrZlXj7MxdnZh2X/wLO4K4OVu+KTk/kcd0u+LcI5qz3WhAt/XZQVSKqZLxNQNBx X-Received: by 2002:a9d:65cb:: with SMTP id z11mr17348744oth.348.1580252717994; Tue, 28 Jan 2020 15:05:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580252717; cv=none; d=google.com; s=arc-20160816; b=QLJ2iU52dwwFKfsY1a/O0I4g+CQ1TvOfPWE3sq6L9ccLc+/dwAOxYBQSZ/ENgMRWvj NXkj5NtY1WPobOgB0Ndc3Gxwqb+uNtqo0jP4IbVL2MNGOUBNh0YyAE47KvZn5V0BS/tv peXpH9+MXmuwZ5ZlGJ+S/w+iODGYeSwJickwZAC22y4Q3zUG6cdusum1hYUnT6kpRtu2 dZHF2KNhl/GZWrWAruGwcA9wsWUtIZmSvPhzFg+Nr11EaEVGpgbdWSgPkwjdhNG6iTQZ nW3dRv/+vgwkEXK7HVavkngEkStwSGBrre5C8Fbi4gdkY7yXadjuBR+mPGxTrzGQvySd CGvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=BQHjrKsw3mb8tLLCYB49BaKjx4tgpI3Vuluj4gny7rU=; b=MEKxp1NZ2ugFWb4kZWxt/qgi/cTE+06biF7Zy126r9bBsFI0JfmmKWe5yhp2fOZqg9 5ETZu/68ttce88kjQtgd4mqljYRoeykXYtnlwWo6JTSRX1fu+YF+kOCBAIKtJebBXD8i NNWLJ0pobrWbq22j3zG8T3KzFy1EjjxA9gHYNEdaLNE/Q3WOH/XU3zjz5rb0HTikWZ/J wY3yp7eWJKP6BGXpYfxqoWgTd3r1oUrH3UdEA05MRC7kzM9QEJP8I6orjq7Ux63PsVfd Yli8kehQx3+/EJUFxsyPHDUADLtm76QhniNqpNiPdr4LDACkOYg0I63LHHmGvXqmdeH2 t7kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LpOh1pel; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si116111oiz.237.2020.01.28.15.05.05; Tue, 28 Jan 2020 15:05:17 -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=@chromium.org header.s=google header.b=LpOh1pel; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726512AbgA1XDN (ORCPT + 99 others); Tue, 28 Jan 2020 18:03:13 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36002 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbgA1XDM (ORCPT ); Tue, 28 Jan 2020 18:03:12 -0500 Received: by mail-pf1-f195.google.com with SMTP id 185so3650419pfv.3 for ; Tue, 28 Jan 2020 15:03:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=BQHjrKsw3mb8tLLCYB49BaKjx4tgpI3Vuluj4gny7rU=; b=LpOh1pelzzXYfkGWr73OW4OXkP6vJ+5tlOVGIrXHH0liSRTIYgs16JDRT8lIHZPSo+ dzMCo+fDtdEyrfdhSOgOsUdx/PTzY7tK1vgYVxJyhCk5zIwDZ+SJOlUmyOxrOKqHkHUP +3y3cfByRw61fUuuU8kUXR2LYkUe4oaI/7WYY= 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:references :mime-version:content-disposition:in-reply-to; bh=BQHjrKsw3mb8tLLCYB49BaKjx4tgpI3Vuluj4gny7rU=; b=AcsxCc8PpfEv3Owndw6ecte0iWP8cHDxuQpSofp4cvcKCMYDmBRiSjKwtY8xD4uvsJ e3na22yhsJ9MT2LnSvdT2va04xCXWaP8ev9jLzAU7MWUrhM44ONW79BkYHIO8IwOeNQ2 OfzRha+vVHFdn1OcE5tNnORmMpMjlMFPcs4flw0njlv2J6/XDdQpcTwpzN6ENjDMGKP5 IkgRt6kxRwP3ik+UlT7Kk+GzLDCegjau+ofI9SlQXc2YVfPHr0L65NXTHNtDoDh/0/RX u8f2mnenis/w8A5DGOh96Wo/I3IPN2fiwaTTDMUNsoY7DONS3BxRqwucEboWpPcCbCNx aj+A== X-Gm-Message-State: APjAAAXJVJp62qEUKPy4QhO+uZd/V1OqjkkyjvqXEZiKMF05xzrV6sdX dNtdZiAwrC+rsAKYfNPLE2DO4Q== X-Received: by 2002:aa7:9796:: with SMTP id o22mr6119730pfp.101.1580252592170; Tue, 28 Jan 2020 15:03:12 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id a19sm3926515pju.11.2020.01.28.15.03.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2020 15:03:11 -0800 (PST) Date: Tue, 28 Jan 2020 15:03:10 -0800 From: Kees Cook To: Greg Kroah-Hartman Cc: Alexander Popov , Arnd Bergmann , linux-kernel@vger.kernel.org, notify@kernel.org Subject: Re: [PATCH v2 1/1] lkdtm/stackleak: Make the test more verbose Message-ID: <202001281502.F4977FD279@keescook> References: <20200102234907.585508-1-alex.popov@linux.com> <202001271514.345A5CC9C@keescook> <20200128075050.GC2105706@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200128075050.GC2105706@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 28, 2020 at 08:50:50AM +0100, Greg Kroah-Hartman wrote: > On Mon, Jan 27, 2020 at 03:15:08PM -0800, Kees Cook wrote: > > On Wed, Jan 22, 2020 at 02:58:44PM +0300, Alexander Popov wrote: > > > On 03.01.2020 02:49, Alexander Popov wrote: > > > > Make the stack erasing test more verbose about the errors that it > > > > can detect. > > > > > > > > Signed-off-by: Alexander Popov > > > > --- > > > > drivers/misc/lkdtm/stackleak.c | 25 +++++++++++++++++-------- > > > > 1 file changed, 17 insertions(+), 8 deletions(-) > > > > > > Hello! > > > > > > Pinging about this version of the patch. > > > > > > Kees, it uses dump_stack() instead of BUG(), as we negotiated. > > > > Yup, this is in my queue -- I've just gotten back from travelling and > > will get to it shortly. :) > > > > Greg, feel free to take this directly if you want, too. > > If I were to take it, it would have to wait until after 5.6-rc1, sorry. Well, it has to go via drivers/misc anyway, so I think timing is no different. I would consider this a feature patch, not a bug fix, too. -- Kees Cook