Actions
Bug #14209
closedfs: fix unintialized buffer during load fsid
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
int NewStore::_read_fsid(uuid_d *uuid)
Updated by xie xingguo over 8 years ago
Resolved by sage in wip-bluestore.
https://github.com/ceph/ceph/blob/wip-bluestore/src/os/kstore/KStore.cc
He added the following guard to avoid the above problem.
if (ret > 36)
fsid_str[36] = 0;
else
fsid_str[ret] = 0;
Actions