Request for comment. This could be a potential fix for fusion. The total size pool_new.max_size rounded to the next BLOCKSIZE gets computed in FUSION_SHMPOOL_NEW already. A client (DirectFB or FusionDale) joining the pool calls fusion_shm_pool_attach() which increases the pool's size again in __shmalloc_join_heap(). Hence the client will mmap() an shm area which is bigger than what the server has allocated and exposed.
Ilyes
0001-fusion-shm-don-t-round-up-again-the-pool-size-when-j.patch
Description: 0001-fusion-shm-don-t-round-up-again-the-pool-size-when-j.patch
_______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev