PROBLEM:	(43968)		(Patch ID: OSF365-350136)
********
The system panics with kernel memory fault, and the fault_pc is in the
u_anon_free() routine.

>  0 stop_secondary_cpu() [arch/alpha/cpu.c":357, 0xfffffc00004d97a8]
   1 panic() [bsd/subr_prf.c":669, 0xfffffc000043d5ac]
   2 event_timeout() [arch/alpha/cpu.c":706, 0xfffffc00004da258]
   3 xcpu_puts() [bsd/subr_prf.c":810, 0xfffffc000043d864]
   4 printf() [bsd/subr_prf.c":355, 0xfffffc000043cbb4]
   5 panic() [bsd/subr_prf.c":719, 0xfffffc000043d71c]
   6 trap() [arch/alpha/trap.c":1213, 0xfffffc00004edbd0]
   7 _XentMM() [arch/alpha/locore.s":1307, 0xfffffc00004dce74]
   8 u_anon_free() [vm/u_mape_anon.c":2261, 0xfffffc00003840e4]
   9 u_anon_unmap() [vm/u_mape_anon.c":1617, 0xfffffc0000382970]
  10 u_map_delete() [vm/vm_umap.c":1188, 0xfffffc000039c650]
  11 u_map_deallocate() [vm/vm_umap.c":436, 0xfffffc000039af80]
  12 vm_map_deallocate() [vm/vm_map.c":611, 0xfffffc0000391698]
  13 task_deallocate() [kern/task.c":472, 0xfffffc00002d6b0c]
  14 waitf() [bsd/kern_exit.c":1497, 0xfffffc0000243b94]
  15 wait4() [bsd/kern_exit.c":1220, 0xfffffc0000243738]
  16 syscall() [arch/alpha/syscall_trap.c":519, 0xfffffc00004eca44]
  17 _Xsyscall() [arch/alpha/locore.s":1094, 0xfffffc00004dcc64]

The crash can be reproduced by running the following sample program:

/*
 * compile as follows:
 *      cc vm_deallocate_tail.c -lmach
 */
main(int argc, char **argv)
{
        long    addr;
        int     ret;

        /*
         * Create a >4G region
         * The system must have >4G swap or must be running in lazy mode
         * (/sbin/swapdefault is not present).
         */
        addr = 0;
        if (ret = vm_allocate(task_self(), &addr, 0x100000000UL, 1)) {
                mach_error("vm_allocate:", ret);
                exit(1);
        }
        /*
         * deallocate the last page
         */
        if (ret = vm_deallocate(task_self(),
				addr+0x100000000UL-0x2000, 0x2000)) {
                mach_error("vm_deallocate:", ret);
                exit(1);
        }
        exit(0);
}


FILE(s):

/usr/sys/BINARY/vm_anon.o		subset OSFBIN365
CHECKSUM: 16520     73     RCS: vm_anon.c      Revision: 1.1.36.2
