diff options
author | Yan, Zheng <zyan@redhat.com> | 2017-09-11 12:10:08 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-09-19 21:04:52 +0200 |
commit | 717e6f2893eb35ce6728c3cacdc297b78d371b31 (patch) | |
tree | fa76387b54e5903ff8fba0f5cfdebc58e24b125a /arch/powerpc | |
parent | 29a0cfbf91ba997591535a4f7246835ce8328141 (diff) |
ceph: avoid panic in create_session_open_msg() if utsname() returns NULL
utsname() can return NULL while process is exiting. Kernel releases
file locks during process exits. We send request to mds when releasing
file lock. So it's possible that we open mds session while process is
exiting. utsname() is called in create_session_open_msg().
Link: http://tracker.ceph.com/issues/21275
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
[idryomov@gmail.com: drop utsname.h include from mds_client.c]
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions