mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@digeo.com>
To: Zwane Mwaikambo <zwane@linuxpower.ca>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Oops on 2.5.40, flush_tlb_mm
Date: Wed, 02 Oct 2002 18:42:30 -0700	[thread overview]
Message-ID: <3D9BA086.76B60194@digeo.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0210021957140.14293-100000@montezuma.mastecende.com>

Zwane Mwaikambo wrote:
> 
> Hi,
>         Please keep my CC on any replies (i'm currently experiencing
> DNS problems and hence do not get lkml)
> 
> Dorking around in mozilla did this, the machine had completely locked up
> so this was from the serial;
> 
> Unable to handle kernel paging request at virtual address 5a5a5ad6
>  printing eip:
> c0115f2f
> *pde = 00000000
> Oops: 0000
> 
> CPU:    0
> EIP:    0060:[<c0115f2f>]    Not tainted
> EFLAGS: 00010202
> EIP is at flush_tlb_mm+0x1f/0x90
> eax: c1ce01a0   ebx: 5a5a5a5a   ecx: 00000000   edx: fffffffe
> esi: 00400000   edi: c759d418   ebp: 00100000   esp: c2749f04
> ds: 0068   es: 0068   ss: 0068
> Process mozilla-bin (pid: 1396, threadinfo=c2748000 task=c1ce01a0)
> Stack: c759d418 c01418ab 5a5a5a5a c759d418 c142d810 c0141a1a c142d810 c195263c
>        c012c577 00000001 00000000 c1ce01a0 41500000 00100073 00000002 c195263c
>        c0141c62 c195263c 41800000 41500000 00000025 00000025 c2fda834 00000073
> Call Trace:
>  [<c01418ab>]change_protection+0x1bb/0x210
>  [<c0141a1a>]mprotect_attempt_merge+0x11a/0x1d0
>  [<c012c577>]update_process_times+0x27/0x30
>  [<c0141c62>]mprotect_fixup+0x192/0x1b0
>  [<c0141de7>]sys_mprotect+0x167/0x2f0
>  [<c010bd67>]do_IRQ+0x1e7/0x200
>  [<c0109477>]syscall_call+0x7/0xb

You need Hugh's patch.  Was sent to Linus yesterday...



Patch from Hugh Dickins

Our earlier fix for mprotect_fixup was broken - passing an
already-freed VMA to change_protection().



 mm/mprotect.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

--- 2.5.40/mm/mprotect.c~hugh-mprotect-fix	Tue Oct  1 23:43:14 2002
+++ 2.5.40-akpm/mm/mprotect.c	Tue Oct  1 23:43:14 2002
@@ -186,8 +186,10 @@ mprotect_fixup(struct vm_area_struct *vm
 		/*
 		 * Try to merge with the previous vma.
 		 */
-		if (mprotect_attempt_merge(vma, *pprev, end, newflags))
+		if (mprotect_attempt_merge(vma, *pprev, end, newflags)) {
+			vma = *pprev;
 			goto success;
+		}
 	} else {
 		error = split_vma(mm, vma, start, 1);
 		if (error)

.

  reply	other threads:[~2002-10-03  1:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-03  0:12 Zwane Mwaikambo
2002-10-03  1:42 ` Andrew Morton [this message]
2002-10-03  0:58   ` Zwane Mwaikambo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D9BA086.76B60194@digeo.com \
    --to=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zwane@linuxpower.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®