linux: riscv: corrupted stack detected inside scheduler

Bug #1877954 reported by Colin Ian King
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
In Progress
Low
Colin Ian King

Bug Description

While running gcov stress-ng coverage with a 5.4.0-24-generic risc-v kernel in QEMU a corrupted stack end was detected inside the scheduler while running the stressng sctp stress test.

Attached is photo of the stack dump

Revision history for this message
Colin Ian King (colin-king) wrote :
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → Colin Ian King (colin-king)
Revision history for this message
Colin Ian King (colin-king) wrote :

trying 5.7.0-rc4 to see if I can reproduce this with latest kernel.

Revision history for this message
Colin Ian King (colin-king) wrote :

* 5.7.0-rc4 won't boot
* 5.4.0-25-generic without gcov enabled does not crash.

description: updated
Revision history for this message
Colin Ian King (colin-king) wrote :

5.4.0-24-generic also works without gcov enabled, so this is not an urgent issue for the kernels we ship.

Changed in linux (Ubuntu):
importance: Medium → Low
Revision history for this message
Colin Ian King (colin-king) wrote :

Increasing the kernel stack order fixes this issue.

--- a/arch/riscv/include/asm/thread_info.h
+++ b/arch/riscv/include/asm/thread_info.h
-#define THREAD_SIZE_ORDER (1)
+#define THREAD_SIZE_ORDER (2)

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.