Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2689523iob; Fri, 6 May 2022 08:21:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfvVxx6JJYFdqoAvTEqzaI0Z1DB9V2iUHzRZ4gmKyNRsL0b8yq6efCMiDoiyIL1w2YC4vl X-Received: by 2002:a05:6402:2932:b0:425:d7b3:e0d1 with SMTP id ee50-20020a056402293200b00425d7b3e0d1mr3940466edb.141.1651850508252; Fri, 06 May 2022 08:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651850508; cv=none; d=google.com; s=arc-20160816; b=mzzaismp/izfJxc6QrLy1w5ChBwKBnFQ/gQOwYz+sYN5cA8GBunlZZDkH60m1KlQSO 6DTcTe1iO04dW4HKN+v71KD95Q7Lg2WGkr8LlK2qTf2da9wgqlU/LCiVoDcnCjTPznuE 0wwSg1BtUUJgP6PAdvU6vobNpcK2yQV5CWbqOrpDYzw8nPd0B98njtiKlq/Vni5Fb1aV BcyaeqCSwXbaRQr3VpZvzACr/pJf9wBmZvC9BBjcMoCfbMnT8GNVKyah44DH35WgvuRL 5l8R5JRw83lgruG8rh9CFrDKQs60DBZRkaUx3jH8JjtZUIPfED7BL2xYu58/R6IFEwFu 9AAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=4QJpX0rAd+3CdDfOT28+/LG1+xkmjqPiPkrgL4jPrsU=; b=R1CbFSoHrJaBthC+7Qyph/cb1bqTMNesKEK85g2nUjnZXJ2u6QG+0ZKIVhjxYK7sUu GMN+JzFqfAf0OL0p1NPXy18TJXXi7PyIfEooq2rKkD+TZNqRdZNQ9PVBN5ng5nW+ebNX ph0UiB+eJZOCHCIIKlkr9SZG/70ZdRlXE0h/b6on9Ep7bsWq8WgJ3jJd95cIzG+J9XV0 KD5AK7TPMEQVy9Xi2ihJktZH67riqcn/5km2JJ94j5jmbC4vP9QAKkwSek+OhtsLCC3n TLFj/r69S79edjjBc0rISN+e1LeJSWFJdrHU30Vk+zQoO8NxJ8dbPO0Va9eMncRkz9bg 1cCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 y8-20020a056402440800b00418ee342277si6718864eda.489.2022.05.06.08.21.22; Fri, 06 May 2022 08:21:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377348AbiEFAQ6 (ORCPT + 99 others); Thu, 5 May 2022 20:16:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241333AbiEFAQw (ORCPT ); Thu, 5 May 2022 20:16:52 -0400 Received: from lgeamrelo11.lge.com (lgeamrelo11.lge.com [156.147.23.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 21B225132C for ; Thu, 5 May 2022 17:13:09 -0700 (PDT) Received: from unknown (HELO lgeamrelo01.lge.com) (156.147.1.125) by 156.147.23.51 with ESMTP; 6 May 2022 09:13:07 +0900 X-Original-SENDERIP: 156.147.1.125 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.125 with ESMTP; 6 May 2022 09:13:07 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: byungchul.park@lge.com From: Byungchul Park To: torvalds@linux-foundation.org Cc: damien.lemoal@opensource.wdc.com, linux-ide@vger.kernel.org, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.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, tytso@mit.edu, willy@infradead.org, david@fromorbit.com, amir73il@gmail.com, 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, 42.hyeyoo@gmail.com Subject: Re: [PATCH RFC v6 00/21] DEPT(Dependency Tracker) Date: Fri, 6 May 2022 09:11:35 +0900 Message-Id: <1651795895-8641-1-git-send-email-byungchul.park@lge.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-kernel@vger.kernel.org Linus wrote: > > On Wed, May 4, 2022 at 1:19 AM Byungchul Park wrote: > > > > Hi Linus and folks, > > > > I've been developing a tool for detecting deadlock possibilities by > > tracking wait/event rather than lock(?) acquisition order to try to > > cover all synchonization machanisms. > > So what is the actual status of reports these days? > > Last time I looked at some reports, it gave a lot of false positives > due to mis-understanding prepare_to_sleep(). Yes, it was. I handled the case in the following way: 1. Stage the wait at prepare_to_sleep(), which might be used at commit. Which has yet to be an actual wait that Dept considers. 2. If the condition for sleep is true, the wait will be committed at __schedule(). The wait becomes an actual one that Dept considers. 3. If the condition is false and the task gets back to TASK_RUNNING, clean(=reset) the staged wait. That way, Dept only works with what actually hits to __schedule() for the waits through sleep. > For this all to make sense, it would need to not have false positives > (or at least a very small number of them together with a way to sanely Yes. I agree with you. I got rid of them that way I described above. > get rid of them), and also have a track record of finding things that > lockdep doesn't. I have some reports that wait_for_completion or waitqueue is involved. It's worth noting those are not tracked by Lockdep. I'm checking if those are true positive or not. I will share those reports once I get more convinced for that. > Maybe such reports have been sent out with the current situation, and > I haven't seen them. Dept reports usually have been sent to me privately, not in LKML. As I told you, I'm planning to share them. Byungchul > > Linus >