Skip to content

kernel 5.10.48 crash #4460

Open
Open

Description

@greengekota

Describe the bug

Linux 5.10.48 (commit 4a1f592) with wayland freezes with dmesg message

[ +29.853154] Unable to handle kernel paging request at virtual address dead000000000108
[  +0.008129] Mem abort info:
[  +0.002943]   ESR = 0x96000044
[  +0.003351]   EC = 0x25: DABT (current EL), IL = 32 bits
[  +0.005507]   SET = 0, FnV = 0
[  +0.003291]   EA = 0, S1PTW = 0
[  +0.003427] Data abort info:
[  +0.003084]   ISV = 0, ISS = 0x00000044
[  +0.004094]   CM = 0, WnR = 1
[  +0.003173] [dead000000000108] address between user and kernel address ranges

This doesn't happen with 5.10.46 (commit 64f5ffe).

To reproduce
Make an archlinux installation on a drive by running

pacstrap -ci /mnt linux-raspberrypi4=5.10.48-1 \
  raspberrypi-bootloader raspberrypi-bootloader-x firmware-raspberrypi \
  base sway

This requires having a copy of that version of linux, but 5.10.50 (the current one) presents the same problem too.
Then

  • copy boot.txt
  • edit root in /etc/cmdline.txt
  • create a user and set its password in chroot
  • boot with this drive, log in, start sway
  • move the mouse and keysmash a little to generate entropy
  • wait until the system freezes and the pointer stops moving.

This was the used config.txt:

hdmi_drive=1
disable_overscan=1
max_framebuffers=1
initramfs initramfs-linux.img followkernel
disable_splash=1
dtparam=audio=on
dtoverlay=disable-bt
dtoverlay=disable-wifi
dtoverlay=vc4-kms-v3d,cma-256

With 5.10.46 it doesn't crash.

Expected behaviour
System runs without crashing.

Actual behaviour
System crashes.

System
Copy and paste the results of the raspinfo command in to this section. Alternatively, copy and paste a pastebin link, or add answers to the following questions:

  • Which model of Raspberry Pi? e.g. Pi3B+, PiZeroW
    Raspberry Pi 4 Model B Rev 1.2
  • Which OS and version (cat /etc/rpi-issue)?
    archlinux arm
  • Which firmware version (vcgencmd version)?
    Jul 14 2021 14:20:55
    Copyright (c) 2012 Broadcom
    version 1ecd7d49359f3b48737f1a9e33c2f1513f90743d (clean) (release) (start)
  • Which kernel version (uname -a)?
    Linux version 5.10.48-1-ARCH

Logs
If applicable, add the relevant output from dmesg or similar.

Edit moved log to file: dmesg.txt

Additional context
Add any other relevant context for the problem.

Activity

  1. popcornmix commented on Jul 21, 2021

    @popcornmix
    Collaborator

    The latest rpi-update firmware contains a fix for the timeout in rpi_firmware_transaction called from vc4_drm_bind I see in your log.

    I wasn't seeing the later Unable to handle kernel paging request at virtual address message, so I'm not sure if it will help that, but it's worth testing.

  2. greengekota commented on Jul 22, 2021

    @greengekota
    Author

    Thank you for the reply and update! I tested the new version (thanks to graysky too) and the firmware transaction timeout disappeared. On the other hand I'm still getting the above crash on my main image, and I attempted to make a minimal image as above with the same result. I tested xorg-xserver and xorg-xinit and the system doesn't crash, it seems I can only reproduce with sway.

    Full dmesg: dmesg-new.txt

  3. mghadam commented on Aug 1, 2021

    @mghadam

    I was using CEC without any problems on my RPi 4 with KMS for a couple of months and suddenly this fix broke it as described here :

    Pulse-Eight/libcec#576

  4. added a commit that references this issue on Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions