Re: fd not being refed in syncop_opendir_cbk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Wed, Jan 23, 2013 at 3:08 AM, Raghavendra Bhat <rabhat@xxxxxxxxxx> wrote:

Hi,

syncop_opendir_cbk does not ref the fd while returning unlike syncop_open_cbk which results in crash due to fd being destroyed early and then being accessed (bug 885008). A patch has been submitted for review. ( http://review.gluster.org/#change,4282). Please review it and provide inputs.


Doing the extra fd_ref() in syncop_open[dir]_cbk seems to be uglier than thought. I see that it is already resulting in fd ref leak in gfapi. It is safer to remove the extra ref/unref and make open[dir]() return only success or failure with op_ret.

Avati 

[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux