Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp989896pxp; Wed, 9 Mar 2022 17:51:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYRZpOg5eFhpXnBO7DPoq30IQ5tlA6dd0/pm67jsC1eG+IdmHW0JUsqQ90gmhY4DWgEuaw X-Received: by 2002:a05:6a00:140f:b0:4e0:6995:9c48 with SMTP id l15-20020a056a00140f00b004e069959c48mr2265304pfu.59.1646877100836; Wed, 09 Mar 2022 17:51:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646877100; cv=none; d=google.com; s=arc-20160816; b=J9755sXR0cyNGtq3uQrcnP0/c85nn6sprKl5INeL6E3s/eDL2XGDrJJxoI3roe5t5a QhvhUBTaOKqBmiaRlzqxHnP5UfVUqK/6wmePANY0klg5HSQG2tZNsYrrfC6vWZh6c0/b wI99oTWfKF1iqtRLpAZHmuZ5KGRKJrNEyNXSLOKsTTqeToUhEpRU1UPYZMLb7eVi13O0 vGAEYGb4AC869MYngNEos9oplY+uBuoAkUW+uYzBBaPY17bL0QcE4nSKJ5ieSLtvq1eb jx7LtO+jpuKzM1TrlhNNnFgH1XNRFCXmDFCalAw2YAnIzdneM85I1M3aPiuBpbWOatyy G2tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=+mY6hqeq96VIeoFlTQzH6fd3yCDmZVTYZA4CFVlgcf8=; b=qt903xR66+MxfJ4vfPq2yS8kuZfMpQD/VukOoOSjwoIHVTkn8rmX0Qp089onfSFrMS UXNcfkQJAke26Uj2MElwwkG2OhKV9H24sMaelajfb/GibzP6hspv+TSDpr1ceNFQ3rvn Y0smBXDKQfJ+NPdp5jsKHk/tTAe67znfBR4fAOE8WpLEYcRdopdA+zSUWnKuHTlxn6bf 3VjNU8x5jRGtbcIgPE/2opW+okGsFMn8fb2VKHSF0eYR/dQiOrRIUyVOCMp2cB1I8hlw 35yaf/ZD9xG2d3xpwrwO3mlDcDjC82RB3K7P28JN+Pf//shDJt4yGcFkInb3WCk0GrKi dLew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r1-20020a6560c1000000b003745d01d573si3492427pgv.723.2022.03.09.17.51.17; Wed, 09 Mar 2022 17:51:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237127AbiCJBrX (ORCPT + 99 others); Wed, 9 Mar 2022 20:47:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236742AbiCJBrW (ORCPT ); Wed, 9 Mar 2022 20:47:22 -0500 Received: from lgeamrelo11.lge.com (lgeamrelo11.lge.com [156.147.23.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BD9CDFDFB8 for ; Wed, 9 Mar 2022 17:46:22 -0800 (PST) Received: from unknown (HELO lgemrelse6q.lge.com) (156.147.1.121) by 156.147.23.51 with ESMTP; 10 Mar 2022 10:46:18 +0900 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO X58A-UD3R) (10.177.244.38) by 156.147.1.121 with ESMTP; 10 Mar 2022 10:46:18 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: byungchul.park@lge.com Date: Thu, 10 Mar 2022 10:45:49 +0900 From: Byungchul Park To: Theodore Ts'o Cc: damien.lemoal@opensource.wdc.com, linux-ide@vger.kernel.org, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, torvalds@linux-foundation.org, mingo@redhat.com, linux-kernel@vger.kernel.org, peterz@infradead.org, will@kernel.org, tglx@linutronix.de, rostedt@goodmis.org, joel@joelfernandes.org, sashal@kernel.org, daniel.vetter@ffwll.ch, chris@chris-wilson.co.uk, duyuyang@gmail.com, johannes.berg@intel.com, tj@kernel.org, willy@infradead.org, david@fromorbit.com, amir73il@gmail.com, bfields@fieldses.org, gregkh@linuxfoundation.org, kernel-team@lge.com, linux-mm@kvack.org, akpm@linux-foundation.org, mhocko@kernel.org, minchan@kernel.org, hannes@cmpxchg.org, vdavydov.dev@gmail.com, sj@kernel.org, jglisse@redhat.com, dennis@kernel.org, cl@linux.com, penberg@kernel.org, rientjes@google.com, vbabka@suse.cz, ngupta@vflare.org, linux-block@vger.kernel.org, paolo.valente@linaro.org, josef@toxicpanda.com, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, jack@suse.cz, jack@suse.com, jlayton@kernel.org, dan.j.williams@intel.com, hch@infradead.org, djwong@kernel.org, dri-devel@lists.freedesktop.org, airlied@linux.ie, rodrigosiqueiramelo@gmail.com, melissa.srw@gmail.com, hamohammed.sa@gmail.com Subject: Re: Report 2 in ext4 and journal based on v5.17-rc1 Message-ID: <20220310014549.GA24568@X58A-UD3R> References: <1646563902-6671-1-git-send-email-byungchul.park@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sun, Mar 06, 2022 at 09:19:10AM -0500, Theodore Ts'o wrote: > On Sun, Mar 06, 2022 at 07:51:42PM +0900, Byungchul Park wrote: > > > > > > Users of DEPT must not have to understand how DEPT works in order to > > > > Users must not have to understand how Dept works for sure, and haters > > must not blame things based on what they guess wrong. > > For the record, I don't hate DEPT. I *fear* that DEPT will result in > my getting spammed with a huge number of false posiives once automated > testing systems like Syzkaller, zero-day test robot, etcs., get a hold > of it once it gets merged and start generating hundreds of automated > reports. Agree. Dept should not be a part of *automated testing system* until it finally works as much as Lockdep in terms of false positives. However, it's impossible to achieve it by doing it out of the tree. Besides automated testing system, Dept works great in the middle of developing something that is so complicated in terms of synchronization. They don't have to worry about real reports anymore, that should be reported, from getting prevented by a false positve. I will explicitely describe EXPERIMENTAL and "Dept might false-alarm" in Kconfig until it's considered a few-false-alarming tool. > > Sure, it should be done manually. I should do it on my own when that > > kind of issue arises. > > The question here is how often will it need to be done, and how easy I guess it's gonna rarely happens. I want to see too. > will it be to "do it manually"? Suppose we mark all of the DEPT false Very easy. Equal to or easier than the way we do for lockdep. But the interest would be wait/event objects rather than locks. > positives before it gets merged? How easy will it be able to suppress > future false positives in the future, as the kernel evolves? Same as - or even better than - what we do for Lockdep. And we'd better consider those activies as a code-documentation. Not only making things just work but organizing code and documenting in code, are also very meaningful. > Perhaps one method is to haved a way to take a particular wait queue, > or call to schedule(), or at the level of an entire kernel source > file, and opt it out from DEPT analysis? That way, if DEPT gets > merged, and a maintainer starts getting spammed by bogus (or Once Dept gets stable - hoplefully now that Dept is working very conservatively, there might not be as many false positives as you're concerning. The situation is in control. > That way we don't necessarily need to have a debate over how close to > zero percent false positives is necessary before DEPT can get merged. Non-sense. I would agree with you if it was so when Lockdep was merged. But I'll try to achieve almost zero false positives, again, it's impossible to do it out of tree. > And we avoid needing to force maintainers to prove that a DEPT report So... It'd be okay if Dept goes not as a part of automated testing system. Right? > is a false positive, which is from my experience hard to do, since > they get accused of being DEPT haters and not understanding DEPT. Honestly, it's not a problem of that they don't understand other domians than what they are familiar with, but another issue. I won't mention it. And it sounds like you'd do nothing unless it turns out to be problematic 100%. It's definitely the *easiest* way to maintain something because it's the same as not checking its correctness at all. Even if it's so hard to do, checking if the code is safe for real repeatedly, is what it surely should be done. Again, I understand it would be freaking hard. But it doesn't mean we should avoid it. Here, there seems to be two points you'd like to say: 1. Fundamental question. Does Dept track wait and event correctly? 2. Even if so, can Dept consider all the subtle things in the kernel? For 1, I'm willing to response to whatever it is. And not only me but we can make it perfectly work if the concept and direction is *right*. For 2, I need to ask things and try my best to fix those if it exists. Again. Dept won't be a part of *automated testing system* until it finally works as much as Lockdep in terms of false positives. Hopefully you are okay with it. --- Byungchul