Re: [PATCH] mem: allow using ASan in multi-process mode

2023-10-09 Thread Artur Paszkiewicz
On 10/4/23 16:51, David Marchand wrote: - did you test with --in-memory mode? with --no-huge? Please see v2 of the patch. I added checks for these options. They imply no multi-process support so mapping is skipped for those cases. - I did not look at the patch, but I wonder if there is a risk

Re: [PATCH] mem: allow using ASan in multi-process mode

2023-10-04 Thread David Marchand
On Wed, Oct 4, 2023 at 4:23 PM Artur Paszkiewicz wrote: > > Multi-process applications operate on shared hugepage memory but each > process has its own ASan shadow region which is not synchronized with > the other processes. This causes issues when different processes try to > use the same memory

[PATCH] mem: allow using ASan in multi-process mode

2023-10-04 Thread Artur Paszkiewicz
Multi-process applications operate on shared hugepage memory but each process has its own ASan shadow region which is not synchronized with the other processes. This causes issues when different processes try to use the same memory because they have their own view of which addresses are valid. Fix