kernel 5.10.48 crash

Open
#4,460 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, linux

Research direction

Start by reviewing dmesg.txt and reproducing the freeze with the listed Raspberry Pi 4 configuration, sway, and kernel versions 5.10.46 versus 5.10.48. Inspect changes between the two kernel commits and use the documented boot.txt and /etc/cmdline.txt setup; done means identifying and fixing the regression and confirming that the system no longer crashes under the reproduction steps.

Written by the indexing model from the issue text.

Description

Describe the bug

Linux 5.10.48 (commit 4a1f59200d36993f6b32742c03c154ae275bd89c) 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 64f5ffe846252ea43731ee8959ad4c13c70b9101).

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.

Dominant language
C
Stars
13.2k
Forks
5.5k
Avg merge
2d 21h
Merged PRs (30d)
21

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/linux

All issues in raspberrypi/linux

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.