Project

General

Profile

Bug #48206

client: fix crash when doing remount in none fuse case

Added by Xiubo Li 2 months ago. Updated about 2 months ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
octopus,nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client, libcephfs
Labels (FS):
crash
Pull request ID:
Crash signature:

Description

The g_conf() will try to dereference the `g_ceph_context` to get the `_conf`, but the `g_ceph_context` is not set in none fuse use case in libcephfs, so it will crash in `g_conf().get_val<>`.

Switch to use `cct->_conf.get_val<>` instead.


Related issues

Copied to CephFS - Backport #48457: nautilus: client: fix crash when doing remount in none fuse case Resolved
Copied to CephFS - Backport #48458: octopus: client: fix crash when doing remount in none fuse case In Progress

History

#1 Updated by Xiubo Li 2 months ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 38033

#2 Updated by Patrick Donnelly 2 months ago

  • Target version set to v16.0.0
  • Source set to Development
  • Backport set to octopus,nautilus
  • ceph-qa-suite deleted (fs)
  • Component(FS) Client added

#3 Updated by Patrick Donnelly about 2 months ago

  • Status changed from Fix Under Review to Pending Backport

#4 Updated by Nathan Cutler about 2 months ago

  • Copied to Backport #48457: nautilus: client: fix crash when doing remount in none fuse case added

#5 Updated by Nathan Cutler about 2 months ago

  • Copied to Backport #48458: octopus: client: fix crash when doing remount in none fuse case added

Also available in: Atom PDF