From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A545C4CEC4 for ; Mon, 16 Sep 2019 02:58:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2968E206C2 for ; Mon, 16 Sep 2019 02:58:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728808AbfIPC6k (ORCPT ); Sun, 15 Sep 2019 22:58:40 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:50058 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728789AbfIPC6k (ORCPT ); Sun, 15 Sep 2019 22:58:40 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.2 #3 (Red Hat Linux)) id 1i9hDf-0004TG-9D; Mon, 16 Sep 2019 02:58:27 +0000 Date: Mon, 16 Sep 2019 03:58:27 +0100 From: Al Viro To: kernel test robot Cc: "zhengbin (A)" , jack@suse.cz, akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, "zhangyi (F)" , renxudong1@huawei.com, Hou Tao , Linus Torvalds , lkp@01.org Subject: Re: 266a9a8b41: WARNING:possible_recursive_locking_detected Message-ID: <20190916025827.GY1131@ZenIV.linux.org.uk> References: <20190914161622.GS1131@ZenIV.linux.org.uk> <20190916020434.tutzwipgs4f6o3di@inn2.lkp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190916020434.tutzwipgs4f6o3di@inn2.lkp.intel.com> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Mon, Sep 16, 2019 at 10:04:34AM +0800, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: 266a9a8b41803281e192151ae99779a7d50fc391 ("[PATCH] Re: Possible FS race condition between iterate_dir and d_alloc_parallel") > url: https://github.com/0day-ci/linux/commits/Al-Viro/Re-Possible-FS-race-condition-between-iterate_dir-and-d_alloc_parallel/20190915-052109 > > > in testcase: rcutorture > with following parameters: > > runtime: 300s > test: default > torture_type: srcu > > test-description: rcutorture is rcutorture kernel module load/unload test. > test-url: https://www.kernel.org/doc/Documentation/RCU/torture.txt > > > on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 4G > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): False positive; dget() on child while holding ->d_lock on parent is OK. We could turn that into explicit spin_lock_nested() on child + increment of ->d_count under that, but this is a pointless pessimization. Not sure what's the best way to tell lockdep to STFU here, but in this case it really ought to - locking order is correct.