Re: [lng-odp] [PATCH] linux-gen: _ishmphy: fix possible race with malloc

2017-01-25 Thread Maxim Uvarov
merged, Maxim. On 01/24/17 03:55, Bill Fischofer wrote: > On Mon, Jan 23, 2017 at 9:38 AM, Christophe Milard > wrote: >> _ishm prereserves address space for _ODP_ISHM_SINGLE_VA allocated memory >> by reserving unreachable "memory", using PROT_NONE, hence really

Re: [lng-odp] [PATCH] linux-gen: _ishmphy: fix possible race with malloc

2017-01-23 Thread Bill Fischofer
On Mon, Jan 23, 2017 at 9:38 AM, Christophe Milard wrote: > _ishm prereserves address space for _ODP_ISHM_SINGLE_VA allocated memory > by reserving unreachable "memory", using PROT_NONE, hence really allocating > virtual space (as the memory cannot be hit). > The

[lng-odp] [PATCH] linux-gen: _ishmphy: fix possible race with malloc

2017-01-23 Thread Christophe Milard
_ishm prereserves address space for _ODP_ISHM_SINGLE_VA allocated memory by reserving unreachable "memory", using PROT_NONE, hence really allocating virtual space (as the memory cannot be hit). The problem came when trying to use some of this preallocated space: strangely, if a new mapping on the