pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


Prototype fix for Kernel crash in nfs41_driver!nfs41_CreateVNetRoot() with UNC paths
Posted by Anonymous on Sat 16th Dec 2023 13:10
raw | new post
modification of post by Anonymous (view diff)

  1. diff --git a/sys/nfs41_driver.c b/sys/nfs41_driver.c
  2. index 457ce03..4cfaaa6 100644
  3. --- a/sys/nfs41_driver.c
  4. +++ b/sys/nfs41_driver.c
  5. @@ -3052,6 +3052,17 @@ NTSTATUS nfs41_CreateVNetRoot(
  6.          /* Codepath for \\server@port\nfs4\path */
  7.          DbgP("Codepath for \\\\server@port\\nfs4\\path\n");
  8.  
  9. +        if (!pNetRootContext->mounts_init) {
  10. +            /*
  11. +             * We can only support UNC paths when we got valid
  12. +             * mount options via nfs_mount.exe before this point.
  13. +             */
  14. +            DbgP("pNetRootContext(=%p) not initalised yet\n",
  15. +                pNetRootContext);
  16. +            status = STATUS_OBJECT_NAME_NOT_FOUND;
  17. +            goto out_free;
  18. +        }
  19. +
  20.          /*
  21.           * gisburn: Fixme: Originally the code was using the
  22.           * SRV_CALL name (without leading \) as the hostname

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at