[Bug 363] segfault of user-app while triggering dmapi event
<bugzilla-daemon <at> oss.sgi.com>
2004-10-01 22:39:06 GMT
------- Additional Comments From mmontour <at> bycast.com 2004-01-10 15:39 PDT -------
I see a similar problem with the current linux-2.4-xfs kernel tree. I found one
issue in fs/xfs/xfs_dmapi.c xfs_dm_send_namesp_event:
error = dm_send_namesp_event(event, vfsp ? vfsp->vfs_super: NULL,
mode, retcode, flags);
In a CREATE event, vnode_t *vp2 is NULL. I changed the code to not call
LINVFS_GET_IP on a NULL value (using "vp2 ? LINVFS_GET_IP(vp2) : NULL"), and now
I successfully get CREATE and POSTCREATE events without any kernel oopses or
segfaults. I haven't investigated this further, so I don't know (A) if this is
correct or (B) if this same issue appears elsewhere in the code.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.