Commit 717e6f2
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" <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
[[email protected]: drop utsname.h include from mds_client.c]
Signed-off-by: Ilya Dryomov <[email protected]>1 parent 29a0cfb commit 717e6f2
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
884 | 883 | | |
885 | 884 | | |
886 | 885 | | |
887 | | - | |
888 | | - | |
| 886 | + | |
| 887 | + | |
889 | 888 | | |
890 | 889 | | |
891 | 890 | | |
| |||
3539 | 3538 | | |
3540 | 3539 | | |
3541 | 3540 | | |
| 3541 | + | |
| 3542 | + | |
3542 | 3543 | | |
3543 | 3544 | | |
3544 | 3545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
368 | 369 | | |
369 | 370 | | |
370 | 371 | | |
| 372 | + | |
| 373 | + | |
371 | 374 | | |
372 | 375 | | |
373 | 376 | | |
| |||
0 commit comments