Project

General

Profile

Actions

Bug #18311

closed

Decode errors on backtrace will crash MDS

Added by John Spray over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
fsck/damage handling
Target version:
% Done:

0%

Source:
Tags:
Backport:
jewel, kraken
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Noticed by inspection:

void MDCache::_open_ino_backtrace_fetched(inodeno_t ino, bufferlist& bl, int err)
{
  dout(10) << "_open_ino_backtrace_fetched ino " << ino << " errno " << err << dendl;

  assert(opening_inodes.count(ino));
  open_ino_info_t& info = opening_inodes[ino];

  CInode *in = get_inode(ino);
  if (in) {
    dout(10) << " found cached " << *in << dendl;
    open_ino_finish(ino, info, in->authority().first);
    return;
  }

  inode_backtrace_t backtrace;
  if (err == 0) {
    ::decode(backtrace, bl);

That decode needs a try/catch!


Related issues 2 (0 open2 closed)

Copied to CephFS - Backport #18462: jewel: Decode errors on backtrace will crash MDSResolvedNathan CutlerActions
Copied to CephFS - Backport #18463: kraken: Decode errors on backtrace will crash MDSResolvedNathan CutlerActions
Actions #1

Updated by John Spray over 7 years ago

  • Status changed from New to Fix Under Review
Actions #2

Updated by John Spray over 7 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to jewel kraken
Actions #3

Updated by Nathan Cutler over 7 years ago

  • Backport changed from jewel kraken to jewel, kraken
Actions #4

Updated by Nathan Cutler over 7 years ago

  • Copied to Backport #18462: jewel: Decode errors on backtrace will crash MDS added
Actions #5

Updated by Nathan Cutler over 7 years ago

  • Copied to Backport #18463: kraken: Decode errors on backtrace will crash MDS added
Actions #6

Updated by John Spray about 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF