mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
To: paulmck@kernel.org
Cc: Boqun Feng <boqun@kernel.org>, Kunwu Chan <kunwu.chan@gmail.com>,
	Wang Lian <lianux.mm@gmail.com>, Zqiang <qiang.zhang@linux.dev>,
	Bradley Morgan <brads@mainlining.org>,
	rcu@vger.kernel.org, lkmm@lists.linux.dev,
	linux-kernel@vger.kernel.org,
	Joel Fernandes <joelagnelf@nvidia.com>
Subject: Re: [BUG] Splat during modest hazptrtorture run
Date: Wed, 7 Oct 2026 03:09:27 -0400	[thread overview]
Message-ID: <5b5dbb90-69ad-4a8f-8583-f5ba162744d3@efficios.com> (raw)
In-Reply-To: <1f885062-4905-4d9c-9293-615c145d2d6b@paulmck-laptop>

On 2026-10-06 19:40, Paul E. McKenney wrote:
> Hello!
> 
> This is all new code, so the bug could be anywhere.  So you all need
> to know.  ;-)
> 
> I got this from the NOPREEMPT variant of hazptr during a nominal
> "--duration 60" run of torture.sh on x86 with the guest OS split across
> two NUMA nodes:
> 
> [  137.765104] WARNING: kernel/rcu/hazptrtorture.c:658 at hazptr_torture_stats_print+0x25b/0x4f0, CPU#1: hazptr_torture_/136
> [  137.768647] Modules linked in:
> [  137.768891] CPU: 1 UID: 0 PID: 136 Comm: hazptr_torture_ Not tainted 7.3.0-rc5-00661-ga1f1e4890d1d-dirty #193 PREEMPTLAZY
> [  137.769683] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-6.el9 11/05/2023
> [  137.770319] RIP: 0010:hazptr_torture_stats_print+0x25b/0x4f0
> [  137.770735] Code: 48 83 c4 20 e8 86 44 fe ff 41 83 fd 01 7e 23 48 c7 c6 6e 85 17 b0 48 c7 c7 db 27 17 b0 e8 6d 44 fe ff f0 ff 05 76 6e 0a 02 90 <0f> 0b 90 4c 8b 64 24 70 48 c7 c7 73 85 17 b0 e8 51 44 fe ff 48 8b
> [  137.772061] RSP: 0018:ffffa738004ffdf0 EFLAGS: 00010202
> [  137.772435] RAX: 0000000000000004 RBX: ffffa738004ffe08 RCX: 0000000000000027
> [  137.772950] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
> [  137.773455] RBP: ffffa738004ffe60 R08: 4000000000001236 R09: ffffffffb01727df
> [  137.773980] R10: 0000000020212121 R11: 0000000020212121 R12: 0000000000000000
> [  137.774479] R13: 0000000000000002 R14: 000000000002ffd6 R15: 0000000000034f03
> [  137.775000] FS:  0000000000000000(0000) GS:ffff999c2e502000(0000) knlGS:0000000000000000
> [  137.775578] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [  137.776001] CR2: 0000000000000000 CR3: 0000000008830000 CR4: 00000000000006f0
> [  137.776512] Call Trace:
> [  137.776700]  <TASK>
> [  137.776863]  ? __pfx_hazptr_torture_stats+0x10/0x10
> [  137.777207]  hazptr_torture_stats+0x25/0x70
> [  137.777508]  kthread+0xd9/0x110
> [  137.777751]  ? __pfx_kthread+0x10/0x10
> [  137.778017]  ret_from_fork+0x1bd/0x220
> [  137.778285]  ? __pfx_kthread+0x10/0x10
> [  137.778560]  ret_from_fork_asm+0x1a/0x30
> [  137.778849]  </TASK>
> [  137.779007] ---[ end trace 0000000000000000 ]---
> 
> I have not yet seen this during a PREEMPT run.  Line 658 of
> hazptrtorture.c is the WARN_ON_ONCE() below:
> 
> 	if (i > 1) {
> 		pr_cont("%s", "!!! ");
> 		atomic_inc(&n_hazptr_torture_error);
> 		WARN_ON_ONCE(i > 1); // Too-short grace period
> 	}
> 
> Any thoughts on what might be causing this?

Hi Paul!

Can you share which tree and branch (commit) this is running ?

Does it include my fix from this series ? That would be patch 1 of:

https://lore.kernel.org/lkml/20260927155134.4740-1-mathieu.desnoyers@efficios.com/

Does it run the additional series from Kunwu Chan found at
https://lore.kernel.org/lkml/20261002170847.3653663-1-kunwu.chan@gmail.com/ ?

Thanks,

Mathieu

> 
> For that matter, can anyone else reproduce this?
> 
> 								Thanx, Paul


-- 
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com

  reply	other threads:[~2026-10-07  7:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-06 23:40 Paul E. McKenney
2026-10-07  7:09 ` Mathieu Desnoyers [this message]
2026-10-07 15:59   ` Paul E. McKenney
2026-10-07 16:03     ` Mathieu Desnoyers
2026-10-07 16:24       ` Paul E. McKenney
2026-10-07 16:08     ` Bradley Morgan
2026-10-08  1:39     ` KunWu Chan
2026-10-08  3:53       ` Paul E. McKenney
2026-10-08  4:15         ` KunWu Chan

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=5b5dbb90-69ad-4a8f-8583-f5ba162744d3@efficios.com \
    --to=mathieu.desnoyers@efficios.com \
    --cc=boqun@kernel.org \
    --cc=brads@mainlining.org \
    --cc=joelagnelf@nvidia.com \
    --cc=kunwu.chan@gmail.com \
    --cc=lianux.mm@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkmm@lists.linux.dev \
    --cc=paulmck@kernel.org \
    --cc=qiang.zhang@linux.dev \
    --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

all inboxes | Powered by JetHome®