Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4033422ybl; Mon, 27 Jan 2020 15:17:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxcUKmRskPxNbolrptb/BQeVT9UDntMsSv6wgQweFg7i9qFM3PJfTlhenpzefCWuFgfAjue X-Received: by 2002:a9d:7386:: with SMTP id j6mr5732682otk.336.1580167028869; Mon, 27 Jan 2020 15:17:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580167028; cv=none; d=google.com; s=arc-20160816; b=yDR/rN9uwiiLUQlwky/DhGO8FNC+G7mAGW/i+Yg7OarMxF9xye0N9/2xfMhUZNtdjj kmVYnyrn+b2AhBxRz5MHPRoTsdUVmD2wr7KNkCynOyfzU+zT+jV57nGYRBjLGI7vWqMG f6sbN+TJSpOoY5d2ra04ZixtSeo61oe6hUv1dpHa4U9acqkm6yUHClWfmaG24qNREz9B +FjsbNJ0woCrb9O+358arViUptnQ+0BiIXyevgNgLLKN5VoVa1e+1vVEO7ko/8xc5obR VBR9KGh/Ql2ot4b8U+tULwIPsgJT20n3OTEZsUu0nWbo5GR9sCC2WBA4ku3+3768SyTz 5Thw== 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=gD4TaYevHV9sf6z2Ues+OYW8jGYcOMbZOrsCySHlsuE=; b=LFp0+xRL1n3kBMYtk4+ptvzXhaYwnF28XMI5JFUcIfUD/RyQs2T8yk4zU+7LHuo/yo YNMIeX1kI82Mpp5b5cIQvOWYxq6mlSoLO85GryrY8esqGdppnshMhfJ7w0wXJZwnIhPM iI38EQhWNVEYMlK2TyiRt50Jnmqr4EoxtDreyqkC5gcNemON8wI+m6fxdIrbeDuJqPnC l+ZMl706FaF+TMtSRdjHW3w3/gUinaBOthHxYy2x7h3kYRSo3VLb2b7an8kTJVNR2ul3 riblTqGLbx1thsX00WwgVDeXr5iVmrcFUg/pFSgERnBbP09bfnUmDC/u5zMzkarXfG5k AlLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ciJt1rdK; 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 o13si8368104otp.27.2020.01.27.15.16.51; Mon, 27 Jan 2020 15:17:08 -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=ciJt1rdK; 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 S1726323AbgA0XPK (ORCPT + 99 others); Mon, 27 Jan 2020 18:15:10 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:34612 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbgA0XPK (ORCPT ); Mon, 27 Jan 2020 18:15:10 -0500 Received: by mail-pg1-f196.google.com with SMTP id r11so5950213pgf.1 for ; Mon, 27 Jan 2020 15:15:10 -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=gD4TaYevHV9sf6z2Ues+OYW8jGYcOMbZOrsCySHlsuE=; b=ciJt1rdKVSRDUOioLi40WpjRr7xZIlTV+OKJRIH1QXZwGrsbDAUTmAiDO7wWUjOWkE Ec5+nhr69kf73PP6oIk6E2XkffgdUlQGnL/AoShg7ZyexDMRc3x5dkPR2z7Gj7fzCFAi AeB9kxv6Gwd0gB/6G28XssGTFRJveeQp1N4cI= 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=gD4TaYevHV9sf6z2Ues+OYW8jGYcOMbZOrsCySHlsuE=; b=KRugprUNYRcSRzk17rJoUg205AdaBqydC9zW7D8uqq4boZ0XdG0y9coo/EfBkM4T1y 4Le8yjDTR+cZKxQBu9qy3dVKYzFSYLgittKXZBNLltRq/FTzE3mO296FzIDrHoUoGqZ1 Jcj3sNrCFjY6Aw2a8y8LqvIVV/JXrjcbqTnbxoP9FOgUn7LeIDzfAM6vkbByFY+tnhDA bkFNMEfV8JZBNawypoiBqGCNU97v9b2pHHLMchr1fVXuZYCKs64VBFv6QrL1WFr4omNN MaS+di0D3+/6Xxp6FrT6lAaFyQJF5pUnfE927LWqjMYtSl8BzZtvA5YprbKKQB8f4wgp Zh+g== X-Gm-Message-State: APjAAAWGF6fsYtBlqsXCrAs/ESOUkW08SQhfjEinEz6S5iGR9MRrf23P JPZ0tcL3/5DQf6Fp/aCk4VB5Iw== X-Received: by 2002:a63:ed56:: with SMTP id m22mr21385900pgk.261.1580166909751; Mon, 27 Jan 2020 15:15:09 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id i6sm1930008pfk.38.2020.01.27.15.15.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jan 2020 15:15:08 -0800 (PST) Date: Mon, 27 Jan 2020 15:15:08 -0800 From: Kees Cook To: Alexander Popov Cc: Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, notify@kernel.org Subject: Re: [PATCH v2 1/1] lkdtm/stackleak: Make the test more verbose Message-ID: <202001271514.345A5CC9C@keescook> References: <20200102234907.585508-1-alex.popov@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -Kees -- Kees Cook