vppinfra: fix map_lock issue 84/34784/2
authorliuyacan <liuyacan@corp.netease.com>
Wed, 22 Dec 2021 08:41:21 +0000 (16:41 +0800)
committerDamjan Marion <dmarion@me.com>
Wed, 22 Dec 2021 15:19:12 +0000 (15:19 +0000)
commit9b8dc824d8c5b88b25eae6aa431256746d26d95b
tree5ad973779c03614b49b08ddfd9eb691c5e66efcc
parent657936f665c18441bddcc2524bb3ad3dfe0e20bc
vppinfra: fix map_lock issue

The release of the map_lock is a bit too early, it needs to wrap
mprotect(), otherwise the access rights of hdr may be deprived of
other worker threads.

Type: fix

Signed-off-by: liuyacan <liuyacan@corp.netease.com>
Change-Id: I9cb89d49a097ec6d5ae9fd2af2bddf967ec946e9
src/vppinfra/linux/mem.c