Wind River Support Network

HomeDefectsLIN5-9184
Fixed

LIN5-9184 : wrlinux 5.0.1. - glibc bug

Created: Dec 24, 2013    Updated: Dec 19, 2017
Resolved Date: Feb 13, 2014
Previous ID: LIN2-21982
Found In Version: 5.0.1
Fix Version: 5.0.1.13
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Kernel, Toolchain

Description

There is a potential glibc related bug in wrlinux 5.0.1, which can be outlined with a sample test code.

It produces a segfault on a running target, similar to:

root@qemu0:/x# ./test.sh
OK
next
OK
next
OK
[  418.903100] test[4840]: segfault at 17 ip 0000003812318fad sp 00007ffbea6294a0 error 4 in libc-2.15.so[3812200000+19e000]
[  418.908786] grsec: Segmentation fault occurred at 0000000000000017 in /x/test[test:4840] uid/euid:0/0 gid/egid:0/0, parent /x/test.sh[test.sh:4831] uid/euid:0/0 gid/egid:0/0
[  418.914960] grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /x/test[test:4840] uid/euid:0/0 gid/egid:0/0, parent /x/test.sh[test.sh:4831] uid/euid:0/0 gid/egid:0/0
./test.sh: line 9:  4838 Segmentation fault      ./test
next
OK
2013 Dec 23 20:39:01 qemu0 [  418.908786] grsec: Segmentation fault occurred at 0000000000000017 in /x/test[test:4840] uid/euid:0/0 gid/egid:0/0, parent /x/test.sh[test.sh:4831] uid/euid:0/0 gid/egid:0/0
2013 Dec 23 20:39:01 qemu0 [  418.914960] grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /x/test[test:4840] uid/euid:0/0 gid/egid:0/0, parent /x/test.sh[test.sh:4831] uid/euid:0/0 gid/egid:0/0
next
OK
[  419.112484] test[4846]: segfault at 17 ip 0000003812318fad sp 00007f4c52a044a0 error 4 in libc-2.15.so[3812200000+19e000]
[  419.114873] grsec: Segmentation fault occurred at 0000000000000017 in /x/test[test:4846] uid/euid:0/0 gid/egid:0/0, parent /x/test.sh[test.sh:4831] uid/euid:0/0 gid/egid:0/0
2013 Dec 23 20:39:01 qemu0 [  419.114873] grsec: Segmentation fault occurred at 0000000000000017 in /x/test[test:4846] uid/euid:0/0 gid/egid:0/0, parent /x/test.sh[test.sh:4831] uid/euid:0/0 gid/egid:0/0
[  419.120880] grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /x/test[test:4846] uid/euid:0/0 gid/egid:0/0, parent /x/test.sh[test.sh:4831] uid/euid:0/0 gid/egid:0/0
2013 Dec 23 20:39:01 qemu0 [  419.120880] grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /x/test[test:4846] uid/euid:0/0 gid/egid:0/0, parent /x/test.sh[test.sh:4831] uid/euid:0/0 gid/egid:0/0
./test.sh: line 9:  4844 Segmentation fault      ./test
next
OK

Steps to Reproduce

configure project with:
--enable-board=intel_xeon_core --enable-build=production --enable-kernel=cgl --enable-rootfs=glibc_cgl --with-layer=/[...]/testlayer --without-template=wr-cgp/cgp/templates/feature/cgp-full/template.conf,wr-cgp/cgp/templates/feature/cgp-full/image.inc --enable-doc-pages=none --with-rcpl-version=0009

build and start the qemu target

run the attached testcase script

Other Downloads


Live chat
Online