Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168564492
D20947.id59732.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
629 B
Referenced Files
None
Subscribers
None
D20947.id59732.diff
View Options
Index: sys/kern/kern_descrip.c
===================================================================
--- sys/kern/kern_descrip.c
+++ sys/kern/kern_descrip.c
@@ -2656,9 +2656,13 @@
* table before this fd was closed, so it possible that
* there is a stale fp pointer in cached version.
*/
- fdt = *(const struct fdescenttbl * const volatile *)&(fdp->fd_files);
+ fdt = *(const struct fdescenttbl * const volatile *)
+ &(fdp->fd_files);
continue;
}
+ if (count + 1 < count)
+ return (EBADF);
+
/*
* Use an acquire barrier to force re-reading of fdt so it is
* refreshed for verification.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 30, 1:23 AM (17 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37555426
Default Alt Text
D20947.id59732.diff (629 B)
Attached To
Mode
D20947: Check and avoid overflow when incrementing fp->f_count in fget_unlocked() and fhold().
Attached
Detach File
Event Timeline
Log In to Comment