Wind River Support Network

HomeDefectsLIN5-18790
Fixed

LIN5-18790 : [wrLinux501 Async BSP altera-socfpga] Kernel panic when running perf test on BSP altera-socfpga target arriaV

Created: May 20, 2014    Updated: Dec 19, 2017
Resolved Date: May 25, 2014
Found In Version: 5.0.1.15
Fix Version: 5.0.1.15
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: BSP - Async

Description

Kernel panic when running perf test on BSP altera-socfpga target arriaV as follows:

root@localhost:/opt/wr-test# ./main_test.sh -g kts -s perf
grsec: time set by /usr/bin/rdate[rdate:1075] uid/euid:0/0 gid/egid:0/0, parent /opt/wr-test/main_test.sh[main_test.sh:1047] uid/euid:0/0 gid/egid:0/0
2014 May 19 07:26:55 localhost grsec: time set by /usr/bin/rdate[rdate:1075] uid/euid:0/0 gid/egid:0/0, parent /opt/wr-test/main_test.sh[main_test.sh:1047] uid/euid0

        >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
        The test case list : 
         perf
        <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

        Start kts Case perf at Wed May 21 02:10:56 UTC 2014 with duration 300 s
Unable to handle kernel NULL pointer dereference at virtual address 00000040
pgd = 80004000
Unable to handle kernel NULL pointer dereference at virtual address 00000040
pgd = 80004000
[00000040] *pgd=00000000
Internal error: Oops: 17 [#1] PREEMPT SMP ARM
Modules linked in: fat vfat minix nls_cp437 nls_iso8859_1
CPU: 1    Not tainted  (3.4.43-grsec-WR5.0.1.0_cgl #1)
PC is at perf_prepare_sample+0x34/0x178
LR is at __perf_event_overflow+0x1b0/0x31c
pc : [<800f6634>]    lr : [<800f6928>]    psr: 600f0013
sp : bde99da8  ip : bde99dd0  fp : bde99dcc
r10: 00000000  r9 : 00000000  r8 : 00000103
r7 : 00000008  r6 : 00000000  r5 : 00000000  r4 : bde99e18
r3 : 00000000  r2 : ba7a4000  r1 : bde99e70  r0 : bde99e18
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 10c5387d  Table: 3a84c04a  DAC: 00000015
Process irq/209-arm-pmu (pid: 5577, stack limit = 0xbde982f0)
Stack: (0xbde99da8 to 0xbde9a000)
9da0:                   abf62715 00000000 ba7a4000 00000000 bde99e70 00000000
9dc0: bde99e4c bde99dd0 800f6928 800f660c 00000001 00000000 800f68e8 00000000
9de0: 00000000 00000000 abf62716 0000001b abf62716 0000001b 0000244f 00000000
9e00: fffff7d6 ffffffff 600f0093 00000001 00000000 bf8b4600 00000009 00080000
9e20: bde99e5c ba7a4000 00000000 809ef988 816cb39c 00000001 00000000 80000000
9e40: bde99e5c bde99e50 800f7454 800f6784 bde99ef4 bde99e60 8001b260 800f7440
9e60: 00000000 00000000 ba7a40d0 00000000 8007e99c 8007d604 00000080 00000000
9e80: 80057e14 00000000 600f0093 809a33fc 00000000 00000000 600f0013 816ce900
9ea0: 80057e14 816ce900 80057e14 bdd86880 00000001 00000000 bde98000 00000000
9ec0: 00000000 00000001 bde99f6c 00000001 000000d1 bf8b4600 bf813f00 ba47ed00
9ee0: bde99f6c 809a33fc bde99f1c bde99ef8 80022110 8001b0f0 00000200 ba47ed00
9f00: ba47ed00 bf813f00 00000001 bf813f00 bde99f2c bde99f20 8001a334 80022064
9f20: bde99f4c bde99f30 800b74d4 8001a300 00000200 bde98000 ba47ed20 00000001
9f40: bde99f9c bde99f50 800b7268 800b74b0 bf813f50 800b74a4 806ad530 00000000
9f60: bdd86b6c 800b7370 00000000 00000002 00000013 ba921d04 ba47ed00 800b70c0
9f80: 00000013 00000000 00000000 00000000 bde99ff4 bde99fa0 8004c498 800b70cc
9fa0: 00000000 ba47ed00 00000000 00000000 00000000 dead4ead ffffffff ffffffff
9fc0: 80a11b74 00000000 00000000 807c2e04 bde99fd0 bde99fd0 8004c3f8 ba921d04
9fe0: 8004c3f8 8000fbac 00000000 bde99ff8 8000fbac 8004c404 00000000 00000000
[<800f6634>] (perf_prepare_sample+0x34/0x178) from [<800f6928>] (__perf_event_overflow+0x1b0/0x31c)
[<800f6928>] (__perf_event_overflow+0x1b0/0x31c) from [<800f7454>] (perf_event_overflow+0x20/0x24)
[<800f7454>] (perf_event_overflow+0x20/0x24) from [<8001b260>] (armv7pmu_handle_irq+0x17c/0x19c)
[<8001b260>] (armv7pmu_handle_irq+0x17c/0x19c) from [<80022110>] (socfpga_pmu_handler+0xb8/0xbc)
[<80022110>] (socfpga_pmu_handler+0xb8/0xbc) from [<8001a334>] (armpmu_dispatch_irq+0x40/0x58)
[<8001a334>] (armpmu_dispatch_irq+0x40/0x58) from [<800b74d4>] (irq_forced_thread_fn+0x30/0x58)
[<800b74d4>] (irq_forced_thread_fn+0x30/0x58) from [<800b7268>] (irq_thread+0x1a8/0x1d4)
[<800b7268>] (irq_thread+0x1a8/0x1d4) from [<8004c498>] (kthread+0xa0/0xa4)
[<8004c498>] (kthread+0xa0/0xa4) from [<8000fbac>] (kernel_thread_exit+0x0/0x8)
Code: e3a06000 e1c060b4 e2837008 e1c470b6 (e595e040) 
---[ end trace 0dcb5b3c694c68f8 ]---
Kernel panic - not syncing: Fatal exception in interrupt
CPU0: stopping
[<80018120>] (unwind_backtrace+0x0/0x104) from [<8069f500>] (dump_stack+0x20/0x24)
[<8069f500>] (dump_stack+0x20/0x24) from [<80014f2c>] (handle_IPI+0x198/0x1a8)
[<80014f2c>] (handle_IPI+0x198/0x1a8) from [<800085dc>] (gic_handle_irq+0x64/0x68)
[<800085dc>] (gic_handle_irq+0x64/0x68) from [<806ad9c4>] (__irq_svc+0x44/0x78)
Exception stack(0xba98bab8 to 0xba98bb00)
baa0:                                                       00000001 ba98a000
bac0: 00000000 809a3994 809f00b2 809f00c1 809b0700 00000015 600f0113 809f0008
bae0: 809f00b2 ba98bb9c ba98bb00 ba98bb00 80027220 80027228 600f0113 ffffffff
[<806ad9c4>] (__irq_svc+0x44/0x78) from [<80027228>] (vprintk+0x2d4/0x72c)
[<80027228>] (vprintk+0x2d4/0x72c) from [<8069fa34>] (printk+0xf0/0xf8)
[<8069fa34>] (printk+0xf0/0xf8) from [<8001cf28>] (show_pte+0x3c/0xc8)
[<8001cf28>] (show_pte+0x3c/0xc8) from [<8069f674>] (__do_kernel_fault.part.10+0x60/0x84)
[<8069f674>] (__do_kernel_fault.part.10+0x60/0x84) from [<806af900>] (do_page_fault+0x3fc/0x43c)
[<806af900>] (do_page_fault+0x3fc/0x43c) from [<80008390>] (do_DataAbort+0x48/0xa8)
[<80008390>] (do_DataAbort+0x48/0xa8) from [<806ad95c>] (__dabt_svc+0x3c/0x60)
Exception stack(0xba98bd60 to 0xba98bda8)
bd60: ba98be18 ba98be70 ba7a6400 00000010 ba98be18 00000000 00000000 00000018
bd80: 00000103 00000000 00000000 ba98bdcc ba98bdd0 ba98bda8 800f6928 800f6634
bda0: 600f0013 ffffffff
[<806ad95c>] (__dabt_svc+0x3c/0x60) from [<800f6634>] (perf_prepare_sample+0x34/0x178)
[<800f6634>] (perf_prepare_sample+0x34/0x178) from [<800f6928>] (__perf_event_overflow+0x1b0/0x31c)
[<800f6928>] (__perf_event_overflow+0x1b0/0x31c) from [<800f7454>] (perf_event_overflow+0x20/0x24)
[<800f7454>] (perf_event_overflow+0x20/0x24) from [<8001b260>] (armv7pmu_handle_irq+0x17c/0x19c)
[<8001b260>] (armv7pmu_handle_irq+0x17c/0x19c) from [<800220d4>] (socfpga_pmu_handler+0x7c/0xbc)
[<800220d4>] (socfpga_pmu_handler+0x7c/0xbc) from [<8001a334>] (armpmu_dispatch_irq+0x40/0x58)
[<8001a334>] (armpmu_dispatch_irq+0x40/0x58) from [<800b74d4>] (irq_forced_thread_fn+0x30/0x58)
[<800b74d4>] (irq_forced_thread_fn+0x30/0x58) from [<800b7268>] (irq_thread+0x1a8/0x1d4)
[<800b7268>] (irq_thread+0x1a8/0x1d4) from [<8004c498>] (kthread+0xa0/0xa4)
[<8004c498>] (kthread+0xa0/0xa4) from [<8000fbac>] (kernel_thread_exit+0x0/0x8)

Steps to Reproduce

1. configure and build project

--enable-board=altera-socfpga --enable-kernel=cgl --enable-rootfs=glibc-cgl --enable-jobs=8 --enable-parallel-pkgbuilds=8 --enable-test --with-layer=<path to wr-testing layer on WRLINUX_Penguin_async branch>/kts,<path to wr-testing layer on WRLINUX_Penguin_async branch>/bts,<path to wr-testing layer on WRLINUX_Penguin_async branch>/ltp

2. boot the target and run perf test

root@localhost:/opt/wr-test# ./main_test.sh -g kts -s perf

Other Downloads


Live chat
Online