Wind River Support Network

HomeDefectsLIN5-19570
Fixed

LIN5-19570 : wrl5 / Multicore / yaffs : corruption in linked lists when parallel access is done on filesystem

Created: Oct 17, 2014    Updated: Dec 19, 2017
Resolved Date: Nov 24, 2014
Found In Version: 5.0.1.18
Fix Version: 5.0.1.22
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Kernel
Architecture: ARM

Description

wrl5 / Multicore / yaffs : corruption in linked lists when parallel access is done on filesystem.

this is due to multicore access to the structures inside the Filesystem

Steps to Reproduce

on the lsi_app33xx (so called robin board) :

configure --with-layer=/wrl-siu/layers/meta-siu,/wrl-siu/layers/meta-eri-siu02,/wrl-siu/layers/fs-final,rcfl,cgp,wr-security,meta-selinux --with-template=feature/siu_rootfs,feature/ericsson-arm --enable-build=production --enable-rootfs=siu --enable-kernel=standard --enable-board=eri-siu02 --enable-addons=wr-rcfl,wr-cgp --enable-reconfig --enable-parallel-pkgbuilds=8 --enable-jobs=8 --enable-unsupported-config=yes --with-rcpl-version=0015 --enable-checkout-all-layers=yes


------------------

root@128:/root# cat excersice-fs.sh
#!/bin/sh

MNT=/mnt/mtdblock2

while true; do
        echo "creating file"
        echo "robin" > $MNT/batman
        echo "removing file"
        rm $MNT/batman
done


root@128:/root# cat sync-fs.sh
#!/bin/sh

while true; do
        sync
done
root@128:/root#

Then I start the excercise in background and run sync in forground, which then gets me to the issue:

root@128:/root# jobs
[1]+  Running                 sh excersice-fs.sh > /dev/null &
root@128:/root# sh sync-fs.sh
--------------

Other Downloads


Live chat
Online