Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106132876
D28053.id81936.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
658 B
Referenced Files
None
Subscribers
None
D28053.id81936.diff
View Options
diff --git a/sys/fs/nfsserver/nfs_nfsdport.c.sav b/sys/fs/nfsserver/nfs_nfsdport.c
--- a/sys/fs/nfsserver/nfs_nfsdport.c.sav
+++ 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, 10:53 PM (11 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15608658
Default Alt Text
D28053.id81936.diff (658 B)
Attached To
Mode
D28053: add kasserts to nfsm_trimtrailing as suggested by kib@
Attached
Detach File
Event Timeline
Log In to Comment