Re: [PATCH] dcache: fix dpath buffer corruption for too small buffers

2014-03-23 Thread Imre Deak
On Sun, 2014-03-23 at 04:36 +, Al Viro wrote: > On Thu, Mar 13, 2014 at 01:29:46AM +0200, Imre Deak wrote: > > During dentry path lookups we can end up corrupting memory if the > > destination path buffer is too small. This is because prepend_path() > > and prepend() adjust the passed buffer le

Re: [PATCH] dcache: fix dpath buffer corruption for too small buffers

2014-03-22 Thread Al Viro
On Thu, Mar 13, 2014 at 01:29:46AM +0200, Imre Deak wrote: > During dentry path lookups we can end up corrupting memory if the > destination path buffer is too small. This is because prepend_path() > and prepend() adjust the passed buffer length unconditionally, allowing > for the buffer length to

[PATCH] dcache: fix dpath buffer corruption for too small buffers

2014-03-12 Thread Imre Deak
During dentry path lookups we can end up corrupting memory if the destination path buffer is too small. This is because prepend_path() and prepend() adjust the passed buffer length unconditionally, allowing for the buffer length to go negative. Then a later prepend_name() call will receive a negati