Description of problem: If xl->ctx is null, it can lead to segfault in xlator.c. In different code paths the ctx is getting adjusted, so we have to make sure the ctx is not null before proceeding. Version-Release number of selected component (if applicable): GlusterFS 3.6.2 How reproducible: N/A Steps to Reproduce: N/A Actual results: The dereferencing operations can lead to segfault as the ctx is getting tainted at times in different paths. Expected results: There shouldnt be any crash because ctx being null. Additional info:
REVIEW: http://review.gluster.org/9810 (xlator: avoiding possibility of a crash if (xl->ctx) is NULL.) posted (#1) for review on master by Humble Devassy Chirammal (humble.devassy)
REVIEW: http://review.gluster.org/9810 (xlator: avoiding possibility of a crash if (xl->ctx) is NULL.) posted (#2) for review on master by Humble Devassy Chirammal (humble.devassy)
COMMIT: http://review.gluster.org/9810 committed in master by Vijay Bellur (vbellur) ------ commit 38e342ca4a2167720bea82d3cee7fca08baba666 Author: Humble Devassy Chirammal <hchiramm> Date: Wed Mar 4 18:38:07 2015 +0530 xlator: avoiding possibility of a crash if (xl->ctx) is NULL. Change-Id: I41acd9970bef04bb16cd4d8532a84a95d5fb642a BUG: 1199003 Signed-off-by: Humble Devassy Chirammal <hchiramm>. Reviewed-on: http://review.gluster.org/9810 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Raghavendra Bhat <raghavendra> Reviewed-by: Vijay Bellur <vbellur>
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report. glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user