All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Zyngier <maz@kernel.org>
To: Johan Hovold <johan@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	Shanker Donthineni <sdonthineni@nvidia.com>,
	Konrad Dybcio <konrad.dybcio@linaro.org>,
	linux-kernel@vger.kernel.org
Subject: Re: Oops on /proc/interrupt access with 6.5-rc1
Date: Tue, 11 Jul 2023 19:14:02 +0100	[thread overview]
Message-ID: <86a5w2wc2d.wl-maz@kernel.org> (raw)
In-Reply-To: <ZK16bmOPqe4Ev1Hb@hovoldconsulting.com>

On Tue, 11 Jul 2023 16:51:10 +0100,
Johan Hovold <johan@kernel.org> wrote:
> 
> Hi,
> 
> Konrad reported on IRC that he hit a segfault and hang when watch:ing
> /proc/interrupts with 6.5-rc1.
> 
> I tried simply catting it and hit the below oops immediately with my
> X13s (aarch64).
> 
> Commit 721255b9826b ("genirq: Use a maple tree for interrupt descriptor
> management") stood out when skimming the log, and Marc soon suggested
> the same possible culprit on IRC.
> 
> I have not been able to reproduce it with the maple tree patch reverted,
> but I hit it again after adding it back. Did not trigger immediately
> after boot though, I had had the machine idling for a few minutes in
> between.
> 
> Marc asked for a dump so figured I'd CC the list as well.

Thanks for that. I've been trying to reproduce this locally, but
failed so far. I'll try a different part of the zoo to see if I get
more luck.

I wonder if you have a driver that periodically allocates an interrupt
and then frees it...

[...]

> [ 2546.693932] Unable to handle kernel paging request at virtual address ffff80008106bb19

The VA seems legitimate, and not unusual for a string.

> [ 2546.695148] Mem abort info:
> [ 2546.695562]   ESR = 0x0000000096000007
> [ 2546.695976]   EC = 0x25: DABT (current EL), IL = 32 bits
> [ 2546.696394]   SET = 0, FnV = 0
> [ 2546.696807]   EA = 0, S1PTW = 0
> [ 2546.697220]   FSC = 0x07: level 3 translation fault
> [ 2546.697642] Data abort info:
> [ 2546.698066]   ISV = 0, ISS = 0x00000007, ISS2 = 0x00000000
> [ 2546.698494]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0

This is a read, but we don't have any valid syndrome information.

Could you try and enable KASAN?

Thanks,

	M.

-- 
Without deviation from the norm, progress is not possible.

  parent reply	other threads:[~2023-07-11 18:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-11 15:51 Oops on /proc/interrupt access with 6.5-rc1 Johan Hovold
2023-07-11 16:56 ` Shanker Donthineni
2023-07-11 18:14 ` Marc Zyngier [this message]
2023-07-12  8:53   ` Johan Hovold
2023-07-12 11:02   ` Johan Hovold

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=86a5w2wc2d.wl-maz@kernel.org \
    --to=maz@kernel.org \
    --cc=johan@kernel.org \
    --cc=konrad.dybcio@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sdonthineni@nvidia.com \
    --cc=tglx@linutronix.de \
    /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.