From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199701161453.IAA24912@atheist.tamu.edu> Date: Thu, 16 Jan 1997 08:53:30 -0600 (CST) From: Richard Henderson Subject: Re: mlockall() oops still present in 2.0.28 ( alpha Architecture ) In-Reply-To: <9701161055.ZM769@fabsoft2.zarm.uni-bremen.de> > Richard sent me a patch some time ago, but apparently > it was relative to the 2.1.xx tree, so i didn't test it because i > need a somewhat stable system. ( the alpha-box is our primary server ) Here's one for 2.0.x. r~ --- linux-2.0/mm/mlock.c.orig Thu Dec 5 10:52:46 1996 +++ linux-2.0/mm/mlock.c Thu Jan 16 08:51:55 1997 @@ -124,10 +124,12 @@ static int mlock_fixup(struct vm_area_st pages = -pages; vma->vm_mm->locked_vm += pages; - if (newflags & VM_LOCKED) + /* FIXME: may not bring in EXEC only pages on some machines. + but does avoid the oops we'd get otherwise. */ + if ((newflags & (VM_LOCKED|VM_READ)) == (VM_LOCKED|VM_READ)) while (start < end) { - char c = get_user((char *) start); - __asm__ __volatile__("": :"r" (c)); + int i = get_user((int *) start); + __asm__ __volatile__("": :"r" (i)); start += PAGE_SIZE; } } -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com