linux-riscv 5.8.0-9-generic (all 5.8 kernels) fail to boot in qemu

Bug #1904912 reported by Dimitri John Ledkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-riscv (Ubuntu)
Fix Released
Undecided
Unassigned
Groovy
Fix Released
High
Thadeu Lima de Souza Cascardo

Bug Description

[Impact]
linux-riscv won't boot on some memory configurations.

[Test case]
linux-riscv boots with the qemu line below.

[Potential Regression]
We might see some stack traces, and memory use (for init data) will slightly increase.

=================

5.8.0-9.11 and other v5.8 kernels all fail to boot in qemu with opensbi and qemu.

I'm booting a cloud-image with kenrel install like this:

qemu-system-riscv64 -machine virt -m 2048 -smp 4 -kernel /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf -device loader,file=/usr/lib/u-boot/qemu-riscv64_smode/uboot.elf,addr=0x80200000 -device virtio-blk-device,drive=vda -drive file=focal-riscv64-20200422.qcow2,id=vda -device virtio-net-device,netdev=eth0 -netdev user,id=eth0

on groovy host.

v5.4 kernels from focal-updates boots; upgrading to groovy/-upstead/-proposed kernel the boot fails.

The image has linux-generic installed with u-boot-menu for the extlinux.conf based boot menu

kernel just panics.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :
tags: added: riscv64
summary: - linux 5.8.0-9-generic (all 5.8 kernels) fail to boot in qemu
+ linux-riscv 5.8.0-9-generic (all 5.8 kernels) fail to boot in qemu
description: updated
Changed in linux-riscv (Ubuntu Groovy):
status: New → Fix Committed
assignee: nobody → Thadeu Lima de Souza Cascardo (cascardo)
importance: Undecided → High
Changed in linux-riscv (Ubuntu):
status: New → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-riscv - 5.8.0-10.12+21.04.1

---------------
linux-riscv (5.8.0-10.12+21.04.1) hirsute; urgency=medium

  * groovy/linux-riscv: 5.8.0-9.11 -proposed tracker (LP: #1903192)

  * groovy/linux-riscv: 5.8.0-10.12 -proposed tracker (LP: #1904993)

  * hirsute/linux-riscv: 5.8.0-10.12+21.04.1 -proposed tracker (LP: #1904996)

  * Groovy update: v5.8.15 upstream stable release (LP: #1902130)
    - [Packaging] riscv: module ocelot_board rename
    - [Packaging] module ocelot_board rename

  * Packaging resync (LP: #1786013)
    - [Packaging] update update.conf
    - update dkms package versions

  * linux-riscv 5.8.0-9-generic (all 5.8 kernels) fail to boot in qemu
    (LP: #1904912)
    - riscv: Fixup bootup failure with HARDENED_USERCOPY

  * Miscellaneous Ubuntu changes
    - Ubuntu-riscv-5.8.0-9.11
    - Ubuntu-riscv-5.8.0-10.12

 -- Andrea Righi <email address hidden> Fri, 20 Nov 2020 16:08:54 +0100

Changed in linux-riscv (Ubuntu):
status: Invalid → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (50.6 KiB)

This bug was fixed in the package linux-riscv - 5.8.0-10.12

---------------
linux-riscv (5.8.0-10.12) groovy; urgency=medium

  * groovy/linux-riscv: 5.8.0-10.12 -proposed tracker (LP: #1904993)

  * linux-riscv 5.8.0-9-generic (all 5.8 kernels) fail to boot in qemu
    (LP: #1904912)
    - riscv: Fixup bootup failure with HARDENED_USERCOPY

linux-riscv (5.8.0-9.11) groovy; urgency=medium

  * groovy/linux-riscv: 5.8.0-9.11 -proposed tracker (LP: #1903192)

  * Groovy update: v5.8.15 upstream stable release (LP: #1902130)
    - [Packaging] riscv: module ocelot_board rename

  [ Ubuntu: 5.8.0-30.32 ]

  * groovy/linux: 5.8.0-30.32 -proposed tracker (LP: #1903194)
  * Update kernel packaging to support forward porting kernels (LP: #1902957)
    - [Debian] Update for leader included in BACKPORT_SUFFIX
  * Avoid double newline when running insertchanges (LP: #1903293)
    - [Packaging] insertchanges: avoid double newline
  * EFI: Fails when BootCurrent entry does not exist (LP: #1899993)
    - efivarfs: Replace invalid slashes with exclamation marks in dentries.
  * raid10: Block discard is very slow, causing severe delays for mkfs and
    fstrim operations (LP: #1896578)
    - md: add md_submit_discard_bio() for submitting discard bio
    - md/raid10: extend r10bio devs to raid disks
    - md/raid10: pull codes that wait for blocked dev into one function
    - md/raid10: improve raid10 discard request
    - md/raid10: improve discard request for far layout
    - dm raid: fix discard limits for raid1 and raid10
    - dm raid: remove unnecessary discard limits for raid10
  * Bionic: btrfs: kernel BUG at /build/linux-
    eTBZpZ/linux-4.15.0/fs/btrfs/ctree.c:3233! (LP: #1902254)
    - btrfs: extent_io: do extra check for extent buffer read write functions
    - btrfs: extent-tree: kill BUG_ON() in __btrfs_free_extent()
    - btrfs: extent-tree: kill the BUG_ON() in insert_inline_extent_backref()
    - btrfs: ctree: check key order before merging tree blocks
  * Tiger Lake PMC core driver fixes (LP: #1899883)
    - platform/x86: intel_pmc_core: update TGL's LPM0 reg bit map name
    - platform/x86: intel_pmc_core: fix bound check in pmc_core_mphy_pg_show()
    - platform/x86: pmc_core: Use descriptive names for LPM registers
    - platform/x86: intel_pmc_core: Fix TigerLake power gating status map
    - platform/x86: intel_pmc_core: Fix the slp_s0 counter displayed value
  * drm/i915/dp_mst - System would hang during the boot up. (LP: #1902469)
    - Revert "UBUNTU: SAUCE: drm/i915/display: Fix null deref in
      intel_psr_atomic_check()"
    - drm/i915: Fix encoder lookup during PSR atomic check
  * Undetected Data corruption in MPI workloads that use VSX for reductions on
    POWER9 DD2.1 systems (LP: #1902694)
    - powerpc: Fix undetected data corruption with P9N DD2.1 VSX CI load emulation
    - selftests/powerpc: Make alignment handler test P9N DD2.1 vector CI load
      workaround
  * [20.04 FEAT] Support/enhancement of NVMe IPL (LP: #1902179)
    - s390/ipl: support NVMe IPL kernel parameters
  * uvcvideo: add mapping for HEVC payloads (LP: #1895803)
    - media: uvcvideo: Add mapping for HEVC payloads
  * risc-v 5.8 kernel oops on ftrace ...

Changed in linux-riscv (Ubuntu Groovy):
status: Fix Committed → Fix Released
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-groovy' to 'verification-done-groovy'. If the problem still exists, change the tag 'verification-needed-groovy' to 'verification-failed-groovy'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: verification-needed-groovy
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.