AnsweredAssumed Answered

Possible kernel memory corruption in eglSwapBuffers for frame bufffer device.

Question asked by Anthony DeFeo on Sep 4, 2015
Latest reply on Sep 8, 2015 by Anthony DeFeo

Hi,

We are running a yocto build on an imx6 system based around the Wandboard module with a custom carrier board.

Using openGL with a framebuffer device (no X), imx-gpu-viv-1_5.0.11.p4.5.

 

What I am seeing is that when we issue an eglSwapBuffers call, 0's are being written several hundred bytes past the end of the framebuffer, into the next memory page.

In this particular case, this page was allocated by the kernel slub allocator, and contains tty driver data structures. This corruption of the kernel data structures eventually leads to a kernel crash.

 

Has anyone else seen any issues like this? Since I don't have source for libEGL-fb.so, I can't debug it any further!

 

I need a fix, or a work around for this!

 

Any help would be appreciated!

 

Thanks,

Tony

Outcomes