Skip to contentSkip to conversation

Mount crashes with SIGILL on v240 on for-next

DISCUSSION John Paul Adrian Glaubitz 3 participants 13 messages Oct 10 – Oct 12

lore
Share & tools
lore
#0 lore raw

Hi,

I just booted Andreas' for-next branch on a V240 causing the mount command to crash with SIGILL. I think I've seen this before:

[   42.327479] hid-generic 0003:413C:2106.0001: input,hidraw0: USB HID v1.10 Keyboard [Dell Dell QuietKey Keyboard] on usb-0001:00:0a.0-1/input0

Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.42.4 [/sbin/fsck.ext4 (1) -- /dev/sda2] fsck.ext4 -a -C0 /dev/sda2
/dev/sda2: clean, 2028114/8871936 files, 27597228/35467[ 43.259718] ------------[ ftrace bug ]------------
312 blocks
done[ 43.334910] ftrace faulted on unknown error
.

[   43.334915] [<00000000102ee004>] 0x102ee004
[   43.465739] Initializing ftrace call sites
[   43.519487] ftrace record flags: 2000000
[   43.570955]  (0)    
[   43.570955]  expected tramp: f854d0
[   43.645302] ------------[ cut here ]------------
[   43.705920] WARNING: kernel/trace/ftrace.c:2278 at ftrace_bug+0x2f4/0x328, CPU#0: modprobe/131
[   43.819259] Modules linked in: crc16 mbcache jbd2 hid_generic usbhid hid sr_mod sd_mod cdrom ata_generic ohci_pci ehci_pci ehci_hcd ohci_hcd pata_ali libata sym53c8xx scsi_transport_spi usbcore tg3
scsi_mod libphy scsi_common usb_common mdio_bus
[   44.105327] CPU: 0 UID: 0 PID: 131 Comm: modprobe Not tainted 7.3.0-rc1+ #1 VOLUNTARY 
[   44.209473] Call Trace:
[   44.241493] [<00000000004356ec>] dump_stack+0x8/0x18
[   44.306688] [<0000000000477448>] __warn+0xe8/0x160
[   44.369595] [<00000000004294d0>] warn_slowpath_fmt+0x34/0x74
[   44.443937] [<000000000042b0dc>] ftrace_bug+0x2f4/0x328
[   44.512563] [<0000000000578220>] ftrace_process_locs+0x420/0x620
[   44.591482] [<000000000057c87c>] ftrace_module_init+0x3c/0x80
[   44.666969] [<000000000051a544>] load_module+0x1bc4/0x23c0
[   44.739026] [<000000000051af9c>] init_module_from_file+0x9c/0x120
[   44.819089] [<000000000051b24c>] sys_finit_module+0x1cc/0x320
[   44.894577] [<0000000000406194>] linux_sparc_syscall+0x34/0x44
[   44.971222] ---[ end trace 0000000000000000 ]---
[   45.073228]               \|/ ____ \|/
[   45.073228]               "@'/ .. \`@"
[   45.073228]               /_| \__/ |_\
[   45.073228]                  \__U_/
[   45.266666] mount(130): Kernel illegal instruction [#1]
[   45.335350] CPU: 0 UID: 0 PID: 130 Comm: mount Tainted: G        W           7.3.0-rc1+ #1 VOLUNTARY 
[   45.456591] Tainted: [W]=WARN
[   45.495469] TSTATE: 0000009911001606 TPC: 00000000102ee384 TNPC: 00000000102ee388 Y: 00000000    Tainted: G        W          
[   45.645312] TPC: <ext4_get_group_desc+0x4/0x100 [ext4]>
[   45.714138] g0: 0000000000000001 g1: 000000000000043b g2: fff0000008d44000 g3: 00000000c2020000
[   45.828514] g4: fff0000007bcd800 g5: 0000000000bc5c34 g6: fff0000007d60000 g7: 0000000000020000
[   45.942891] o0: fff0000008d45800 o1: 0000000000000000 o2: 0000000000000009 o3: 0000000000001000
[   46.057267] o4: fff0000008d45800 o5: fff0000008d44000 sp: fff0000007d67011 ret_pc: 00000000103615fc
[   46.176223] RPC: <ext4_fill_super+0x1b9c/0x3000 [ext4]>
[   46.244941] l0: 0000000000000000 l1: 0000000000000011 l2: fff0000008d443f8 l3: 0000000000000000
[   46.359317] l4: fff0000008d44000 l5: 00000000103acc00 l6: fff0000008808400 l7: 0000000000000000
[   46.473689] i0: fff0000008d44000 i1: fff00000001a8e40 i2: 0000000000000000 i3: fff0000008d45800
[   46.588067] i4: 0000000000000001 i5: 0000000000020000 i6: fff0000007d67181 i7: 00000000007b8e6c
[   46.702443] I7: <get_tree_bdev_flags+0x10c/0x1c0>
[   46.764200] Call Trace:
[   46.796220] [<00000000007b8e6c>] get_tree_bdev_flags+0x10c/0x1c0
[   46.875144] [<00000000007b8f34>] get_tree_bdev+0x14/0x40
[   46.944915] [<000000001034e254>] ext4_get_tree+0x14/0x40 [ext4]
[   47.022794] [<00000000007b5840>] vfs_get_tree+0x20/0x120
[   47.092568] [<00000000007e292c>] fc_mount+0xc/0xa0
[   47.155468] [<00000000007e8c54>] path_mount+0x4b4/0xac0
[   47.224089] [<00000000007e9814>] sys_mount+0xf4/0x1a0
[   47.290430] [<0000000000406194>] linux_sparc_syscall+0x34/0x44
[   47.367059] Disabling lock debugging due to kernel taint
[   47.436829] Caller[00000000007b8e6c]: get_tree_bdev_flags+0x10c/0x1c0
[   47.521465] Caller[00000000007b8f34]: get_tree_bdev+0x14/0x40
[   47.596955] Caller[000000001034e254]: ext4_get_tree+0x14/0x40 [ext4]
[   47.680552] Caller[00000000007b5840]: vfs_get_tree+0x20/0x120
[   47.756040] Caller[00000000007e292c]: fc_mount+0xc/0xa0
[   47.824662] Caller[00000000007e8c54]: path_mount+0x4b4/0xac0
[   47.899010] Caller[00000000007e9814]: sys_mount+0xf4/0x1a0
[   47.971063] Caller[0000000000406194]: linux_sparc_syscall+0x34/0x44
[   48.053415] Caller[000001000008fea8]: 0x1000008fea8
[   48.117461] Instruction DUMP:
[   48.117465]  c4286105 
[   48.156348]  96102000 
[   48.187229]  94102009 
[   48.218112] <bc325c4f>
[   48.248992]  7c02dc45 
[   48.279874]  901221d8 
[   48.310764]  106fffaa 
[   48.341636]  ba103fea 
[   48.372517]  03040e21 
[   48.403398] 

Killed
Failed to mount /dev/sda2 as root file system.

BusyBox v1.38.0 (Debian 1:1.38.0-3) built-in shell (ash) Enter 'help' for a list of built-in commands.

(initramfs)

Anyone have any clue?

Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
#1 lore raw

Hi everyone,

Quoted 92 lines · John Paul Adrian Glaubitz

Hi,

I just booted Andreas' for-next branch on a V240 causing the mount command to crash with SIGILL. I think I've seen this before:

[   42.327479] hid-generic 0003:413C:2106.0001: input,hidraw0: USB HID v1.10 Keyboard [Dell Dell QuietKey Keyboard] on usb-0001:00:0a.0-1/input0

Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.42.4 [/sbin/fsck.ext4 (1) -- /dev/sda2] fsck.ext4 -a -C0 /dev/sda2
/dev/sda2: clean, 2028114/8871936 files, 27597228/35467[ 43.259718] ------------[ ftrace bug ]------------
312 blocks
done[ 43.334910] ftrace faulted on unknown error
.

[   43.334915] [<00000000102ee004>] 0x102ee004
[   43.465739] Initializing ftrace call sites
[   43.519487] ftrace record flags: 2000000
[   43.570955]  (0)
[   43.570955]  expected tramp: f854d0
[   43.645302] ------------[ cut here ]------------
[   43.705920] WARNING: kernel/trace/ftrace.c:2278 at ftrace_bug+0x2f4/0x328, CPU#0: modprobe/131
[   43.819259] Modules linked in: crc16 mbcache jbd2 hid_generic usbhid hid sr_mod sd_mod cdrom ata_generic ohci_pci ehci_pci ehci_hcd ohci_hcd pata_ali libata sym53c8xx scsi_transport_spi usbcore tg3
scsi_mod libphy scsi_common usb_common mdio_bus
[   44.105327] CPU: 0 UID: 0 PID: 131 Comm: modprobe Not tainted 7.3.0-rc1+ #1 VOLUNTARY
[   44.209473] Call Trace:
[   44.241493] [<00000000004356ec>] dump_stack+0x8/0x18
[   44.306688] [<0000000000477448>] __warn+0xe8/0x160
[   44.369595] [<00000000004294d0>] warn_slowpath_fmt+0x34/0x74
[   44.443937] [<000000000042b0dc>] ftrace_bug+0x2f4/0x328
[   44.512563] [<0000000000578220>] ftrace_process_locs+0x420/0x620
[   44.591482] [<000000000057c87c>] ftrace_module_init+0x3c/0x80
[   44.666969] [<000000000051a544>] load_module+0x1bc4/0x23c0
[   44.739026] [<000000000051af9c>] init_module_from_file+0x9c/0x120
[   44.819089] [<000000000051b24c>] sys_finit_module+0x1cc/0x320
[   44.894577] [<0000000000406194>] linux_sparc_syscall+0x34/0x44
[   44.971222] ---[ end trace 0000000000000000 ]---
[   45.073228]               \|/ ____ \|/
[   45.073228]               "@'/ .. \`@"
[   45.073228]               /_| \__/ |_\
[   45.073228]                  \__U_/
[   45.266666] mount(130): Kernel illegal instruction [#1]
[   45.335350] CPU: 0 UID: 0 PID: 130 Comm: mount Tainted: G        W           7.3.0-rc1+ #1 VOLUNTARY
[   45.456591] Tainted: [W]=WARN
[   45.495469] TSTATE: 0000009911001606 TPC: 00000000102ee384 TNPC: 00000000102ee388 Y: 00000000    Tainted: G        W
[   45.645312] TPC: <ext4_get_group_desc+0x4/0x100 [ext4]>
[   45.714138] g0: 0000000000000001 g1: 000000000000043b g2: fff0000008d44000 g3: 00000000c2020000
[   45.828514] g4: fff0000007bcd800 g5: 0000000000bc5c34 g6: fff0000007d60000 g7: 0000000000020000
[   45.942891] o0: fff0000008d45800 o1: 0000000000000000 o2: 0000000000000009 o3: 0000000000001000
[   46.057267] o4: fff0000008d45800 o5: fff0000008d44000 sp: fff0000007d67011 ret_pc: 00000000103615fc
[   46.176223] RPC: <ext4_fill_super+0x1b9c/0x3000 [ext4]>
[   46.244941] l0: 0000000000000000 l1: 0000000000000011 l2: fff0000008d443f8 l3: 0000000000000000
[   46.359317] l4: fff0000008d44000 l5: 00000000103acc00 l6: fff0000008808400 l7: 0000000000000000
[   46.473689] i0: fff0000008d44000 i1: fff00000001a8e40 i2: 0000000000000000 i3: fff0000008d45800
[   46.588067] i4: 0000000000000001 i5: 0000000000020000 i6: fff0000007d67181 i7: 00000000007b8e6c
[   46.702443] I7: <get_tree_bdev_flags+0x10c/0x1c0>
[   46.764200] Call Trace:
[   46.796220] [<00000000007b8e6c>] get_tree_bdev_flags+0x10c/0x1c0
[   46.875144] [<00000000007b8f34>] get_tree_bdev+0x14/0x40
[   46.944915] [<000000001034e254>] ext4_get_tree+0x14/0x40 [ext4]
[   47.022794] [<00000000007b5840>] vfs_get_tree+0x20/0x120
[   47.092568] [<00000000007e292c>] fc_mount+0xc/0xa0
[   47.155468] [<00000000007e8c54>] path_mount+0x4b4/0xac0
[   47.224089] [<00000000007e9814>] sys_mount+0xf4/0x1a0
[   47.290430] [<0000000000406194>] linux_sparc_syscall+0x34/0x44
[   47.367059] Disabling lock debugging due to kernel taint
[   47.436829] Caller[00000000007b8e6c]: get_tree_bdev_flags+0x10c/0x1c0
[   47.521465] Caller[00000000007b8f34]: get_tree_bdev+0x14/0x40
[   47.596955] Caller[000000001034e254]: ext4_get_tree+0x14/0x40 [ext4]
[   47.680552] Caller[00000000007b5840]: vfs_get_tree+0x20/0x120
[   47.756040] Caller[00000000007e292c]: fc_mount+0xc/0xa0
[   47.824662] Caller[00000000007e8c54]: path_mount+0x4b4/0xac0
[   47.899010] Caller[00000000007e9814]: sys_mount+0xf4/0x1a0
[   47.971063] Caller[0000000000406194]: linux_sparc_syscall+0x34/0x44
[   48.053415] Caller[000001000008fea8]: 0x1000008fea8
[   48.117461] Instruction DUMP:
[   48.117465]  c4286105
[   48.156348]  96102000
[   48.187229]  94102009
[   48.218112] <bc325c4f>
[   48.248992]  7c02dc45
[   48.279874]  901221d8
[   48.310764]  106fffaa
[   48.341636]  ba103fea
[   48.372517]  03040e21
[   48.403398]

Killed
Failed to mount /dev/sda2 as root file system.

Quoted 7 lines

BusyBox v1.38.0 (Debian 1:1.38.0-3) built-in shell (ash) Enter 'help' for a list of built-in commands.

(initramfs)

Anyone have any clue?

I've booted Andreas for-next branch (as it stands today) on my Ultra-45 box, seems to boot fine, no regressions that I can tell.

Running kernel: 7.3.0-rc1-ultra45-for-next-20261010+ Boot image: /boot/vmlinux-7.3.0-rc1-ultra45-for-next-20261010+ Source branch: for-next
Source commit: a9e88d617a25306fa7e532b0b8be08df778872cc Kernel taint: 0

Magnus

#2 lore raw
In reply to John Paul Adrian Glaubitz

Hi,

Quoted 113 lines · John Paul Adrian Glaubitz

Hi,

I just booted Andreas' for-next branch on a V240 causing the mount command to crash with SIGILL. I think I've seen this before:

[   42.327479] hid-generic 0003:413C:2106.0001: input,hidraw0: USB HID v1.10 Keyboard [Dell Dell QuietKey Keyboard] on usb-0001:00:0a.0- 1/input0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local- top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.42.4
[/sbin/fsck.ext4 (1) -- /dev/sda2] fsck.ext4 -a -C0 /dev/sda2 /dev/sda2: clean, 2028114/8871936 files, 27597228/35467[   43.259718] ------------[ ftrace bug ]------------
312 blocks
done[   43.334910] ftrace faulted on unknown error
.
[   43.334915] [<00000000102ee004>] 0x102ee004
[   43.465739] Initializing ftrace call sites
[   43.519487] ftrace record flags: 2000000
[   43.570955]  (0)
[   43.570955]  expected tramp: f854d0
[   43.645302] ------------[ cut here ]------------
[   43.705920] WARNING: kernel/trace/ftrace.c:2278 at ftrace_bug+0x2f4/0x328, CPU#0: modprobe/131
[   43.819259] Modules linked in: crc16 mbcache jbd2 hid_generic usbhid hid sr_mod sd_mod cdrom ata_generic ohci_pci ehci_pci ehci_hcd ohci_hcd pata_ali libata sym53c8xx scsi_transport_spi usbcore tg3 scsi_mod libphy scsi_common usb_common mdio_bus
[   44.105327] CPU: 0 UID: 0 PID: 131 Comm: modprobe Not tainted 7.3.0-rc1+ #1 VOLUNTARY
[   44.209473] Call Trace:
[   44.241493] [<00000000004356ec>] dump_stack+0x8/0x18
[   44.306688] [<0000000000477448>] __warn+0xe8/0x160
[   44.369595] [<00000000004294d0>] warn_slowpath_fmt+0x34/0x74 [   44.443937] [<000000000042b0dc>] ftrace_bug+0x2f4/0x328 [   44.512563] [<0000000000578220>] ftrace_process_locs+0x420/0x620 [   44.591482] [<000000000057c87c>] ftrace_module_init+0x3c/0x80 [   44.666969] [<000000000051a544>] load_module+0x1bc4/0x23c0 [   44.739026] [<000000000051af9c>] init_module_from_file+0x9c/0x120 [   44.819089] [<000000000051b24c>] sys_finit_module+0x1cc/0x320 [   44.894577] [<0000000000406194>] linux_sparc_syscall+0x34/0x44 [   44.971222] ---[ end trace 0000000000000000 ]---
[   45.073228]               \|/ ____ \|/
[   45.073228]               "@'/ .. \`@"
[   45.073228]               /_| \__/ |_\
[   45.073228]                  \__U_/
[   45.266666] mount(130): Kernel illegal instruction [#1] [   45.335350] CPU: 0 UID: 0 PID: 130 Comm: mount Tainted: G W           7.3.0-rc1+ #1 VOLUNTARY
[   45.456591] Tainted: [W]=WARN
[   45.495469] TSTATE: 0000009911001606 TPC: 00000000102ee384 TNPC:
00000000102ee388 Y: 00000000    Tainted: G        W
[   45.645312] TPC: <ext4_get_group_desc+0x4/0x100 [ext4]> [   45.714138] g0: 0000000000000001 g1: 000000000000043b g2:
fff0000008d44000 g3: 00000000c2020000
[   45.828514] g4: fff0000007bcd800 g5: 0000000000bc5c34 g6:
fff0000007d60000 g7: 0000000000020000
[   45.942891] o0: fff0000008d45800 o1: 0000000000000000 o2:
0000000000000009 o3: 0000000000001000
[   46.057267] o4: fff0000008d45800 o5: fff0000008d44000 sp:
fff0000007d67011 ret_pc: 00000000103615fc
[   46.176223] RPC: <ext4_fill_super+0x1b9c/0x3000 [ext4]> [   46.244941] l0: 0000000000000000 l1: 0000000000000011 l2:
fff0000008d443f8 l3: 0000000000000000
[   46.359317] l4: fff0000008d44000 l5: 00000000103acc00 l6:
fff0000008808400 l7: 0000000000000000
[   46.473689] i0: fff0000008d44000 i1: fff00000001a8e40 i2:
0000000000000000 i3: fff0000008d45800
[   46.588067] i4: 0000000000000001 i5: 0000000000020000 i6:
fff0000007d67181 i7: 00000000007b8e6c
[   46.702443] I7: <get_tree_bdev_flags+0x10c/0x1c0>
[   46.764200] Call Trace:
[   46.796220] [<00000000007b8e6c>] get_tree_bdev_flags+0x10c/0x1c0 [   46.875144] [<00000000007b8f34>] get_tree_bdev+0x14/0x40 [   46.944915] [<000000001034e254>] ext4_get_tree+0x14/0x40 [ext4] [   47.022794] [<00000000007b5840>] vfs_get_tree+0x20/0x120 [   47.092568] [<00000000007e292c>] fc_mount+0xc/0xa0
[   47.155468] [<00000000007e8c54>] path_mount+0x4b4/0xac0 [   47.224089] [<00000000007e9814>] sys_mount+0xf4/0x1a0
[   47.290430] [<0000000000406194>] linux_sparc_syscall+0x34/0x44 [   47.367059] Disabling lock debugging due to kernel taint [   47.436829] Caller[00000000007b8e6c]:

get_tree_bdev_flags+0x10c/0x1c0
[   47.521465] Caller[00000000007b8f34]: get_tree_bdev+0x14/0x40
[   47.596955] Caller[000000001034e254]: ext4_get_tree+0x14/0x40

[ext4]
[   47.680552] Caller[00000000007b5840]: vfs_get_tree+0x20/0x120 [   47.756040] Caller[00000000007e292c]: fc_mount+0xc/0xa0 [   47.824662] Caller[00000000007e8c54]: path_mount+0x4b4/0xac0 [   47.899010] Caller[00000000007e9814]: sys_mount+0xf4/0x1a0 [   47.971063] Caller[0000000000406194]:
linux_sparc_syscall+0x34/0x44
[   48.053415] Caller[000001000008fea8]: 0x1000008fea8 [   48.117461] Instruction DUMP:
[   48.117465]  c4286105
[   48.156348]  96102000
[   48.187229]  94102009
[   48.218112] <bc325c4f>
[   48.248992]  7c02dc45
[   48.279874]  901221d8
[   48.310764]  106fffaa
[   48.341636]  ba103fea
[   48.372517]  03040e21
[   48.403398]
Killed
Failed to mount /dev/sda2 as root file system.

Quoted 7 lines

BusyBox v1.38.0 (Debian 1:1.38.0-3) built-in shell (ash) Enter 'help' for a list of built-in commands.

(initramfs)

Anyone have any clue?

Tested for-next on Sun Fire V240, no issues here.

Haven't reproduced, so starting the guessing game.

My first bet is on a config diff, so will try Debian's config and see if I can reproduce. I'm running a pretty lean Gentoo kernel config.

You're not running any out of tree patches in your current build?

Is this a problem only in Andreas' for-next branch, or does it also crash with 7.3-rc6?

Any relation to https://github.com/sparclinux/issues/issues/29, does this patch on top of for-next fix it? I never hit #29 in the first place so not hitting it now doesn't prove anything.

Will report back if I reproduce and find something more concrete.

/Stian

#3 lore raw

Hi Stian,

Quoted 131 lines · Stian Halseth
Quoted 113 lines · John Paul Adrian Glaubitz

Hi,

I just booted Andreas' for-next branch on a V240 causing the mount command to crash with SIGILL. I think I've seen this before:

[   42.327479] hid-generic 0003:413C:2106.0001: input,hidraw0: USB HID v1.10 Keyboard [Dell Dell QuietKey Keyboard] on usb-0001:00:0a.0- 1/input0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local- top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.42.4
[/sbin/fsck.ext4 (1) -- /dev/sda2] fsck.ext4 -a -C0 /dev/sda2 /dev/sda2: clean, 2028114/8871936 files, 27597228/35467[   43.259718] ------------[ ftrace bug ]------------
312 blocks
done[   43.334910] ftrace faulted on unknown error
.
[   43.334915] [<00000000102ee004>] 0x102ee004
[   43.465739] Initializing ftrace call sites
[   43.519487] ftrace record flags: 2000000
[   43.570955]  (0)
[   43.570955]  expected tramp: f854d0
[   43.645302] ------------[ cut here ]------------
[   43.705920] WARNING: kernel/trace/ftrace.c:2278 at ftrace_bug+0x2f4/0x328, CPU#0: modprobe/131
[   43.819259] Modules linked in: crc16 mbcache jbd2 hid_generic usbhid hid sr_mod sd_mod cdrom ata_generic ohci_pci ehci_pci ehci_hcd ohci_hcd pata_ali libata sym53c8xx scsi_transport_spi usbcore tg3 scsi_mod libphy scsi_common usb_common mdio_bus
[   44.105327] CPU: 0 UID: 0 PID: 131 Comm: modprobe Not tainted 7.3.0-rc1+ #1 VOLUNTARY
[   44.209473] Call Trace:
[   44.241493] [<00000000004356ec>] dump_stack+0x8/0x18
[   44.306688] [<0000000000477448>] __warn+0xe8/0x160
[   44.369595] [<00000000004294d0>] warn_slowpath_fmt+0x34/0x74 [   44.443937] [<000000000042b0dc>] ftrace_bug+0x2f4/0x328 [   44.512563] [<0000000000578220>] ftrace_process_locs+0x420/0x620 [   44.591482] [<000000000057c87c>] ftrace_module_init+0x3c/0x80 [   44.666969] [<000000000051a544>] load_module+0x1bc4/0x23c0 [   44.739026] [<000000000051af9c>] init_module_from_file+0x9c/0x120 [   44.819089] [<000000000051b24c>] sys_finit_module+0x1cc/0x320 [   44.894577] [<0000000000406194>] linux_sparc_syscall+0x34/0x44 [   44.971222] ---[ end trace 0000000000000000 ]---
[   45.073228]               \|/ ____ \|/
[   45.073228]               "@'/ .. \`@"
[   45.073228]               /_| \__/ |_\
[   45.073228]                  \__U_/
[   45.266666] mount(130): Kernel illegal instruction [#1] [   45.335350] CPU: 0 UID: 0 PID: 130 Comm: mount Tainted: G W           7.3.0-rc1+ #1 VOLUNTARY
[   45.456591] Tainted: [W]=WARN
[   45.495469] TSTATE: 0000009911001606 TPC: 00000000102ee384 TNPC:
00000000102ee388 Y: 00000000    Tainted: G        W
[   45.645312] TPC: <ext4_get_group_desc+0x4/0x100 [ext4]> [   45.714138] g0: 0000000000000001 g1: 000000000000043b g2:
fff0000008d44000 g3: 00000000c2020000
[   45.828514] g4: fff0000007bcd800 g5: 0000000000bc5c34 g6:
fff0000007d60000 g7: 0000000000020000
[   45.942891] o0: fff0000008d45800 o1: 0000000000000000 o2:
0000000000000009 o3: 0000000000001000
[   46.057267] o4: fff0000008d45800 o5: fff0000008d44000 sp:
fff0000007d67011 ret_pc: 00000000103615fc
[   46.176223] RPC: <ext4_fill_super+0x1b9c/0x3000 [ext4]> [   46.244941] l0: 0000000000000000 l1: 0000000000000011 l2:
fff0000008d443f8 l3: 0000000000000000
[   46.359317] l4: fff0000008d44000 l5: 00000000103acc00 l6:
fff0000008808400 l7: 0000000000000000
[   46.473689] i0: fff0000008d44000 i1: fff00000001a8e40 i2:
0000000000000000 i3: fff0000008d45800
[   46.588067] i4: 0000000000000001 i5: 0000000000020000 i6:
fff0000007d67181 i7: 00000000007b8e6c
[   46.702443] I7: <get_tree_bdev_flags+0x10c/0x1c0>
[   46.764200] Call Trace:
[   46.796220] [<00000000007b8e6c>] get_tree_bdev_flags+0x10c/0x1c0 [   46.875144] [<00000000007b8f34>] get_tree_bdev+0x14/0x40 [   46.944915] [<000000001034e254>] ext4_get_tree+0x14/0x40 [ext4] [   47.022794] [<00000000007b5840>] vfs_get_tree+0x20/0x120 [   47.092568] [<00000000007e292c>] fc_mount+0xc/0xa0
[   47.155468] [<00000000007e8c54>] path_mount+0x4b4/0xac0 [   47.224089] [<00000000007e9814>] sys_mount+0xf4/0x1a0
[   47.290430] [<0000000000406194>] linux_sparc_syscall+0x34/0x44 [   47.367059] Disabling lock debugging due to kernel taint [   47.436829] Caller[00000000007b8e6c]:

get_tree_bdev_flags+0x10c/0x1c0
[   47.521465] Caller[00000000007b8f34]: get_tree_bdev+0x14/0x40
[   47.596955] Caller[000000001034e254]: ext4_get_tree+0x14/0x40

[ext4]
[   47.680552] Caller[00000000007b5840]: vfs_get_tree+0x20/0x120 [   47.756040] Caller[00000000007e292c]: fc_mount+0xc/0xa0 [   47.824662] Caller[00000000007e8c54]: path_mount+0x4b4/0xac0 [   47.899010] Caller[00000000007e9814]: sys_mount+0xf4/0x1a0 [   47.971063] Caller[0000000000406194]:
linux_sparc_syscall+0x34/0x44
[   48.053415] Caller[000001000008fea8]: 0x1000008fea8 [   48.117461] Instruction DUMP:
[   48.117465]  c4286105
[   48.156348]  96102000
[   48.187229]  94102009
[   48.218112] <bc325c4f>
[   48.248992]  7c02dc45
[   48.279874]  901221d8
[   48.310764]  106fffaa
[   48.341636]  ba103fea
[   48.372517]  03040e21
[   48.403398]
Killed
Failed to mount /dev/sda2 as root file system.

Quoted 7 lines

BusyBox v1.38.0 (Debian 1:1.38.0-3) built-in shell (ash) Enter 'help' for a list of built-in commands.

(initramfs)

Anyone have any clue?

Tested for-next on Sun Fire V240, no issues here.

Haven't reproduced, so starting the guessing game.

My first bet is on a config diff, so will try Debian's config and see if I can reproduce. I'm running a pretty lean Gentoo kernel config.

You're not running any out of tree patches in your current build?

Quoted 8 lines

Is this a problem only in Andreas' for-next branch, or does it also crash with 7.3-rc6?

Any relation to https://github.com/sparclinux/issues/issues/29, does this patch on top of for-next fix it? I never hit #29 in the first place so not hitting it now doesn't prove anything.

Will report back if I reproduce and find something more concrete.

Apologies, I forgot to provide my kernel config. See attached.

Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
#4 lore raw

Hi,

Quoted 6 lines · John Paul Adrian Glaubitz
Quoted 2 lines

Will report back if I reproduce and find something more concrete.

Apologies, I forgot to provide my kernel config. See attached.

Ah, uniprocessor, no SMP. That changes quite a few things, D-cache/TLB flush paths...

Will test the same here.

/Stian

#5 lore raw
Quoted 6 lines · Stian Halseth

Hi,

Quoted 3 lines · John Paul Adrian Glaubitz
Quoted 2 lines

Will report back if I reproduce and find something more concrete.

Quoted 9 lines
Quoted 3 lines

Apologies, I forgot to provide my kernel config. See attached.

Ah, uniprocessor, no SMP. That changes quite a few things, D- cache/TLB
flush paths...

Will test the same here.

Tested with the same config, even built it with the same crosstool gcc 15.2.0 / binutils 2.45 on Andreas' for-next. My V240 boots and loads ext4 from the initramfs every time.

CONFIG_SMP unset, is that intended, do you have a single CPU V240?

Does this exact setup (UP kernel, ftrace, xz-compressed modules decompressed by the kernel) ever work with an earlier kernel? If so, which version was the last good one?

If this isn't a regression in the for-next branch, I would try to apply Kaloz v2 patch from sparclinux #29. I cannot reproduce / test, but since you have the issue, I would be very interested to know if it makes a difference:
https://lore.kernel.org/all/[email protected]/

/Stian

#6 lore raw

Hi Stian,

Quoted 3 lines · Stian Halseth

Tested with the same config, even built it with the same crosstool gcc 15.2.0 / binutils 2.45 on Andreas' for-next. My V240 boots and loads ext4 from the initramfs every time.

Odd that you can't reproduce it.

Quoted 1 line

CONFIG_SMP unset, is that intended, do you have a single CPU V240?

Yes, that machine has only one CPU.

Quoted 3 lines

Does this exact setup (UP kernel, ftrace, xz-compressed modules decompressed by the kernel) ever work with an earlier kernel? If so, which version was the last good one?

Yes, it worked fine with earlier kernels besides the stack-size issue.

Quoted 5 lines

If this isn't a regression in the for-next branch, I would try to apply Kaloz v2 patch from sparclinux #29. I cannot reproduce / test, but since you have the issue, I would be very interested to know if it makes a difference:
https://lore.kernel.org/all/[email protected]/

Applied both patches, system boots without issues now. Will continue testing and see if it's stable.

Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
#7 lore raw
Quoted 2 lines · John Paul Adrian Glaubitz

Odd that you can't reproduce it.

I have a dual CPU V240, but compiling uniprocessor kernel wasn't enough, apparently.

Quoted 4 lines
Quoted 2 lines

CONFIG_SMP unset, is that intended, do you have a single CPU V240?

Yes, that machine has only one CPU.

Ok, makes sense.

Quoted 11 lines
Quoted 7 lines

If this isn't a regression in the for-next branch, I would try to apply
Kaloz v2 patch from sparclinux #29. I cannot reproduce / test, but since you have the issue, I would be very interested to know if it makes a difference:
https://lore.kernel.org/all/[email protected]/

Applied both patches, system boots without issues now. Will continue testing and see if it's stable.

Looks like you hit this, where I didn't. Glad it worked. Should probably look at bringing that patch in as well. I've tested it with no regression on my dual CPU V240.

#8 lore raw
Quoted 7 lines · Stian Halseth
Quoted 7 lines
Quoted 6 lines

If this isn't a regression in the for-next branch, I would try to apply
Kaloz v2 patch from sparclinux #29. I cannot reproduce / test, but since you have the issue, I would be very interested to know if it makes a difference:
https://lore.kernel.org/all/[email protected]/

Quoted 6 lines
Quoted 3 lines

Applied both patches, system boots without issues now. Will continue testing and see if it's stable.

Looks like you hit this, where I didn't. Glad it worked. Should probably look at bringing that patch in as well. I've tested it with no regression on my dual CPU V240.

Did your kernel ever crash with CONFIG_CGROUP_BPF enabled? That was my original reproducer.

Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
#9 lore raw
Quoted 3 lines · John Paul Adrian Glaubitz

Did your kernel ever crash with CONFIG_CGROUP_BPF enabled? That was my original reproducer.

No, but my V240 (Sparco) runs OpenRC, so even the test kernels built with CGROUP_BPF=y had no cgroup BPF programs attached.

Since v2 fixes it for you, could you send your Tested-by in Imre's thread?
https://lore.kernel.org/all/[email protected]/

#10 lore raw

Hi all,

Quoted 6 lines · Stian Halseth
Quoted 3 lines · John Paul Adrian Glaubitz

Did your kernel ever crash with CONFIG_CGROUP_BPF enabled? That was my original reproducer.

Quoted 6 lines

No, but my V240 (Sparco) runs OpenRC, so even the test kernels built with CGROUP_BPF=y had no cgroup BPF programs attached.

Since v2 fixes it for you, could you send your Tested-by in Imre's thread?
https://lore.kernel.org/all/[email protected]/

I've been following this thread and made some tests on my system. I tested Andreas' for-next on a single-CPU Ultra 45, built with GCC 15.2.0/binutils 2.45. It boots successfully both with and without Kaloz' v2 D-cache alias fixes.

However, the same source and patches built with Adrian's full config consistently panic while initializing the LSISAS1064 controller. The failure is a Cheetah deferred-error trap reporting “Bus error response from system bus”, usually in MakeIocReady()/WaitForDoorbellAck() in mptbase. Building MPT into the kernel instead of as modules does not prevent it.

Starting from a working lean UP config, I enabled the following options incrementally without reproducing the failure:

- kernel-side XZ module decompression
- modular MPT/SCSI and ext4
- FUNCTION_TRACER, FUNCTION_GRAPH_TRACER and DYNAMIC_FTRACE
- JUMP_LABEL
- SCSI_SCAN_ASYNC

The latest kernel has all of these enabled and boots successfully.

So the failure appears to depend on some other part of Adrian's full configuration, or an interaction between several options. I will continue narrowing the config differences.

Regards,
Magnus

#11 lore raw

Hi again,

Quoted 7 lines · Magnus Lindholm

The latest kernel has all of these enabled and boots successfully.

So the failure appears to depend on some other part of Adrian's full configuration, or an interaction between several options. I will continue narrowing the config differences.

I got a bit further, created a bug report here:

https://github.com/sparclinux/issues/issues/113

Regards
Magnus

#12 lore raw
Quoted 6 lines · Magnus Lindholm

Hi again,

Quoted 3 lines · Magnus Lindholm

The latest kernel has all of these enabled and boots successfully.

Quoted 8 lines
Quoted 4 lines

So the failure appears to depend on some other part of Adrian's full configuration, or an interaction between several options. I will continue narrowing the config differences.

I got a bit further, created a bug report here:

https://github.com/sparclinux/issues/issues/113

Thanks a lot for the report. Slightly modified the title and stripped off "[BUG]" as we use tags for that.

Thanks,
Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913