UP kernel crashes

Michael Neumann mneumann at ntecs.de
Sun May 11 04:51:23 PDT 2008


Sascha Wildner wrote:
> Sepherosa Ziehau wrote:
>> Hi,
>>
>> Following line is printed immediately after copyrights prints:
>> panic: assertion: (newpte & VPTE_MANAGED) == 0 || m->flags & PG_MAPPED
>> in pmap_enter
>>
>> Back trace shows no function name.
>>
>> SMP kernel works without problem.
>
> Just for the record, I see this panic here too on my laptop.
Me too in a Qemu instance.

The following patch should fix it (works fine here).

Regards,

  Michael

Index: pmap.c
===================================================================
RCS file: /home/dcvs/src/sys/platform/pc32/i386/pmap.c,v
retrieving revision 1.84
diff -u -r1.84 pmap.c
--- pmap.c	9 May 2008 07:24:46 -0000	1.84
+++ pmap.c	11 May 2008 13:49:19 -0000
@@ -2102,7 +2102,7 @@
 		if (newpte & PG_RW)
 			vm_page_flag_set(m, PG_WRITEABLE);
 	}
-	KKASSERT((newpte & VPTE_MANAGED) == 0 || m->flags & PG_MAPPED);
+	KKASSERT((newpte & PG_MANAGED) == 0 || (m->flags & PG_MAPPED));
 	pmap_inval_flush(&info);
 }




More information about the Bugs mailing list