RISCV: segfaults after installing wifi module (before reboot)

Bug #1994490 reported by Sander Jonkers
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-meta-allwinner-5.17 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hardware: Licheee RV Dock RISC-V Allwinner D1. Has been rockstable for months with an image from Armbian person

Followed https://wiki.ubuntu.com/RISC-V/LicheeRV . After "sudo apt-get install licheerv-rtl8723ds-dkms" (but without reboot), I got segfaults for normal commands like "sudo apt update". I believe those commands were done via the fixed-ethernet ssh connection

After reboot, no more segfaults.

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: linux-allwinner 5.17.0.1003.5
ProcVersionSignature: User Name 5.17.0-1003.3-allwinner 5.17.15
Uname: Linux 5.17.0-1003-allwinner riscv64
ApportVersion: 2.23.1-0ubuntu3
Architecture: riscv64
CasperMD5CheckResult: unknown
Date: Wed Oct 26 09:01:42 2022
ProcCpuinfoMinimal:
 processor : 0
 hart : 0
 isa : rv64imafdc
 mmu : sv39
 uarch : thead,c906
SourcePackage: linux-meta-allwinner-5.17
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Sander Jonkers (jonkers) wrote :
Revision history for this message
Sander Jonkers (jonkers) wrote :
Download full text (4.1 KiB)

Oct 25 18:27:53 ubuntu kernel: [ 4406.926779] Unable to handle kernel paging request at virtual address ffffff983a94d92e
Oct 25 18:27:53 ubuntu kernel: [ 4406.955407] Oops [#2]
Oct 25 18:27:53 ubuntu kernel: [ 4406.978035] Modules linked in: tls(+) sr9700 dm9601 usbnet input_leds joydev hid_generic usbhid hid binfmt_misc cfg80211 snd_soc_hdm
i_codec dw_hdmi_i2s_audio dw_hdmi_cec sunxi_cir pwrseq_simple sun8i_drm_hdmi rc_core dw_hdmi sun8i_mixer sunxi phy_generic sunxi_cedrus(C) snd_soc_simple_card v4l2_me
m2mem sun20i_codec snd_soc_simple_card_utils snd_soc_dmic videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 sun4i_drm videobuf2_common sun4i_frontend sun4i_tcon su
n8i_tcon_top snd_soc_core drm_cma_helper display_connector snd_compress videodev ac97_bus snd_pcm_dmaengine drm_kms_helper snd_pcm leds_sun50i_r329 mc snd_timer led_c
lass_multicolor fb_sys_fops snd syscopyarea sysfillrect sysimgblt backlight soundcore leds_gpio nls_iso8859_1 uio_pdrv_genirq uio dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua ramoops reed_solomon pstore_blk pstore_zone efi_pstore ip_tables x_tables autofs4 efivarfs raid10 raid456 libcrc32c async_raid6_recov async_memcpy async_pq async_xor xor async_tx raid6_pq
Oct 25 18:27:53 ubuntu kernel: [ 4406.978598]  raid1 raid0 multipath linear
Oct 25 18:27:53 ubuntu kernel: [ 4407.212165] CPU: 0 PID: 6352 Comm: sudo Tainted: G      D  C        5.17.0-1003-allwinner #3-Ubuntu
Oct 25 18:27:53 ubuntu kernel: [ 4407.246267] Hardware name: Sipeed Lichee RV Dock (DT)
Oct 25 18:27:53 ubuntu kernel: [ 4407.276217] epc : __kmalloc_node+0x128/0x364
Oct 25 18:27:53 ubuntu kernel: [ 4407.305231]  ra : __kmalloc_node+0x64/0x364
Oct 25 18:27:53 ubuntu kernel: [ 4407.334229] epc : ffffffff80239f7a ra : ffffffff80239eb6 sp : ffffffd80561fc90
Oct 25 18:27:53 ubuntu kernel: [ 4407.366646]  gp : ffffffff81e93b80 tp : ffffffd8025d6400 t0 : 00000000000001f8
Oct 25 18:27:53 ubuntu kernel: [ 4407.398907]  t1 : 0000003fb4c6641c t2 : 0000000000000008 s0 : ffffffd80561fd00
Oct 25 18:27:53 ubuntu kernel: [ 4407.431020]  s1 : ffffffd802201200 a0 : ffffffffffffffff a1 : ffffffff81f01dd0
Oct 25 18:27:53 ubuntu kernel: [ 4407.463158]  a2 : 0000000000000001 a3 : 83f2e1983a94d92e a4 : 0000000000000000
Oct 25 18:27:53 ubuntu kernel: [ 4407.495341]  a5 : 83f2e1983a94d92e a6 : 0000000000005747 a7 : 0000000000020000
Oct 25 18:27:53 ubuntu kernel: [ 4407.527548]  s2 : ffffffd80561fdf8 s3 : 0000000000000dc0 s4 : ffffffffffffffff
Oct 25 18:27:53 ubuntu kernel: [ 4407.559782]  s5 : 0000000000000008 s6 : ffffffd802201200 s7 : ffffffff801d3090
Oct 25 18:27:53 ubuntu kernel: [ 4407.591863]  s8 : 0000002b17a8edb0 s9 : 0000000000000000 s10: 0000002ade40e9b8
Oct 25 18:27:53 ubuntu kernel: [ 4407.623804]  s11: 0000002ade40e928 t3 : 6c5b5b52f11b86d1 t4 : 000000000000dcf4
Oct 25 18:27:53 ubuntu kernel: [ 4407.655493]  t5 : 000000000001d028 t6 : 000000000216f6d7
Oct 25 18:27:53 ubuntu kernel: [ 4407.684922] status: 0000000200000120 badaddr: ffffff983a94d92e cause: 000000000000000d
Oct 25 18:27:53 ubuntu kernel: [ 4407.717044] [<ffffffff801d3090>] kvmalloc_node+0x2e/0xa2
Oct 25 18:27:53 ubuntu kernel: [ 4407.746449] [<ffffffff803105ee>] proc_sys_call_handler+0xd8/0x1f...

Read more...

Revision history for this message
Sander Jonkers (jonkers) wrote :

apport says the below ...

$ apport-collect 1994490
Package linux-meta-allwinner-5.17 not installed and no hook available, ignoring

*** Updating problem report

No additional information collected.

Press any key to continue...

No pending crash reports. Try --help for more information.

Revision history for this message
Sander Jonkers (jonkers) wrote :

File attached: syslog from around the Oops-es

ubuntu@ubuntu:/var/log$ cat syslog | grep Oops
Oct 25 18:27:24 ubuntu kernel: [ 4377.869176] Oops [#1]
Oct 25 18:27:53 ubuntu kernel: [ 4406.955407] Oops [#2]
Oct 25 18:27:57 ubuntu kernel: [ 4411.224132] Oops [#3]
Oct 25 18:28:06 ubuntu kernel: [ 4420.433722] Oops [#4]
Oct 25 18:28:20 ubuntu kernel: [ 4434.230391] Oops [#5]
Oct 25 18:28:25 ubuntu kernel: [ 4438.709924] Oops [#6]
Oct 25 18:28:26 ubuntu kernel: [ 4440.412321] Oops [#7]

ubuntu@ubuntu:/var/log$ cat syslog | grep -B40 -A40 -e "Oct 25 18:27" -e "Oct 25 18:28" > /tmp/syslog_around_Oops.txt

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

Sander, as you mentioned Armbian just for clarification: Did you experience the problem with a fresh install using Ubuntu's LicheeRV image or with some Armbian stuff still in your installation.

Revision history for this message
Sander Jonkers (jonkers) wrote : Re: [Bug 1994490] Re: RISCV: segfaults after installing wifi module (before reboot)

The segfault only happened with a fresh Ubuntu's LicheeRV image, written
to a separate SD-card.

The Armbian-like image was on another sd-card, not in the Lichee.

I will repeat the Ubuntu's LicheeRV image writing & boot & wifi-install
procedure to see if I can reproduce the problem (or that it was just a
fluke).

On Wed, Oct 26, 2022 at 1:57 PM Heinrich Schuchardt <
<email address hidden>> wrote:

> Sander, as you mentioned Armbian just for clarification: Did you
> experience the problem with a fresh install using Ubuntu's LicheeRV
> image or with some Armbian stuff still in your installation.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1994490
>
> Title:
> RISCV: segfaults after installing wifi module (before reboot)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/linux-meta-allwinner-5.17/+bug/1994490/+subscriptions
>
>

--

Revision history for this message
Sander Jonkers (jonkers) wrote :

So I repeated the setup sequence ... and no segfaults. All is working without any problems.

So ... close as a fluke?

Changed in linux-meta-allwinner-5.17 (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.