ftrace_regression01: qemu-i386: EIP: vm_area_free: Kernel panic - not syncing: Fatal exception in interrupt

From: Naresh Kamboju
Date: Tue Mar 07 2023 - 05:05:40 EST


The following kernel panic noticed While running LTP tracing tests on
qemu-i386.

Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>


[ 0.000000] Linux version 6.3.0-rc1 (tuxmake@tuxmake) (Debian clang
version 16.0.0 (++20230228093516+60692a66ced6-1~exp1~20230228093525.41),
Debian LLD 16.0.0) #1 SMP PREEMPT_DYNAMIC @1678136838
...
LTP tracing tests
Running tests.......
<6>[ 35.957375] traps: systemd-network[287] trap invalid opcode
ip:b7d99bef sp:bfcf8e20 error:0 in
libsystemd-shared-250.so[b7c33000+1c0000]
<6>[ 39.887678] traps: systemd-network[330] trap invalid opcode
ip:b7db0bef sp:bfb6ab00 error:0 in
libsystemd-shared-250.so[b7c4a000+1c0000]
<4>[ 41.883172] clocksource: timekeeping watchdog on CPU0: Marking
clocksource 'tsc' as unstable because the skew is too large:
<4>[ 41.885195] clocksource: 'acpi_pm'
wd_nsec: 633206175 wd_now: 13fe92 wd_last: f168b4 mask: ffffff
<4>[ 41.886363] clocksource: 'tsc' cs_nsec:
5320282620 cs_now: 1cbab6bece cs_last: 19231a48ea mask:
ffffffffffffffff
<4>[ 41.887503] clocksource: Clocksource 'tsc'
skewed 4687076445 ns (4687 ms) over watchdog 'acpi_pm' interval of
633206175 ns (633 ms)
<4>[ 41.888583] clocksource: 'tsc' is current
clocksource.
<6>[ 41.889615] tsc: Marking TSC unstable due to clocksource watchdog
<4>[ 41.894933] TSC found unstable after boot, most likely due to
broken BIOS. Use 'tsc=unstable'.
<6>[ 41.895623] sched_clock: Marking unstable (41348265135,
546543322)<-(41919545028, -24729054)
<4>[ 41.905093] clocksource: Checking clocksource tsc
synchronization from CPU 1 to CPUs 0.
<6>[ 41.921496] clocksource: Switched to clocksource acpi_pm
<47>[ 42.122074] systemd-journald[108]: Successfully sent stream
file descriptor to service manager.

ftrace_regression01 1 TPASS: Finished running the test

<4>[ 43.795642] int3: 0000 [#1] PREEMPT SMP
<4>[ 43.795642] CPU: 0 PID: 331 Comm: systemd-network Not tainted 6.3.0-rc1 #1
<4>[ 43.795642] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009),
BIOS 1.14.0-2 04/01/2014
<4>[ 43.795642] EIP: vm_area_free+0x1/0x20
<4>[ 43.795642] Code: e5 85 1d 00 85 c0 74 14 b9 11 00 00 00 89 c7
f3 a5 89 c1 83 c1 24 89 48 24 89 48 28 5e 5f 5d c3 90 90 90 90 90 90
90 90 90 3e <8d> 74 26 00 55 89 e5 89 c2 a1 ac 99 82 d3 e8 fc 8f 1d 00
5d c3 90
<4>[ 43.795642] EAX: c243bab0 EBX: c243bab0 ECX: 00000000 EDX: c23cb9c0
<4>[ 43.795642] ESI: 00000000 EDI: 000001c0 EBP: c25c1e24 ESP: c25c1dd0
<4>[ 43.795642] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00000246
<4>[ 43.795642] CR0: 80050033 CR2: 081d764c CR3: 02ce1000 CR4: 000006d0
<4>[ 43.795642] Call Trace:
<4>[ 43.795642] ? do_vmi_align_munmap+0x26e/0x380
<4>[ 43.795642] mmap_region+0x26e/0x880
<4>[ 43.795642] ? arch_ftrace_ops_list_func+0x20/0x1a0
<4>[ 43.795642] ? ftrace_call+0x5/0x13
<4>[ 43.795642] do_mmap+0x33f/0x4b0
<4>[ 43.795642] ? do_mmap+0x3f6/0x4b0
<4>[ 43.795642] vm_mmap_pgoff+0x9b/0x120
<4>[ 43.795642] ksys_mmap_pgoff+0x15d/0x1b0
<4>[ 43.795642] __ia32_sys_mmap_pgoff+0x21/0x30
<4>[ 43.795642] do_int80_syscall_32+0x39/0x74
<4>[ 43.795642] entry_INT80_32+0xf0/0xf0
<4>[ 43.795642] EIP: 0xb7f7d9c1
<4>[ 43.795642] Code: c3 8d b4 26 00 00 00 00 90 8b 5c 24 08 01 c3
8b 6c 2b 40 89 2f eb b6 66 90 f3 0f 1e fb 53 57 55 8b 1f 8b 6f 08 8b
7f 04 cd 80 <5d> 5f 5b c3 66 90 66 90 66 90 66 90 66 90 90 f3 0f 1e fb
e8 5a 00
<4>[ 43.795642] EAX: ffffffda EBX: b7c94000 ECX: 001c0000 EDX: 00000005
<4>[ 43.795642] ESI: 00000812 EDI: 00000004 EBP: 0000003b ESP: bff393e0
<4>[ 43.795642] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 007b EFLAGS: 00000202
<4>[ 43.795642] Modules linked in:
<4>[ 43.795642] \
---[ end trace 0000000000000000 ]---
<4>[ 43.795642] EIP: vm_area_free+0x1/0x20
<4>[ 43.795642] Code: e5 85 1d 00 85 c0 74 14 b9 11 00 00 00 89 c7
f3 a5 89 c1 83 c1 24 89 48 24 89 48 28 5e 5f 5d c3 90 90 90 90 90 90
90 90 90 3e <8d> 74 26 00 55 89 e5 89 c2 a1 ac 99 82 d3 e8 fc 8f 1d 00
5d c3 90
<4>[ 43.795642] EAX: c243bab0 EBX: c243bab0 ECX: 00000000 EDX: c23cb9c0
<4>[ 43.795642] ESI: 00000000 EDI: 000001c0 EBP: c25c1e24 ESP: c25c1dd0
<4>[ 43.795642] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00000246
<4>[ 43.795642] CR0: 80050033 CR2: 081d764c CR3: 02ce1000 CR4: 000006d0
<0>[ 43.795642] Kernel panic - not syncing: Fatal exception in interrupt
<0>[ 43.795642] Kernel Offset: disabled

test log:
-----
- https://qa-reports.linaro.org/lkft/linux-mainline-master/build/v6.3-rc1-2-g8ca09d5fa354/testrun/15298979/suite/log-parser-test/test/check-kernel-panic/log
- https://qa-reports.linaro.org/lkft/linux-mainline-master/build/v6.3-rc1-2-g8ca09d5fa354/testrun/15298979/suite/log-parser-test/tests/


steps to reproduce:
--------------
# To install tuxrun on your system globally:
# sudo pip3 install -U tuxrun==0.37.2
#
# See https://tuxrun.org/ for complete documentation.

tuxrun \
--runtime podman \
--device qemu-i386 \
--kernel https://storage.tuxsuite.com/public/linaro/lkft/builds/2MemUurDShqDi3xoAvTknd2dbfd/bzImage
\
--modules https://storage.tuxsuite.com/public/linaro/lkft/builds/2MemUurDShqDi3xoAvTknd2dbfd/modules.tar.xz
\
--rootfs https://storage.tuxsuite.com/public/linaro/lkft/oebuilds/2MV9clY6B5uyK3SNAIPgiO5gCoP/images/intel-core2-32/lkft-tux-image-intel-core2-32-20230303113918.rootfs.ext4.gz
\
--parameters SKIPFILE=skipfile-lkft.yaml \
--parameters SHARD_NUMBER=4 \
--parameters SHARD_INDEX=1 \
--image docker.io/lavasoftware/lava-dispatcher:2023.01.0020.gc1598238f \
--tests ltp-tracing \
--timeouts boot=15 ltp-tracing=30


--
Linaro LKFT
https://lkft.linaro.org