DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 464ACL3F2260412
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=RTA6fwMD
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED5B7384A49B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1720087940;
	bh=f72F/85lXa7st7vN65+W1jBE+43l1Eu06C/UsdMV54I=;
	h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=RTA6fwMD4iICbG1tT3umaGwRJUL6NZxQvd2T5KNhUUn03ZAPsMa80xexC5JsyOVuO
	 EUAq6w98PK491lodmAgaJZq/D9dSQPPcPPfiRd3m9majnXGAEMGmtAffy+ZHhTk6Ya
	 U0aKmjRz3JMzq7SE3/z1AuzlSdEsriILLa5jjQYg=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0D30B3858C41
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0D30B3858C41
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720087919; cv=none;
 b=pjoq1idn4285EQ3tdmeqf30p6A9NqKHV+uzJtrRFUq57An0Ni5fCcE8mbDhJlFBIWDVPunSnsaye8yZlKvEw7ckzqeRIuHiJ3RcpYmhp6U7lKmkkOxnVVv5zRuZG2npWs3n3L/AJB+6f8B76izPF7xUdePWgPp4WEQaXsgUX/yw=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1720087919; c=relaxed/simple;
 bh=Si9sdPVY8x7Rt2hoXZ+Naaycrb5oPF3NaFQYyUCv7ys=;
 h=MIME-Version:From:Date:Message-ID:Subject:To;
 b=T/leCFZFDq+pNyGX+e4b/WTteSfIcnERRjmIUrnlDJ5M4CSo3YHf2eCo8um98/N9gJYW365lsJfduhjCN3JHUyccK2oEj9rvzns8tBnZSa4ycqC5jseNCIupHCl9D2KzaUTxEtNbf/HKXueYpnYn0KU5cVyEBORP/T9ElByzMiQ=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1720087916; x=1720692716;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=DYbLvKIqRTm7Ren44yPShTr9hee6hle4VGnnBwKflQA=;
 b=iwPgC6m5MIpXRuFNtq9q1iYEb6wjCIEeF0WVbOU3RjpjVaDMNuaio6+uqHqmFBBKek
 PeW1bt6F4j/vAGyKS1HYpkhEi3eDhe3CewPUSVJGURkyfaP8fDeVBR5C9z1pei/7+FgK
 U22Yk7nby2+1a87l2ZaDTtOahWrYEpKU4IgieChElXePSg+uCQciN4zkOk3pYTeAZUs+
 NG22fO65d23XN/OGOjLsoUwG4GweTopAy3yazmhuye1OhuIPwT/WFYP9Blj41ViLJpFK
 nSCwbxWsdNTJH2+bZcGNgSW24Xt+RkE6/0ong4+PN55q92RlzCEJwfRqmUnXCmTcn++L
 XR3A==
X-Gm-Message-State: AOJu0YxOSrrKJ5VtXlLEkM+fo2AxCM25zQoee9vqjA2cEPwCI/6RLJIx
 6dZfIV37wWLDV46Hus95MYJyNYvqEqZ+wd/WUODXGeUFfuLb2hwy6ztV0JrTFNa6qCcG+vcvsww
 MuNZzOlPyT7cUFbpaX9h+eBKW/+GNgfW0
X-Google-Smtp-Source: AGHT+IEwHfOnleix4bmxTE1U5pbPs9kUXxSAIP+UULz9a0RTJGyPDhRczVRwF+icqaeqfcXxAO51C+dsuw4lzX1eBcM=
X-Received: by 2002:a05:6602:4608:b0:7f3:c683:2257 with SMTP id
 ca18e2360f4ac-7f66def9bf0mr143375839f.19.1720087916412; Thu, 04 Jul 2024
 03:11:56 -0700 (PDT)
MIME-Version: 1.0
Date: Thu, 4 Jul 2024 12:11:30 +0200
Message-ID: <CAKAoaQkGpp1qhuuCP_cnHbx_hii_Q5CWDPFAjZAiV18R=yQh8w@mail.gmail.com>
Subject: mount nfsdir ; cd /cygdrive/y ; ls -l ; cd / ; umount nfsdir # causes
 kernel VNetRoot to be stuck...
To: cygwin@cygwin.com
X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,
 FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,
 KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,
 SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Roland Mainz via Cygwin <cygwin@cygwin.com>
Reply-To: Roland Mainz <roland.mainz@nrubsig.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

Hi!

-----

AFAIK we found a resource or Win32 object refcount leak:
If I do a $ mount nfsdir_as_Y ; cd /cygdrive/y ; ls -l ; cd / ; umount
Y: #, the the VNetRoot used by the filesystem's kernel module is not
finalised (e.g. |MRxFinalizeVNetRoot()| is not being called).
If I do the same with just Windows cmd.exe, e.g. $
C:\WINDOWS\system32\mount.exe nfsdir as Y: ; Y: ; dir ; C:
C:\WINDOWS\system32\umount.exe Y: #, then the VNetRoot is being
finalised.

Tested with Microsoft's Windows NFSv3 client and ms-nfs41-client
NFSv4.1 client, cygserver is running.

$ uname -a
CYGWIN_NT-10.0-19045 DERFWNB8353 3.5.3-1.x86_64 2024-04-03 17:25 UTC
x86_64 Cygwin

Does anyone have a good idea how to debug this ?

----

Bye,
Roland
-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz@nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
