risc-v 5.8 kernel oops on ftrace tests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
High
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
High
|
Colin Ian King | ||
Groovy |
Fix Released
|
High
|
Colin Ian King |
Bug Description
== SRU Groovy ==
Running the ftrace self tests results in null pointer dereference oops on RISC-V and also on ARM64.
== Fix ==
Upstream commit https:/
== Testcase ==
Run the kernel ftrace selftest. Without the fix ftrace oopses on RISC-V and ARM64 and can also hang on ARM64 too. With the fix, tests run without oopsing or hanging.
== Regression Potential ==
This fix marks two functions as notrace, so the functionality of the functions is not actually altered so the risk is negligible. If there was a change in behaviour then RCU and stop machine operations will break causing machine hangs. We don't observe this and RCU is used heavily in the kernel so the code appears to not change the behaviour as expected.
The only change is the the functions are no longer traceable via ftrace, which is the desired operation.
-----------------
5.8.0-1-generic (buildd@
18:30:06 DEBUG| [stdout] # selftests: ftrace: ftracetest^M^M
18:30:07 DEBUG| [stdout] # === Ftrace unit tests ===^M^M
18:30:10 DEBUG| [stdout] # [1] Basic trace file check [PASS]^M^M
[17433.113458] Unable to handle kernel NULL pointer dereference at virtual address 000000000000000
[17433.113533] Unable to handle kernel NULL pointer dereference at virtual address 000000000000000
[17433.113552] Unable to handle kernel NULL pointer dereference at virtual address 000000000000000
[17433.113573] Unable to handle kernel NULL pointer dereference at virtual address 000000000000000
[17433.113591] Unable to handle kernel NULL pointer dereference at virtual address 000000000000000
[17433.114290] Unable to handle kernel NULL pointer dereference at virtual address 000000000000000
[17433.114306] Unable to handle kernel NULL pointer dereference at virtual address 000000000000000
[17433.114315] Oops [#1]^M^M
[17433.114630] Unable to handle kernel NULL pointer dereference at virtual address 000000000000000
[17433.114690] Modules linked in: virtio_rng binfmt_misc uio_pdrv_genirq uio drm sch_fq_codel drm_panel_
[17433.115296] CPU: 1 PID: 15 Comm: migration/1 Tainted: G W OE 5.8.0-1-generic #1-Ubuntu^M^M
[17433.115419] epc: 0000000000000000 ra : 0000000000000000 sp : ffffffe1f5c67d9
[17433.115442] gp : ffffffe001722298 tp : ffffffe1f5c3ae00 t0 : 000000000000000
[17433.115459] t1 : 0000000000006000 t2 : 00000000000bbc00 s0 : 000000000000002
[17433.115475] s1 : ffffffe0002b7c12 a0 : ffffffe000963a64 a1 : 000000000000002
[17433.115491] a2 : 0000000000000000 a3 : 0000000000000000 a4 : 000000000000000
[17433.115507] a5 : ffffffe1fec95580 a6 : 00000000000000ff a7 : 000000000000000
[17433.115523] s2 : 0000000000000001 s3 : ffffffe00009d580 s4 : ffffffe00172421
[17433.115540] s5 : ffffffe1fec9a3b8 s6 : ffffffffffffffff s7 : 000000000000000
[17433.115556] s8 : ffffffe0016f07cb s9 : ffffffe1e909bb80 s10: ffffffe0002b7ba
[17433.115573] s11: ffffffe1e909bba8 t3 : 000000000000006c t4 : 00000000002c73b
[17433.115586] t5 : 00000000001f7fa8 t6 : ffffffe000c02d1
[17433.115603] status: 0000000000000120 badaddr: 0000000000000000 cause: 000000000000000
CVE References
Changed in linux (Ubuntu): | |
importance: | Undecided → High |
Changed in ubuntu-kernel-tests: | |
importance: | Undecided → High |
description: | updated |
description: | updated |
description: | updated |
Changed in linux (Ubuntu Groovy): | |
assignee: | nobody → Colin Ian King (colin-king) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in linux (Ubuntu Groovy): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-kernel-tests: | |
status: | New → Fix Released |
Changed in linux (Ubuntu): | |
status: | In Progress → Fix Released |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1894613
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.