Page MenuHomeVyOS Platform

Kernel panic for ZimaBoard 232
Closed, ResolvedPublicBUG

Description

Kernel panic for ZimaBoard 232 with the latest rolling 1.5/1.4.0-epa1/1.4.0-epa2
But it works fine for VyOS 1.4-rolling-202303170317

vyos-router[1204]: Waiting for NICs to settle down: settled in 0sec..
vyos-router[1204]: Mounting VyOS config...done.


BUG: kernel NULL pointer dereference, address: 00000000000002e0
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 0 P4D 0
Oops: 0000 [#1] PREEMPT SMP NOPTI
CPU: 0 PID 1975 COMM: ethtool Not tainted 6.6.21-amd64-vyos #1
Hardware name: Default string default string/@MB216-i, BIOS 5.12 10/28/2022
RIP: 0010:phy_read_mmd+0x9/0x50
...
...
Call Trace:
  ? __die+0x1a/0x60
  ? page_fault_oops+0x154/0x440
  ? preempt_count_add+0x42/0xa0
...
  ? phy_read_mmd+0x9/0x50
  ? phy_ethtool_set_eee+0x4e/0x60
...
-- [ end Kernel panic - not syncing: Fatal exception ] ----

Details

Difficulty level
Unknown (require assessment)
Version
1.4.0-epa2
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

Viacheslav triaged this task as Normal priority.Mar 21 2024, 6:18 PM

My best bet would be an issue with reading back the EEE registers of the Realtek r8169 driver.

Is there a moment when you have access to the system? Then please edit /usr/lib/python3/dist-packages/vyos/ethtool.py and change

_drivers_without_eee = ['vmxnet3', 'virtio_net', 'xen_netfront', 'hv_netvsc']

to

_drivers_without_eee = ['vmxnet3', 'virtio_net', 'xen_netfront', 'hv_netvsc', 'r8169']

EEE was added in https://vyos.dev/T5566 but looks like the implementation is a bit broken here and there

c-po moved this task from In Progress to Finished on the VyOS 1.4 Sagitta (1.4.0-epa3) board.