From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199612040706.BAA22292@atheist.tamu.edu> Date: Wed, 4 Dec 1996 01:06:18 -0600 (CST) From: Richard Henderson Subject: Re: mlockall() still causes 100 % oops in 2.0.27 In-Reply-To: <199612032117.WAA00396@alpha.franken.de> > Unable to handle kernel paging request at virtual address 0000015555720000 > [...] > 0000015555720000-0000015555772000 ---p 00000000000ae000 08:01 19433 > [...] > Hope this helps someone. Indeed it does. The appended is not what I would have called the ideal fix, as it doesn't do the right thing for vmas that are, e.g., exec only, but it does keep the kernel from crashing. It would be cleaner imho, though slower, to make a call into some other part of the mm directly that would assert that a given page is present. r~ --- mlock.c.orig Wed Dec 4 00:55:53 1996 +++ mlock.c Wed Dec 4 01:05:37 1996 @@ -124,10 +124,10 @@ static int mlock_fixup(struct vm_area_st pages = -pages; vma->vm_mm->locked_vm += pages; - if (newflags & VM_LOCKED) + if ((newflags & (VM_LOCKED|VM_READ)) == (VM_LOCKED|VM_READ)) while (start < end) { - char c; - get_user(c,(char *) start); + int c; + get_user(c,(int *) start); __asm__ __volatile__("": :"r" (c)); 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