Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2035194rwi; Fri, 28 Oct 2022 02:06:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7hpnwKR/Jncb2yE8Z8glMe+gyE3rd9q6xQL9u8fnjJ2wYeiRHVD6wlvMmmNQ1cQs0dCuRz X-Received: by 2002:a17:907:9603:b0:742:9ed3:3af2 with SMTP id gb3-20020a170907960300b007429ed33af2mr46010301ejc.510.1666947966956; Fri, 28 Oct 2022 02:06:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666947966; cv=none; d=google.com; s=arc-20160816; b=tD1mNlsOF4QbpcEztRIf5Y94rIb2KF7CSKZyGVPPrDOUqoghepaDCDWPoj04geHfOq o8jTTigmi/KzK2GBnozR7KOlhmz3XQ1oqiW2BCwhRQD99dLX/795UN6gt3To6XCXyGcZ SpbsIfPp9AM0XBKuD4svynuXbbCU0DsWN2OUiJ15viWFmft+NTdEot3uQb25qcFnVUGk okB1LDjbhkgpXFPKgexoF4G8lp5U2n81XTHeM21mrVvkeB3SLMPqIGpbCuQulxmbfPWk XMji8OgSsZ7ti/byO2WUPMQgNSvXP7aHAfW3p/l0/AYs3tCTUF17d5U6FetdQnJPeH21 0r+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=x7MKpIufpLcL39tQ6/GD/80oOXBjR+2MPM2htBRFC1c=; b=cXCEW2F3+Gy+MxReSN0M5xy0oe1NCTkimdLVqYO64h5Y6B39QxXzGc5aHFTuOhfm8g RlXP12eY4SoejWr14ImchD4Qdz7O5wG7WkJMDHSezDZbG2plNWCQ+D1+HPFR43ZWImtx agzpxNHQ56Jl7eF6JblSqiHfJBt93ipBlnazBxKmNDkZSbAICKspit2ePUtUfKaJEOo2 OVBp+zUiiODgUdEfLpzjVDP1tJrc/wjGngqEGuflCfWpxlJGsPC8tfFvbIYUQyCt9gVq h7bo7HuxFXVqkOt56Ad09mV7xC7/DpBzG267ApNr7xG4V1C2PRQ6HKnt1MpW1kZ3F6AO CgKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IPRj1BpI; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc21-20020a1709071c1500b0078b6559a610si4249982ejc.12.2022.10.28.02.05.42; Fri, 28 Oct 2022 02:06:06 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IPRj1BpI; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229827AbiJ1I6W (ORCPT + 99 others); Fri, 28 Oct 2022 04:58:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbiJ1I6U (ORCPT ); Fri, 28 Oct 2022 04:58:20 -0400 Received: from mail-vs1-xe29.google.com (mail-vs1-xe29.google.com [IPv6:2607:f8b0:4864:20::e29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A43F19C05E; Fri, 28 Oct 2022 01:58:19 -0700 (PDT) Received: by mail-vs1-xe29.google.com with SMTP id p4so4480385vsa.11; Fri, 28 Oct 2022 01:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=x7MKpIufpLcL39tQ6/GD/80oOXBjR+2MPM2htBRFC1c=; b=IPRj1BpIxM5HppTptt3vyghRZ/7kjubfGTSaRZPi52dVMfGh5mhCSYbT+UrCEle1zs /81PaEko/bNlAQi7wqGxyMQxZI/vQtE/aypQCsNjUtqbPIg2pIu/uks2F/FfVV+A2yr/ J6eapR1t3rIP0EQFU6gX08nfqU/KrWIUAGEOhF9A473wDRN3KQxlh1/3Qk13L/YhxsKG zF55QLAhfLZ1qt1cvqxnU2RRe9RBQnsJ9iQTZenceFN5DYdApBk/vmkAHVpCgZikMjWT XCYP1jqiPeMEJL5VIW7rlOjsikSw3s5rNbarb8RJzOR71r0Yr21yoK3SA5o3x4jSh7C4 4stw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x7MKpIufpLcL39tQ6/GD/80oOXBjR+2MPM2htBRFC1c=; b=G+L34XOcjv8Qc+enwV/AeEiaHTH5vCHCh/2YL9Ry6hGPRPo6jk3kPgiYQrLdEQDi1i YYJQEXp+4lwIp27f50plM8/3Q42/jznzUHoiGYunsWGs98fhukRktN4gz3lo9GkFO70w wCBriuyFtM1C+KLDmZrUHQB10zr1aVVCY6dcU7LvrTdVX9Dz2s6TpDafsPLiJAFyR8TB IGnKpLf74rQ/NpY4vjs/DTACUjMMHQ4rkJEOCZ86gGDeFJnCY1uVfuQ79hFydhxE5wzm qdXcxnAfkuSil2MshAcXp6Lt5o/4qIvxlZHITZ7OIRyHOSG3ygfe8EmG2AitgbkdI7+X oefw== X-Gm-Message-State: ACrzQf3A+PkZx454mMOpDP+aR43gpawLelScp52nSvCU9yAdhuQ34I2/ KbQU4LWtZIdb7rLCSMGeWBbiewT5a9nAmbC6KJ0= X-Received: by 2002:a67:a24e:0:b0:3a5:38a0:b610 with SMTP id t14-20020a67a24e000000b003a538a0b610mr29257436vsh.2.1666947498265; Fri, 28 Oct 2022 01:58:18 -0700 (PDT) MIME-Version: 1.0 References: <20221013222719.277923-1-stephen.s.brennan@oracle.com> <20221018041233.376977-1-stephen.s.brennan@oracle.com> <87edv44rll.fsf@oracle.com> <87czachqfb.fsf@oracle.com> In-Reply-To: <87czachqfb.fsf@oracle.com> From: Amir Goldstein Date: Fri, 28 Oct 2022 11:58:06 +0300 Message-ID: Subject: Re: [PATCH 0/2] fsnotify: fix softlockups iterating over d_subdirs To: Stephen Brennan Cc: Jan Kara , Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 > > Well I feel stupid. The reason behind this seems to be... that > d_find_any_alias() returns a reference to the dentry, and I promptly > leaked that. I'll have it fixed in v3 which I'm going through testing > now. > I reckon if you ran the LTP fsnotify tests you would have seen this warning a lot more instead of just one random pseudo filesystem that some process is probably setting a watch on... You should run the existing LTP test to check for regressions. The fanotify/inotify test cases in LTP are easy to run, for example: run make in testcases/kernel/syscalls/fanotify and execute individual ./fanotify* executable. If you point me to a branch, I can run the tests until you get your LTP setup ready. Thanks, Amir.