Page MenuHomeFreeBSD

D28053.id81936.diff
No OneTemporary

D28053.id81936.diff

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

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)

Event Timeline