FreeBSD Bugzilla – Attachment 239370 Details for
Bug 268828
panic: main-n259921-17f2b12a3877 panicked (Fatal trap 12: page fault while in kernel mode)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Check ni_dvp is not NULL before attempting vrele()
nfsvnoopen.patch (text/plain), 903 bytes, created by
Rick Macklem
on 2023-01-10 02:24:22 UTC
(
hide
)
Description:
Check ni_dvp is not NULL before attempting vrele()
Filename:
MIME Type:
Creator:
Rick Macklem
Created:
2023-01-10 02:24:22 UTC
Size:
903 bytes
patch
obsolete
>--- sys/fs/nfsserver/nfs_nfsdserv.c.sav 2023-01-09 16:58:29.507061000 -0800 >+++ sys/fs/nfsserver/nfs_nfsdserv.c 2023-01-09 16:58:29.491463000 -0800 >@@ -2836,7 +2836,7 @@ nfsrvd_open(struct nfsrv_descript *nd, __unused int is > aclp->acl_cnt = 0; > #endif > NFSZERO_ATTRBIT(&attrbits); >- named.ni_startdir = NULL; >+ named.ni_dvp = named.ni_vp = NULL; > named.ni_cnd.cn_nameiop = 0; > NFSM_DISSECT(tl, u_int32_t *, 6 * NFSX_UNSIGNED); > i = fxdr_unsigned(int, *(tl + 5)); >--- sys/fs/nfsserver/nfs_nfsdport.c.sav 2023-01-09 17:01:12.238427000 -0800 >+++ sys/fs/nfsserver/nfs_nfsdport.c 2023-01-09 16:58:29.475582000 -0800 >@@ -1935,7 +1935,7 @@ nfsvno_open(struct nfsrv_descript *nd, struct nameidat > } > } else { > nfsvno_relpathbuf(ndp); >- if (create == NFSV4OPEN_CREATE) { >+ if (ndp->ni_dvp != NULL && create == NFSV4OPEN_CREATE) { > if (ndp->ni_dvp == ndp->ni_vp) > vrele(ndp->ni_dvp); > else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 268828
:
239342
|
239354
|
239370
|
239398