public inbox for linux-parisc@vger.kernel.org
 help / color / mirror / Atom feed
From: matoro <matoro_mailinglist_kernel@matoro.tk>
To: John David Anglin <dave.anglin@bell.net>
Cc: Linux Parisc <linux-parisc@vger.kernel.org>,
	Deller <deller@gmx.de>, John David Anglin <dave@parisc-linux.org>,
	peterz@infradead.org
Subject: Re: Crash on boot with CONFIG_JUMP_LABEL in 6.10
Date: Tue, 30 Jul 2024 20:36:13 -0400	[thread overview]
Message-ID: <cb2c656129d3a4100af56c74e2ae3060@matoro.tk> (raw)
In-Reply-To: <11e13a9d-3942-43a5-b265-c75b10519a19@bell.net>

On 2024-07-30 09:50, John David Anglin wrote:
> On 2024-07-30 9:41 a.m., John David Anglin wrote:
>> On 2024-07-29 7:11 p.m., matoro wrote:
>>> Hi all, just bumped to the newest mainline starting with 6.10.2 and 
>>> immediately ran into a crash on boot. Fully reproducible, reverting back 
>>> to last known good (6.9.8) resolves the issue.  Any clue what's going on 
>>> here? I can provide full boot logs, start bisecting, etc if needed...
>> 6.10.2 built and booted okay on my c8000 with the attached config. You 
>> could start
>> with it and incrementally add features to try to identify the one that 
>> causes boot failure.
> Oh, I have an experimental clocksource patch installed.  You will need to 
> regenerate config
> with "make oldconfig" to use the current timer code.  Probably, this would 
> happen automatically.
>> 
>> Your config would be needed to duplicate.    Full boot log would also help.
> 
> Dave

Hi Dave, bisecting quickly revealed the cause here.

91a1d97ef482c1e4c9d4c1c656a53b0f6b16d0ed is the first bad commit
commit 91a1d97ef482c1e4c9d4c1c656a53b0f6b16d0ed
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Wed Mar 13 19:01:03 2024 +0100

     jump_label,module: Don't alloc static_key_mod for __ro_after_init keys

     When a static_key is marked ro_after_init, its state will never change
     (after init), therefore jump_label_update() will never need to iterate
     the entries, and thus module load won't actually need to track this --
     avoiding the static_key::next write.

     Therefore, mark these keys such that jump_label_add_module() might
     recognise them and avoid the modification.

     Use the special state: 'static_key_linked(key) && !static_key_mod(key)'
     to denote such keys.

     jump_label_add_module() does not exist under CONFIG_JUMP_LABEL=n, so the
     newly-introduced jump_label_init_ro() can be defined as a nop for that
     configuration.

     [ mingo: Renamed jump_label_ro() to jump_label_init_ro() ]

     Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
     Signed-off-by: Valentin Schneider <vschneid@redhat.com>
     Signed-off-by: Ingo Molnar <mingo@kernel.org>
     Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
     Link: 
https://lore.kernel.org/r/20240313180106.2917308-2-vschneid@redhat.com

  include/asm-generic/sections.h |  5 ++++
  include/linux/jump_label.h     |  3 +++
  init/main.c                    |  1 +
  kernel/jump_label.c            | 53 
++++++++++++++++++++++++++++++++++++++++++
  4 files changed, 62 insertions(+)

This only manifests with CONFIG_JUMP_LABEL=y, which I have set and you do 
not.  Flipping this off allows 6.10 to boot normally.  Copying in the author 
here as well.

  reply	other threads:[~2024-07-31  0:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-29 23:11 Crash on booth with 6.10 matoro
2024-07-30 13:41 ` John David Anglin
2024-07-30 13:50   ` John David Anglin
2024-07-31  0:36     ` matoro [this message]
2024-07-31 11:06       ` Crash on boot with CONFIG_JUMP_LABEL in 6.10 Peter Zijlstra
2024-07-31 13:31         ` Sam James
2024-07-31 13:41           ` Greg KH
2024-07-31 17:00             ` Sam James
2024-08-01  1:12               ` matoro
2024-08-30 18:18 ` Crash on booth with 6.10 Christoph Biedl
2024-08-30 23:33   ` Helge Deller
2024-08-31  9:10     ` Helge Deller
2024-08-31 17:44       ` Christoph Biedl

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=cb2c656129d3a4100af56c74e2ae3060@matoro.tk \
    --to=matoro_mailinglist_kernel@matoro.tk \
    --cc=dave.anglin@bell.net \
    --cc=dave@parisc-linux.org \
    --cc=deller@gmx.de \
    --cc=linux-parisc@vger.kernel.org \
    --cc=peterz@infradead.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