From: "Kevin D. Kissell" <kevink@mips.com>
To: "atul srivastava" <atulsrivastava9@rediffmail.com>
Cc: <linux-mips@linux-mips.org>
Subject: Re: epc status cause all are reported zero?
Date: Wed, 20 Nov 2002 12:23:02 +0100 [thread overview]
Message-ID: <00dc01c29087$319a3690$10eca8c0@grendel> (raw)
In-Reply-To: 20021120104638.23926.qmail@webmail36.rediffmail.com
> During exec there is a page fault of 4000b0 but immediately after
> that i get another page fault 0f 0x0fc01788 and following register
> dump after it
> fails to get a fixup address.
>
> Unable to handle kernel paging request at virtual address
> 0fc01788, epc == 00000Oops in fault.c:do_page_fault, line 230:
> $0 : 00000000 00000000 00000000 00000000
> $4 : 00007340 800f0474 00000000 801fa000
> $8 : 00000000 00000000 00000000 4c696e75
> $12: 78000000 00000000 00000000 00000000
> $16: 00000000 00000000 00000000 00000000
> $20: 00000000 00000000 00000000 00000000
> $24: 00000000 00000000
> $28: 6e652900 00000000 00000000 00000000
> epc : 00000000
> Status: 00000000
> Cause : 00000000
> Process sh (pid: 1, stackpage=801fa000)
>
>
> i am confused how come the epc status and cause register all are
> reported zero.
> whether my regs ( pointer to struct pt_regs) is pointing somewhere
> else..?
When you see a register dump like that, it's a safe
bet that your regs pointer is trashed.
> secondly Is this a problem with shell or kernel..? may be
> somewhere the kernel is not checking the
> validity of user space address and hence this problem.
By definition, it would be a kernel problem even if
the shell *had* made a bogus reference. Worst
case, an error in user mode should cause a core
dump (of course, if it's init that dumps core, you
aren't likely to get to a system login).
You seem to be pretty new to this, so let me recommend
that you first read the FAQ and related information at
http://www.linux-mips.org/, and if you want further
help from the mailing list, please specify what CPU and
board/system you are targeting, which kernel sources you used,
and what tools you used to build it, all of which are pretty
important.
Kevin K.
WARNING: multiple messages have this Message-ID (diff)
From: "Kevin D. Kissell" <kevink@mips.com>
To: atul srivastava <atulsrivastava9@rediffmail.com>
Cc: linux-mips@linux-mips.org
Subject: Re: epc status cause all are reported zero?
Date: Wed, 20 Nov 2002 12:23:02 +0100 [thread overview]
Message-ID: <00dc01c29087$319a3690$10eca8c0@grendel> (raw)
Message-ID: <20021120112302.tDAQvsAUA-ZVxBnZpULKKuXeRWOvzZH5Qu4bZlstgWA@z> (raw)
In-Reply-To: 20021120104638.23926.qmail@webmail36.rediffmail.com
> During exec there is a page fault of 4000b0 but immediately after
> that i get another page fault 0f 0x0fc01788 and following register
> dump after it
> fails to get a fixup address.
>
> Unable to handle kernel paging request at virtual address
> 0fc01788, epc == 00000Oops in fault.c:do_page_fault, line 230:
> $0 : 00000000 00000000 00000000 00000000
> $4 : 00007340 800f0474 00000000 801fa000
> $8 : 00000000 00000000 00000000 4c696e75
> $12: 78000000 00000000 00000000 00000000
> $16: 00000000 00000000 00000000 00000000
> $20: 00000000 00000000 00000000 00000000
> $24: 00000000 00000000
> $28: 6e652900 00000000 00000000 00000000
> epc : 00000000
> Status: 00000000
> Cause : 00000000
> Process sh (pid: 1, stackpage=801fa000)
>
>
> i am confused how come the epc status and cause register all are
> reported zero.
> whether my regs ( pointer to struct pt_regs) is pointing somewhere
> else..?
When you see a register dump like that, it's a safe
bet that your regs pointer is trashed.
> secondly Is this a problem with shell or kernel..? may be
> somewhere the kernel is not checking the
> validity of user space address and hence this problem.
By definition, it would be a kernel problem even if
the shell *had* made a bogus reference. Worst
case, an error in user mode should cause a core
dump (of course, if it's init that dumps core, you
aren't likely to get to a system login).
You seem to be pretty new to this, so let me recommend
that you first read the FAQ and related information at
http://www.linux-mips.org/, and if you want further
help from the mailing list, please specify what CPU and
board/system you are targeting, which kernel sources you used,
and what tools you used to build it, all of which are pretty
important.
Kevin K.
next prev parent reply other threads:[~2002-11-20 11:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-20 10:46 epc status cause all are reported zero? atul srivastava
2002-11-20 11:23 ` Kevin D. Kissell [this message]
2002-11-20 11:23 ` Kevin D. Kissell
2002-11-20 12:35 ` Ralf Baechle
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='00dc01c29087$319a3690$10eca8c0@grendel' \
--to=kevink@mips.com \
--cc=atulsrivastava9@rediffmail.com \
--cc=linux-mips@linux-mips.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.