Wind River Support Network

HomeDefectsLIN6-3815
Not to be fixed

LIN6-3815 : [ WRL5.0.1 Penguin Async] [ BSP: bcm-xlp ] The CGL kernel would hung on some multi-thread programs in the LTP, POSIX and KTS.

Created: Jun 26, 2013    Updated: Feb 23, 2018
Resolved Date: Feb 22, 2018
Previous ID: LIN5-4422, LIN6-3030
Found In Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: BSP - Async
Host OS: Linux Red Hat
Architecture: MIPS

Description

The CGL kernel would hung on some multi-thread programs in the LTP, POSIX and KTS.

1. There were some defects on the mips arch "CONFIG_PAX_MPROTECT" implement,  so need disable it.
2. The "CONFIG_PAX_RANDMMAP" also impact some test cases execution, need patch the following patch on the mips arch.
http://grsecurity.net/test/grsecurity-2.9.1-3.8.11-201305011917.patch

  The bcm-xlp BSP pthread create operation would print following information:
  ==================================================================
  7:<1>grsec: From 128.224.163.153: denied RWX mmap of <anonymous mapping> by /opt/open_posix_testsuite/conformance/interfaces/pthread_create/1-1.run-test[1-1.run-test:26271] uid/euid:0/0 gid/egid:0/0, parent /opt/open_posix_testsuite/bin/t0[t0:26270] uid/euid:0/0 gid/egid:0/0
 23:<1>grsec: From 128.224.163.153: denied RWX mmap of <anonymous mapping> by /opt/open_posix_testsuite/conformance/interfaces/pthread_create/1-2.run-test[1-2.run-test:26297] uid/euid:0/0 gid/egid:0/0, parent /opt/open_posix_testsuite/bin/t0[t0:26296] uid/euid:0/0 gid/egid:0/0
 23:<1>grsec: From 128.224.163.153: Segmentation fault occurred at 0000000120ea3ad8 in /opt/open_posix_testsuite/conformance/interfaces/pthread_create/1-2.run-test[1-2.run-test:26297] uid/euid:0/0 gid/egid:0/0, parent /opt/open_posix_testsuite/bin/t0[t0:26296] uid/euid:0/0 gid/egid:0/0
 23:<1>grsec: From 128.224.163.153: denied resource overstep by requesting 65536 for RLIMIT_CORE against limit 0 for /opt/open_posix_testsuite/conformance/interfaces/pthread_create/1-2.run-test[1-2.run-test:26297] uid/euid:0/0 gid/egid:0/0, parent /opt/open_posix_testsuite/bin/t0[t0:26296] uid/euid:0/0 gid/egid:0/0
 11:<1>grsec: From 128.224.163.153: denied RWX mmap of <anonymous mapping> by /opt/open_posix_testsuite/conformance/interfaces/pthread_create/1-3.run-test[1-3.run-test:26323] uid/euid:0/0 gid/egid:0/0, parent /opt/open_posix_testsuite/bin/t0[t0:26322] uid/euid:0/0 gid/egid:0/0
 15:<1>grsec: From 128.224.163.153: denied RWX mmap of <anonymous mapping> by /opt/open_posix_testsuite/conformance/interfaces/pthread_create/1-4.run-test[1-4.run-test:26349] uid/euid:0/0 gid/egid:0/0, parent /opt/open_posix_testsuite/bin/t0[t0:26348] uid/euid:0/0 gid/egid:0/0
 20:<1>grsec: From 128.224.163.153: denied RWX mmap of <anonymous mapping> by /opt/open_posix_testsuite/conformance/interfaces/pthread_create/1-5.run-test[1-5.run-test:26375] uid/euid:0/0 gid/egid:0/0, parent /opt/open_posix_testsuite/bin/t0[t0:26374] uid/euid:0/0 gid/egid:0/0

Workaround

No

Steps to Reproduce

1) /net/pek-lpgtest4/buildarea1/xxxx/wr_project/PEK-git/wrlinx-x-501/wrlinux/configure  --enable-board=bcm-xlp --enable-kernel=cgl  --enable-rootfs=glibc_cgl  --enable-jobs=16 --enable-parallel-pkgbuilds=6 --enable-internet-download=yes --enable-test=yes

2) make fs

3) boot the new kernel and FS

4) cd /opt/open_posix_testsuite/

5) ./wrLinux_posix/wr-runposix

6) cd /opt/ltp

7) ./wrLinux_ltp/wr-runltp

8) KTS  mthread_lock_on_futex and perf test case

Other Downloads


Live chat
Online