Project

General

Profile

Actions

Bug #14209

closed

fs: fix unintialized buffer during load fsid

Added by xie xingguo over 8 years ago. Updated over 8 years ago.

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)

Actions #2

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 #3

Updated by Nathan Cutler over 8 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF