for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Linux kernel v6.10 crash on virtualization.framework

Open bryanforbes opened this issue 1 year ago • 0 comments

Description

When building an x86_64 image with Batocera's buildroot image, Docker (the entire process, not just docker run) consistently crashes

Reproduce

  1. git clone https://github.com/batocera-linux/batocera.linux.git
  2. cd batocera.linux
  3. git submodule init
  4. git submodule update
  5. Copy batocera.mk.template to batocera.mk and add the following lines:
EXTRA_OPTS  :=  BR2_CCACHE_INITIAL_SETUP=\"--max-size=50G\"
DOCKER_OPTS := --platform linux/amd64
  1. Modify config/batocera-board.common and add BR2_CCACHE_DIR="/tmp/.buildroot-ccache" to the end of the file
  2. Modify Makefile to change -v $(CCACHE_DIR):$(HOME)/.buildroot-ccache to -v $(CCACHE_DIR):/tmp/.buildroot-ccache in all places
  3. Run make build-docker-image
  4. Run make x86_64-build

Expected behavior

The build should finish without errors

docker version

Client:
 Version:           27.1.1
 API version:       1.46
 Go version:        go1.21.12
 Git commit:        6312585
 Built:             Tue Jul 23 19:54:12 2024
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.33.0 (160616)
 Engine:
  Version:          27.1.1
  API version:      1.46 (minimum version 1.24)
  Go version:       go1.21.12
  Git commit:       cc13f95
  Built:            Tue Jul 23 19:57:14 2024
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.7.19
  GitCommit:        2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41
 runc:
  Version:          1.7.19
  GitCommit:        v1.1.13-0-g58aa920
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Version:    27.1.1
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.16.1-desktop.1
    Path:     /Users/bryan/.docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.29.1-desktop.1
    Path:     /Users/bryan/.docker/cli-plugins/docker-compose
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.34
    Path:     /Users/bryan/.docker/cli-plugins/docker-debug
  desktop: Docker Desktop commands (Alpha) (Docker Inc.)
    Version:  v0.0.14
    Path:     /Users/bryan/.docker/cli-plugins/docker-desktop
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     /Users/bryan/.docker/cli-plugins/docker-dev
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.25
    Path:     /Users/bryan/.docker/cli-plugins/docker-extension
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.5
    Path:     /Users/bryan/.docker/cli-plugins/docker-feedback
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.3.0
    Path:     /Users/bryan/.docker/cli-plugins/docker-init
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     /Users/bryan/.docker/cli-plugins/docker-sbom
  scout: Docker Scout (Docker Inc.)
    Version:  v1.11.0
    Path:     /Users/bryan/.docker/cli-plugins/docker-scout

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 1
 Server Version: 27.1.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41
 runc version: v1.1.13-0-g58aa920
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
  cgroupns
 Kernel Version: 6.10.0-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: aarch64
 CPUs: 1
 Total Memory: 7.754GiB
 Name: docker-desktop
 ID: ab728276-10ef-4375-928c-96ef59fcc201
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Labels:
  com.docker.desktop.address=unix:///Users/bryan/Library/Containers/com.docker.docker/Data/docker-cli.sock
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

Diagnostics ID

2BDEA0E2-4C3A-4341-8E62-F762C8D393D3/20240809190202

Additional Info

fatal error reported: Linux kernel v6.10 crash on virtualization.framework

[ 3552.919598] Internal error: Oops: 0000000096000044 [#1] SMP [ 3552.919816] Modules linked in: shiftfs(O) selfowner(O) rosetta(O) grpcfuse(O) fakeowner(O) [ 3552.919957] CPU: 0 PID: 79 Comm: init Tainted: G O 6.10.0-linuxkit #1 [ 3552.920351] pstate: 214000c5 (nzCv daIF +PAN -UAO -TCO +DIT -SSBS BTYPE=--) [ 3552.920408] pc : queued_spin_lock_slowpath+0x300/0x408 [ 3552.921599] lr : try_to_wake_up+0x3d8/0x668 [ 3552.921672] sp : ffff0000c21e3c50 [ 3552.921704] x29: ffff0000c21e3c50 x28: ffff0000c1f91040 x27: 0000000000000000 [ 3552.921756] x26: 0000000000000000 x25: 0000000000000000 x24: 0000000000000000 [ 3552.921796] x23: 0000000000000000 x22: ffff800081d3a008 x21: ffff00022efdd780 [ 3552.921879] x20: ffff800081d51780 x19: ffff0000c740276c x18: 0000000000000000 [ 3552.921962] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000 [ 3552.922032] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000 [ 3552.922104] x11: 0000000000000000 x10: 0000000000000000 x9 : ffff80008009b960 [ 3552.922151] x8 : 0000000000000002 x7 : 00000000ffff0000 x6 : ffff8000821cb148 [ 3552.922214] x5 : 0000000000040000 x4 : 0002000000000000 x3 : ffff800081d51790 [ 3552.922275] x2 : 0000000000000000 x1 : ffff00022efdd780 x0 : ffff00022efdd788 [ 3552.922345] Call trace: [ 3552.922371] queued_spin_lock_slowpath+0x300/0x408 [ 3552.922396] try_to_wake_up+0x3d8/0x668 [ 3552.922427] wake_up_q+0x68/0xd8 [ 3552.922460] futex_wake+0x194/0x218 [ 3552.922507] do_futex+0xe8/0x1b0 [ 3552.922544] __arm64_sys_futex+0xf4/0x198 [ 3552.922586] invoke_syscall.constprop.0+0x58/0x100 [ 3552.922676] do_el0_svc+0x48/0xd8 [ 3552.922720] el0_svc+0x30/0xd8 [ 3552.922770] el0t_64_sync_handler+0x120/0x130 [ 3552.922803] el0t_64_sync+0x190/0x198 [ 3552.922850] Code: d37c0403 91002020 8b030283 f864d8c4 (f8246861) [ 3552.922912] ---[ end trace 0000000000000000 ]---

bryanforbes avatar Aug 09 '24 19:08 bryanforbes