Wind River Support Network

HomeDefectsLIN1022-1519
Fixed

LIN1022-1519 : [LTP] syscalls/pread02: buffer overflow detected

Created: Aug 31, 2022    Updated: Nov 1, 2022
Resolved Date: Nov 1, 2022
Found In Version: 10.22.33.1
Fix Version: 10.22.33.2
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: Userspace

Description

Observed only on arm64 BSPs.

setup.sh --machines aptiv_cvc_sousa --templates feature/kernel-hardening --distros wrlinux --dl-layers --accept-eula=yes
source environment-setup-x86_64-wrlinuxsdk-linux
source oe-init-build-env build
echo PREFERRED_PROVIDER_virtual/kernel = \"linux-yocto-rt\" >> conf/local.conf
echo KERNEL_FEATURES:append = \" features/usb/serial-all.scc\" >> conf/local.conf
echo KERNEL_VERSION_SANITY_SKIP=\"1\" >> conf/local.conf
echo IMAGE_FSTYPES += \" tar.bz2\" >> conf/local.conf
echo BB_NUMBER_THREADS ?= \"24\" >> conf/local.conf
echo PARALLEL_MAKE ?= \"-j 24\" >> conf/local.conf
echo BB_DANGLINGAPPENDS_WARNONLY = \"1\" >> conf/local.conf
bitbake-layers add-layer /net/pek-lpgtest16/buildarea1/wgao/wrlinux_master/wr-testing/kts-dev
echo require templates/feature/ltp/template.conf >> conf/local.conf
bitbake wrlinux-image-std

root@aptivcvcsousa:~# /opt/ltp/wrLinux_ltp/wr-runltp -f ltp_syscalls

<<<test_start>>>
tag=pread02_64 stime=1661413923
cmdline="pread02_64"
contacts=""
analysis=exit
<<<test_output>>>
tst_test.c:1431: TINFO: Timeout per run is 0h 05m 00s
*** buffer overflow detected ***: terminated
tst_test.c:1484: TBROK: Test killed by SIGIOT/SIGABRT!

Summary:
passed   0
failed   0
broken   1
skipped  0
warnings 0
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=2
<<<test_end>>>

/etc/os-release
ID=wrlinux
NAME="Wind River Linux Base"
VERSION="10.22.33.1"
VERSION_ID=10.22.33.1
PRETTY_NAME="Wind River Linux Base 22.33 Update 1"

uname:
Linux aptivcvcsousa 5.15.59-rt48-yocto-preempt-rt #1 SMP PREEMPT_RT Mon Aug 15 12:43:14 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

Steps to Reproduce

1. Build project 

/lpg-build/cdc/fast_prod/WRL10_22/RCPL0000_LX01/wrlinux-10/setup.sh --machines aptiv_cvc_sousa --templates feature/kernel-hardening --distros wrlinux --dl-layers --accept-eula=yes
source environment-setup-x86_64-wrlinuxsdk-linux
source oe-init-build-env build_LTP_aptiv_cvc_sousa_preempt-rt_std_wrlinux_default
echo PREFERRED_PROVIDER_virtual/kernel = \"linux-yocto-rt\" >> conf/local.conf
echo KERNEL_FEATURES:append = \" features/usb/serial-all.scc\" >> conf/local.conf
echo KERNEL_VERSION_SANITY_SKIP=\"1\" >> conf/local.conf
echo IMAGE_FSTYPES += \" tar.bz2\" >> conf/local.conf
echo BB_NUMBER_THREADS ?= \"24\" >> conf/local.conf
echo PARALLEL_MAKE ?= \"-j 24\" >> conf/local.conf
echo BB_DANGLINGAPPENDS_WARNONLY = \"1\" >> conf/local.conf
bitbake-layers add-layer /net/pek-lpgtest16/buildarea1/wgao/wrlinux_master/wr-testing/kts-dev
echo require templates/feature/ltp/template.conf >> conf/local.conf
bitbake wrlinux-image-std


2. Load images to the board (#29266) and boot it up

3. Run the following command 

root@aptivcvcsousa:~# /opt/ltp/wrLinux_ltp/wr-runltp -f ltp_syscalls


 

 
Live chat
Online