Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1462799ybh; Fri, 13 Mar 2020 01:32:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvfRpGyILgpJpM2Zfj7tXxQHVCDlSmL6/LIrPPnOksMIZ4wVtV05NSipbyD8gq0V88dq+6z X-Received: by 2002:aca:5f87:: with SMTP id t129mr6148863oib.36.1584088356774; Fri, 13 Mar 2020 01:32:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584088356; cv=none; d=google.com; s=arc-20160816; b=rliXz+Wpa01kTd35gWSgvBPZFWdbbVMR/DAGIhLKw/Frw9cOVo/z/FoNZGcHLyl1cz 45mouw/5L+C7f7EvznOCSqYnAe7thArqSItquJ6O/UEqombTN8CvXIlZ7nwCuj0m62vY fqiPGGPbk52ZxxNCrJXRcZdQvAMLiH/plgE7pdoT+s/RS42d58nidLTcgiVQ2UvQRIgZ +b3kzjBUV1aXn2SmX0O9KySAQu4N9FyLd4wxvHJFuEaqxE14Cp7kLeagFTxEOkDfPPM+ K+RMp1ScEW7w9s05vN/ommONPG7EfGz+xUfC8uO0mqGyvBD3cFCyIMmRcq0XZHNBeREM 8VVg== 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=MAsAcM05mXkzCsPvayDcJZuYQVlAkvzdedkH1NlOMWc=; b=LGAsuPydgPxAQg/WOcqBU4vER7nBaJJ+9+BaEO/8ffEvxWnPwiVFbSS9BgJW4N5Leu f58KNRew9iJgD0YbiGfxepvqClYmpaGKlss4l5UpFfDO+MSnbRH8T7b6lUkz/nuJbzJx SSxDQy4jaPKWfjPR6LF+XOXC5iUtGc1J2aW+DcGB5nB9wRIcFrDdLD2rAbQYr5PoeLjj MgFXDEatw1xkit23EkzLfG8lqHZio26G5poUjnzHFxi0zE3uh6y4Kp6BsdrLdhJPqMBS ylBpSlyg8l7C+TFs4yYO7HoNQmAKvEDvoSiMYw8JoNbt+y4ThvteDzkr5TX7kuQPSQdn yslw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=YR6QRrnO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si1830033otq.214.2020.03.13.01.32.23; Fri, 13 Mar 2020 01:32:36 -0700 (PDT) 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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=YR6QRrnO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726559AbgCMIbh (ORCPT + 99 others); Fri, 13 Mar 2020 04:31:37 -0400 Received: from merlin.infradead.org ([205.233.59.134]:57026 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726420AbgCMIbh (ORCPT ); Fri, 13 Mar 2020 04:31:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=MAsAcM05mXkzCsPvayDcJZuYQVlAkvzdedkH1NlOMWc=; b=YR6QRrnO3fKBbY/PgCXjSBYL/i YFGw13odm0+qWLyhzR1u8l265TNuHgGhITEyT0bhvgbBK7bQTo1TfxZMt088AWymnNkSL6YQE2BnJ jk8gfR5ZC2CpEYpmf5N2D5pM8ZtawQO9LZL0rYjyJJX3VK5+Ali96Cg0pDeHKFRaUlJCFw6csHEdm dxdeo4abnRmhummAouzwAGbQPlApHpn8zWmtnwkZHWKPIGrKFDjU48/gA35hDyosCH6G0crLkD5MA DTSqTZrsHnEnDUC6FpVbffEji/uDTytVF8H7uDR9rzsUOEGZI2CQmv7IitOIY0uZQ+EJbzFRoI8Iz zX7TITsw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jCfip-0005FL-C7; Fri, 13 Mar 2020 08:31:11 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 0BEC330275A; Fri, 13 Mar 2020 09:31:08 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E7C162BA3D056; Fri, 13 Mar 2020 09:31:07 +0100 (CET) Date: Fri, 13 Mar 2020 09:31:07 +0100 From: Peter Zijlstra To: Steven Rostedt Cc: Tetsuo Handa , Dmitry Vyukov , Jiri Slaby , Greg Kroah-Hartman , Andrew Morton , Matthew Garrett , Andi Kleen , "Theodore Y . Ts'o" , Alexander Viro , Petr Mladek , Sergey Senozhatsky , Arnd Bergmann , Linus Torvalds , LKML Subject: Re: [PATCH v2] Add kernel config option for fuzz testing. Message-ID: <20200313083107.GV12561@hirez.programming.kicks-ass.net> References: <20200307135822.3894-1-penguin-kernel@I-love.SAKURA.ne.jp> <6f2e27de-c820-7de3-447d-cd9f7c650add@suse.com> <20200308065258.GE3983392@kroah.com> <3e9f47f7-a6c1-7cec-a84f-e621ae5426be@suse.com> <20200311101115.53139149@gandalf.local.home> <7e0d2bbf-71c2-395c-9a42-d3d6d3ee4fa4@i-love.sakura.ne.jp> <20200312182935.70ed6516@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200312182935.70ed6516@gandalf.local.home> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 12, 2020 at 06:29:35PM -0400, Steven Rostedt wrote: > > @@ -705,10 +706,12 @@ static void lockdep_print_held_locks(struct task_struct *p) > > * It's not reliable to print a task's held locks if it's not sleeping > > * and it's not the current task. > > */ > > - if (p->state == TASK_RUNNING && p != current) > > - return; > > + unreliable = p->state == TASK_RUNNING && p != current; > > for (i = 0; i < depth; i++) { > > - printk(" #%d: ", i); > > + if (unreliable) > > + printk(" #%d?: ", i); > > + else > > + printk(" #%d: ", i); > > Have you tried submitting this? Has Peter nacked it? It has definite UaF potential... do we have a boot parameter that signals the willingness to trade safetly for more debug output? Over all, the risk of this going *bang* is quite low I think.