From: Helge Deller <deller@gmx.de>
To: Sven Schnelle <svens@stackframe.org>
Cc: John David Anglin <dave.anglin@bell.net>,
linux-parisc <linux-parisc@vger.kernel.org>
Subject: Re: Your System ate a SPARC! Gah! in map_pages()
Date: Fri, 10 Dec 2021 22:14:07 +0100 [thread overview]
Message-ID: <970b7b0a-eef9-df91-e474-e68dbcc3ae25@gmx.de> (raw)
In-Reply-To: <87fsr0s0cc.fsf@x1.stackframe.org>
On 12/10/21 20:53, Sven Schnelle wrote:
> Helge Deller <deller@gmx.de> writes:
>
>> On 12/7/21 23:07, John David Anglin wrote:
>>> On 2021-12-05 3:46 p.m., Helge Deller wrote:
>>>>> 10574: 43 ff ff 40 ldb 1fa0(sr3,r31),r31
>>>> This IIR is strange. We most likely don't touch userspace at this stage
>>>> when the kernel boots, and...
>>> I'm thinking IIR is sometimes unreliable. I see the same value
>>> printed for the tst-minsigstksz-5 fault yet the actual fault
>>> instruction was "ldi 1,r25".
>>
>> Good finding.
>> It seems to be at least always unreliable if we get a trap 7 (Instruction access rights).
>> In that case the CPU couldn't execute the instruction due to missing
>> execute permissions. I believe the CPU simply didn't fetched the
>> instruction and as such has stale content in IIR.
>>
>> I'm sending a patch to the list which marks IIR with a magic value in that case.
>
> The same might happen with ISR and IOR - i wonder whether we should take
> a few bit in struct pt_regs, store the interruption code there, and only
> display the fields that are valid for a certain code? pt_regs has an
> unused pad0 field (at least i think it's unused...) which we could use.
> What's your take on this? I would prefer this over some magic values in
> the oops output...
It's a good idea, but do we really want to see such errors often?
So, I think it's not worth the efforts. Showing some magic "baadfood" is ok for me.
But if you like you can code it...
Helge
Btw, it seems I currently have vDSO (32bit) working with signal return code :-)
next prev parent reply other threads:[~2021-12-10 21:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-05 19:33 Your System ate a SPARC! Gah! in map_pages() John David Anglin
2021-12-05 20:46 ` Helge Deller
2021-12-05 21:00 ` John David Anglin
2021-12-05 23:05 ` John David Anglin
2021-12-06 18:41 ` Helge Deller
2021-12-06 19:07 ` John David Anglin
2021-12-07 15:36 ` John David Anglin
2021-12-07 22:07 ` John David Anglin
2021-12-08 8:14 ` Helge Deller
2021-12-10 19:53 ` Sven Schnelle
2021-12-10 21:14 ` Helge Deller [this message]
2021-12-10 21:18 ` John David Anglin
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=970b7b0a-eef9-df91-e474-e68dbcc3ae25@gmx.de \
--to=deller@gmx.de \
--cc=dave.anglin@bell.net \
--cc=linux-parisc@vger.kernel.org \
--cc=svens@stackframe.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.