From: Mark Rutland <mark.rutland@arm.com>
To: Yu Liao <liaoyu15@huawei.com>
Cc: "Paul E. McKenney" <paulmck@kernel.org>,
"liwei (GF)" <liwei391@huawei.com>,
linux-kernel@vger.kernel.org, rcu@vger.kernel.org
Subject: Re: [BUG] possible deadlock in __rcu_irq_enter_check_tick
Date: Mon, 24 Oct 2022 13:20:57 +0100 [thread overview]
Message-ID: <Y1aDKeFzYNrpt7ww@FVFF77S0Q05N> (raw)
In-Reply-To: <97cfec0d-a24b-9917-2bd1-404e344eaa36@huawei.com>
On Thu, Oct 20, 2022 at 09:32:35PM +0800, Yu Liao wrote:
> On 2022/10/19 22:14, Mark Rutland wrote:
> > On Tue, Oct 18, 2022 at 03:24:48PM +0100, Mark Rutland wrote:
> > Having a go with v6.1-rc1, placing a kprobe on __rcu_irq_enter_check_tick()
> > causes a recursive exception which triggers the stack overflow detection, so
> > there are bigger problems here, and we'll need to do some further rework of the
> > arm64 entry code. FWIW, x86-64 seems fine.
> >
> > I have a vague recollection that that there was something (some part kprobes,
> > perhaps) that didn't like being called in NMI context, which is why debug
> > exceptions aren't accounted as true NMIs (but get most of the same treatment).
> >
> > I'll have to dig into this a bit more; there are a bunch of subtle interactions
> > in this area, and I don't want to put a band-aid over this without fully
> > understanding the implications.
> >
> > Once we've figured that out for mainline, we can figure out what needs to go to
> > stable.
> >
> > Yu, were you particularly interested in tracing __rcu_irq_enter_check_tick(),
> > or did you stumble upon this by other means?
> Oh,This was found with the help of the kernel fuzzer syzkaller.
Thanks for confirming!
I've also been testing with Syzkaller, but it looks like I haven't had KPROBES
enabled due to deselecting MODULE support, which explains how I've missed this
until now. :/
I'll go fiddle with moy configs.
Thanks,
Mark.
prev parent reply other threads:[~2022-10-24 14:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-11 13:18 [BUG] possible deadlock in __rcu_irq_enter_check_tick Yu Liao
2022-10-12 6:49 ` Paul E. McKenney
2022-10-17 9:32 ` Zhang, Qiang1
2022-10-18 2:33 ` Yu Liao
2022-10-18 14:24 ` Mark Rutland
2022-10-19 2:40 ` Zhang, Qiang1
2022-10-19 3:03 ` Yu Liao
2022-10-19 14:14 ` Mark Rutland
2022-10-20 13:32 ` Yu Liao
2022-10-24 12:20 ` Mark Rutland [this message]
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=Y1aDKeFzYNrpt7ww@FVFF77S0Q05N \
--to=mark.rutland@arm.com \
--cc=liaoyu15@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=liwei391@huawei.com \
--cc=paulmck@kernel.org \
--cc=rcu@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox