public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alex Riesen <alexander.riesen@synopsys.COM>
To: Carl-Daniel Hailfinger <c-d.hailfinger.kernel.2003@gmx.net>
Cc: mikpe@csd.uu.se, sfr@canb.auug.org.au,
	linux-kernel@vger.kernel.org, linux-laptop@vger.kernel.org
Subject: Re: 2.5.69+bk: oops in apmd after waking up from suspend mode
Date: Tue, 20 May 2003 12:48:20 +0200	[thread overview]
Message-ID: <20030520104820.GA7580@Synopsys.COM> (raw)
In-Reply-To: <3ECA05FA.6090008@gmx.net>

Carl-Daniel Hailfinger, Tue, May 20, 2003 12:39:54 +0200:
> >>>>EIP is at fix_processor_context+0x5f/0x100
> >>>>Process kapmd (pid: 4, threadinfo=c5f0e000 task=c5fbc640)
> >>>
> >>>After receiving Alex' .config and gcc version (3.2.3), I've been
> >>>able to decipher this. current->mm is NULL in the kapmd task. The call
> >>>
> >>>	load_LDT(&current->mm->context);	/* This does lldt */
> >>>
> >>>in fix_processor_context() computes the address of context as
> >>>(current->mm)+0x7c, which is 0x7c. load_LDT_nolock() dereferences
> >>>0x7c+0x14 (void *segments = pc->ldt) and the oops follows.
> >>>
> >>>As to _why_ kapmd's current->mm is NULL, I don't know. It isn't
> >>>when I test APM suspend in 2.5.69-bk. A lot of code dereferences
> >>>current->mm without checking, so I guess current->mm==NULL is a bug.
> >>
> >>i just go and try it with the latest -bk.
> > 
> > no change. Still oopses.
> 
> Could you try to compile with gcc-3.3? In another thread (2.5.69-mm6:
> pccard oops) this helped IIRC. I'm suspecting gcc 3.2.3 generates
> incorrect code for some cases.

I preferably not. Zwane already mentioned that current->mm allowed to
be NULL for kernel threads, and i seen it be NULL even before suspending.

-alex


  reply	other threads:[~2003-05-20 10:35 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-19 12:16 2.5.69+bk: oops in apmd after waking up from suspend mode mikpe
2003-05-19 12:31 ` Alex Riesen
2003-05-19 14:41   ` Alex Riesen
2003-05-19 15:13     ` Alex Riesen
2003-05-20 10:39     ` Carl-Daniel Hailfinger
2003-05-20 10:48       ` Alex Riesen [this message]
2003-05-20 16:34       ` Milton Miller
2003-05-20 17:00         ` Alex Riesen
2003-05-20 17:17           ` Alex Riesen
2003-05-20 20:10             ` Nigel Cunningham
2003-05-20 22:01               ` Zwane Mwaikambo
2003-05-19 21:57 ` Zwane Mwaikambo
  -- strict thread matches above, loose matches on Subject: below --
2003-05-14  9:48 Alex Riesen
2003-05-14 13:04 ` mikpe
2003-05-14 13:46   ` Alex Riesen
2003-05-14 14:03     ` mikpe
2003-05-14 14:11       ` Alex Riesen
2003-05-14 14:37         ` mikpe
2003-05-14 14:45           ` Alex Riesen

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=20030520104820.GA7580@Synopsys.COM \
    --to=alexander.riesen@synopsys.com \
    --cc=c-d.hailfinger.kernel.2003@gmx.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-laptop@vger.kernel.org \
    --cc=mikpe@csd.uu.se \
    --cc=sfr@canb.auug.org.au \
    /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