Page MenuHomeFreeBSD

D28053.diff
No OneTemporary

D28053.diff

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

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)

Event Timeline