Skip to content

Kernel panic on UltraSPARC III with CONFIG_CGROUP_BPF enabled on systemd #29

@glaubitz

Description

@glaubitz

Just trying to reinstall the openssh-server package can cause the kernel to panic on a Netra 240 (sun4u, UltraSPARC IIIi):

root@raverin:~# apt install --reinstall openssh-server
Summary:                        
  Upgrading: 0, Installing: 0, Reinstalling: 1, Removing: 0, Not Upgrading: 0
  Download size: 0 B / 485 kB
  Space needed: 0 B / 40.1 GB available

Preconfiguring packages ...
(Reading database ... 99333 files and directories currently installed.)
Preparing to unpack .../openssh-server_1%3a10.2p1-2_sparc64.deb ...
Unpacking openssh-server (1:10.2p1-2) over (1:10.2p1-2) ...
Setting up openssh-server (1:10.2p1-2) ...

The resulting backtrace is:

raverin login: [  116.815129] systemd-journald[196]: Time jumped backwards, rotating.
[  381.671904] systemd-sysv-generator[1250]: SysV service '/etc/init.d/buildd' lacks a native systemd unit file, automatically generating a unit file for compatibility.
[  381.866801] systemd-sysv-generator[1250]: Please update package to include a native systemd unit file.
[  381.990064] systemd-sysv-generator[1250]: ⚠ This compatibility logic is deprecated, expect removal soon. ⚠
[  385.113190] systemd-sysv-generator[1289]: SysV service '/etc/init.d/buildd' lacks a native systemd unit file, automatically generating a unit file for compatibility.
[  385.307931] systemd-sysv-generator[1289]: Please update package to include a native systemd unit file.
[  385.431140] systemd-sysv-generator[1289]: ⚠ This compatibility logic is deprecated, expect removal soon. ⚠
[  386.598296] Unable to handle kernel paging request at virtual address 5520000300000000
[  386.702502] tsk->{mm,active_mm}->context = 00000000000000ab
[  386.775743] tsk->{mm,active_mm}->pgd = fff0000008180000
[  386.844454]               \|/ ____ \|/
[  386.844454]               "@'/ .. \`@"
[  386.844454]               /_| \__/ |_\
[  386.844454]                  \__U_/
[  387.037781] systemd(1): Oops [#1]
[  387.081312] CPU: 0 UID: 0 PID: 1 Comm: systemd Not tainted 6.18.0-rc2 #1 NONE 
[  387.176256] TSTATE: 0000004411001601 TPC: 000000000064d910 TNPC: 000000000064d914 Y: 00000000    Not tainted
[  387.305595] TPC: <bpf_check+0x2010/0x3520>
[  387.359457] g0: 0000000000000000 g1: 0000000000fc1330 g2: 5520000300000002 g3: 000000000000ff00
[  387.473829] g4: fff0000000235800 g5: fff000023e318000 g6: fff0000000268000 g7: fff000023e318000
[  387.588204] o0: 0000000100868000 o1: fff0000008e08aa8 o2: 0000000000000000 o3: 000000000000003a
[  387.702586] o4: 0000000000000000 o5: 000000000000003a sp: fff000000026b011 ret_pc: 000000000064d8f4
[  387.821529] RPC: <bpf_check+0x1ff4/0x3520>
[  387.875282] l0: 0000000000000000 l1: 000007feffbdb260 l2: 0000000000000001 l3: 000007feffbdb25c
[  387.989660] l4: 00000100004bbe84 l5: 0000000000000000 l6: fff0000008e08000 l7: fff000000026b9a0
[  388.104036] i0: fff000000026ba98 i1: fff000000026bd28 i2: 0000000000000000 i3: 00000000000062d0
[  388.218414] i4: 0000000000000000 i5: 0000000000fc3368 i6: fff000000026b1e1 i7: 000000000061d61c
[  388.332786] I7: <bpf_prog_load+0x8fc/0xe00>
[  388.387789] Call Trace:
[  388.419811] [<000000000061d61c>] bpf_prog_load+0x8fc/0xe00
[  388.491868] [<000000000061f6d4>] __sys_bpf+0x1034/0x27e0
[  388.561635] [<0000000000621498>] sys_bpf+0x18/0x60
[  388.624542] [<0000000000406274>] linux_sparc_syscall+0x34/0x44
[  388.701176] Disabling lock debugging due to kernel taint
[  388.770941] Caller[000000000061d61c]: bpf_prog_load+0x8fc/0xe00
[  388.848715] Caller[000000000061f6d4]: __sys_bpf+0x1034/0x27e0
[  388.924217] Caller[0000000000621498]: sys_bpf+0x18/0x60
[  388.992937] Caller[0000000000406274]: linux_sparc_syscall+0x34/0x44
[  389.075284] Caller[fff000010089b74c]: 0xfff000010089b74c
[  389.145050] Instruction DUMP:
[  389.145053]  01000000 
[  389.183937]  d05da008 
[  389.214817]  c45a2050 
[  389.245696] <c408a09a>
[  389.276582]  80a0a000 
[  389.307461]  02480007 
[  389.338341]  01000000 
[  389.369222]  40010c98 
[  389.400103]  01000000 
[  389.430986] 
[  389.481313] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
[  389.581967] Press Stop-A (L1-A) from sun keyboard or send break
[  389.581967] twice on console to return to the boot prom
[  389.728357] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009 ]---

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingkernel

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions