Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167186566
D53079.id164115.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
964 B
Referenced Files
None
Subscribers
None
D53079.id164115.diff
View Options
diff --git a/sys/fs/unionfs/union_subr.c b/sys/fs/unionfs/union_subr.c
--- a/sys/fs/unionfs/union_subr.c
+++ b/sys/fs/unionfs/union_subr.c
@@ -587,6 +587,7 @@
struct unionfs_node_status *unsp;
pid_t pid;
+ MPASS(td != NULL);
pid = td->td_proc->p_pid;
ASSERT_VOP_ELOCKED(UNIONFSTOV(unp), __func__);
@@ -612,6 +613,7 @@
struct unionfs_node_status *unsp;
pid_t pid;
+ MPASS(td != NULL);
pid = td->td_proc->p_pid;
KASSERT(NULL != unspp, ("%s: NULL status", __func__));
diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c
--- a/sys/fs/unionfs/union_vnops.c
+++ b/sys/fs/unionfs/union_vnops.c
@@ -814,7 +814,11 @@
unp = VTOUNIONFS(vp);
lvp = unp->un_lowervp;
uvp = unp->un_uppervp;
- unsp = unionfs_find_node_status(unp, td);
+ if (td != NULL) {
+ unsp = unionfs_find_node_status(unp, td);
+ } else {
+ unsp = NULL;
+ }
if (unsp == NULL ||
(unsp->uns_lower_opencnt <= 0 && unsp->uns_upper_opencnt <= 0)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 20, 5:54 PM (19 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37005190
Default Alt Text
D53079.id164115.diff (964 B)
Attached To
Mode
D53079: unionfs: fix NULL deref on closing an fd passed through SCM_RIGHTS
Attached
Detach File
Event Timeline
Log In to Comment