From: Richard Henderson <richard@atheist.tamu.edu>
Subject: Re: mlockall() oops still present in 2.0.28 ( alpha Architecture )
Date: Thu, 16 Jan 1997 08:53:30 -0600 (CST) [thread overview]
Message-ID: <199701161453.IAA24912@atheist.tamu.edu> (raw)
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
prev parent reply other threads:[~1997-01-16 14:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-16 9:55 mlockall() oops still present in 2.0.28 ( alpha Architecture ) Zarmfab Software Development
1997-01-16 14:53 ` Richard Henderson [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox