Wind River Support Network

HomeDefectsCGP5-369
Fixed

CGP5-369 : [ WRL5.0.1 ] [ BSP: intel-atom ] The intel-atom CGL kernel would panic on the kgdbts because of the "kgdb memory corruption".

Created: Jan 6, 2013    Updated: Mar 11, 2016
Resolved Date: May 19, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.11,5.0.1.4,6.0
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Networking
Host OS: Linux Red Hat
Architecture: IA32

Description

Problem Description
====================== 
  The intel-atom BSP CGL kernel would panic on the kgdbts because of the "kgdb memory corruption".
  The intel-atom-64 CGL kernel could pass this test.
  The intel-atom standard and preempt-rt kernel could pass this test.

  Test execute on the intel-atom z530 and aimb212 platform.

Expected Behavior
====================== 
PASS

Observed Behavior
====================== 
Kernel Panic

Logs(Key error logs)
====================== 
The z530 platform kernel panic information as follow:
=====================================================
8044_gpio_init Done.
Marking TSC unstable due to TSC halts in idle states deeper than C2
input: Power Button as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input0
ACPI: Power Button [PWRB]
input: Sleep Button as /devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input1
ACPI: Sleep Button [SLPB]
ACPI: Requesting acpi_cpufreq
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:05: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Linux agpgart interface v0.103
[drm] Initialized drm 1.1.0 20060810
[drm:i915_init] *ERROR* drm/i915 can't work without intel_agp module!
brd: module loaded
kgdbts: ERROR kgdb corrupted memory
Kernel panic - not syncing: kgdb memory corruption
Pid: 1, comm: swapper/0 Not tainted 3.4.20-grsec-WR5.0.1.0_cgl #2
Call Trace:
 [<0068a279>] panic+0xc6/0x1be
 [<0041bd0f>] run_plant_and_detach_test+0x8f/0x90
 [<0041c0fc>] configure_kgdbts+0x7c/0x4f0
 [<00100000>] ? pcpu_alloc+0x820/0x860
 [<0102e672>] ? brd_init+0x127/0x187
 [<0102e6fd>] init_kgdbts+0x13/0x15
 [<00002114>] do_one_initcall+0x34/0x160
 [<0102e6ea>] ? ramdisk_size+0x18/0x18
 [<0100687c>] kernel_init+0x117/0x1e4
 [<01006220>] ? do_early_param+0x75/0x75
 [<00307c18>] ? trace_hardirqs_on_thunk+0xc/0x10
 [<00695b65>] ? restore_all+0xf/0xf
 [<01006765>] ? start_kernel+0x32c/0x32c
 [<01006765>] ? start_kernel+0x32c/0x32c
 [<0069ca3e>] kernel_thread_helper+0x6/0x10

The aimb212 platform kernel panic information as follow:
====================================================
input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input3
ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
brd: module loaded
kgdbts: ERROR kgdb corrupted memory
Kernel panic - not syncing: kgdb memory corruption
Pid: 1, comm: swapper/0 Not tainted 3.4.20-grsec-WR5.0.1.0_cgl #2
Call Trace:
 [<0068a279>] panic+0xc6/0x1be
 [<0041bd0f>] run_plant_and_detach_test+0x8f/0x90
 [<0041c0fc>] configure_kgdbts+0x7c/0x4f0
 [<00100000>] ? pcpu_alloc+0x820/0x860
 [<0102e672>] ? brd_init+0x127/0x187
 [<0102e6fd>] init_kgdbts+0x13/0x15
 [<00002114>] do_one_initcall+0x34/0x160
 [<0102e6ea>] ? ramdisk_size+0x18/0x18
 [<0100687c>] kernel_init+0x117/0x1e4
 [<01006220>] ? do_early_param+0x75/0x75
 [<00307c18>] ? trace_hardirqs_on_thunk+0xc/0x10
 [<00695b65>] ? restore_all+0xf/0xf
 [<01006765>] ? start_kernel+0x32c/0x32c
 [<01006765>] ? start_kernel+0x32c/0x32c
 [<0069ca3e>] kernel_thread_helper+0x6/0x10
panic occurred, switching back to text console



Workaround

Disalbe PAX or GRSEC.

Steps to Reproduce

1) ../wrlinux-5/wrlinux/configure --enable-board=intel-atom --enable-kernel=cgl --enable-rootfs=glibc_cgl  --enable-jobs=8 --enable-parallel-pkgbuilds=6

2) make fs

3) enable the following kernel options:
=======================================
CONFIG_DEBUG_KERNEL=y
CONFIG_KGDB_TESTS=y
CONFIG_KGDB_TESTS_ON_BOOT=y
CONFIG_KGDB_TESTS_BOOT_STRING="V1"

4) rebuild linux kernel

5) boot the new kernel and FS
    Then it would hang on the kgdbts.

Other Downloads


Live chat
Online