Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* mlockall() oops still present in 2.0.28 ( alpha Architecture )
@ 1997-01-16  9:55 Zarmfab Software Development
  1997-01-16 14:53 ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Zarmfab Software Development @ 1997-01-16  9:55 UTC (permalink / raw)


Just compiled 2.0.28 at my alpha-box and noticed the
oops produced by mlockall() is still there.

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 )

Will i have to wait for 2.2 if i want a working mlockall() ?

-- 
Martin Cornelius, ZARMFAB software development, University of Bremen
phone: 49-421-218-4807    FAX: 49-421-218-3889
email: fabsoft@zarm.uni-bremen.de
paper-mail: Hochschulring / Am Fallturm, 28359 BREMEN, Germany

--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mlockall() oops still present in 2.0.28 ( alpha Architecture )
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 1997-01-16 14:53 UTC (permalink / raw)


> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-01-16 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox