NICMx / Jool

SIIT and NAT64 for Linux
GNU General Public License v2.0
326 stars 66 forks source link

Memory leak #229

Closed ydahhrk closed 8 years ago

ydahhrk commented 8 years ago

Jool 3.5.0. NAT64 only. Reserved memory grew from 709 to 1655 megabytes in 10 days. The leak doesn't seem that fast but might be exploitable.

/proc/slabinfo suggests the objects being leaked are larger than 96 bytes and smaller or equal than 128.

pierky commented 8 years ago

I could easily reproduce this bug on 3.5.0 by pushing 1 Gbps through Jool: kmalloc-128 and free's buff/cache raised quickly. Then I wanted to have a glimpse of this commit: they are still raising but far more slowly than before. I enabled the kmemleak and gathered some info: I send a file containing the report to jool@nic.mx - I hope it can help you.

ydahhrk commented 8 years ago

Thanks! Will keep this tool handy for next time; this output led me to the problem right away.

Wow, what an embarrassing mistake.

ydahhrk commented 8 years ago

Flood pinging. It still seems to be leaking something, but at a much slower rate.

ydahhrk commented 8 years ago

Ok, I don't see any more leaks. Will monitor it for two more days and then release 3.5.1.