Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106103840
D28053.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
650 B
Referenced Files
None
Subscribers
None
D28053.diff
View Options
diff --git a/sys/fs/nfsserver/nfs_nfsdport.c b/sys/fs/nfsserver/nfs_nfsdport.c
--- a/sys/fs/nfsserver/nfs_nfsdport.c
+++ b/sys/fs/nfsserver/nfs_nfsdport.c
@@ -6581,6 +6581,12 @@
mb->m_next = NULL;
}
if ((mb->m_flags & M_EXTPG) != 0) {
+ KASSERT(bextpg >= 0 && bextpg < mb->m_epg_npgs,
+ ("nfsm_trimtrailing: bextpg out of range"));
+ KASSERT(bpos == (char *)(void *)
+ PHYS_TO_DMAP(mb->m_epg_pa[bextpg]) + PAGE_SIZE - bextpgsiz,
+ ("nfsm_trimtrailing: bextpgsiz bad!"));
+
/* First, get rid of any pages after this position. */
for (i = mb->m_epg_npgs - 1; i > bextpg; i--) {
pg = PHYS_TO_VM_PAGE(mb->m_epg_pa[i]);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 11:21 AM (11 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15604209
Default Alt Text
D28053.diff (650 B)
Attached To
Mode
D28053: add kasserts to nfsm_trimtrailing as suggested by kib@
Attached
Detach File
Event Timeline
Log In to Comment