+++ This bug was initially created as a clone of Bug #1365599 +++ Description of problem: When mnt3_resolve_subdir_cbk() fails, authorized_path is sometimes NULL. We try to run strlen() on this path and as a result we crash. Version-Release number of selected component (if applicable): 3.8
REVIEW: http://review.gluster.org/15121 (nfs: Fix crash bug when mnt3_resolve_subdir_cbk() fails) posted (#1) for review on master by Niels de Vos (ndevos)
COMMIT: https://review.gluster.org/15121 committed in master by ------------- nfs: Fix crash bug when mnt3_resolve_subdir_cbk() fails Summary: When mnt3_resolve_subdir_cbk() fails (this can happen when racing operations), authorized_path is sometimes NULL. We try to run strlen() on this path and as a result we crash. This diff fixes that by checking if path is NULL before dereferencing it. Test Plan: Run with patch and observe that there is no crash. Prove test for auth code. BUG: 1365683 Change-Id: I2e2bdfdc61ae906788611e151d2c753b79b312df Signed-off-by: Shreyas Siravara <sshreyas>
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.13.0, please open a new bug report. glusterfs-3.13.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://lists.gluster.org/pipermail/announce/2017-December/000087.html [2] https://www.gluster.org/pipermail/gluster-users/