aml-ubootenv: CB1 fix multi-process concurrency issue [1/1]
PD#SWPL-114736
Problem:
the loading copy of uenv KV list will be stored in each process, which can
cause overwrite issues
Solution:
load the uenv raw data into the shm,
check the revision before reading and writing, reload the KV list if the
revision has changed, which indicates the KV has been updated by another
process.
check the parameter count of uenv binary to avoid crash
add mutex lock to protect multi-thread access of the KV list
change to shared library
remove redundant code
Verify:
t5w
Change-Id: I288ffd005920450d2ca605a162bac03fc2d567a4
Signed-off-by: Jun Zhang <jun.zhang@amlogic.com>
4 files changed