Project

General

Profile

Actions

Bug #72247

closed
ZG ZG

client: crash in _readdir_cache_cb

Bug #72247: client: crash in _readdir_cache_cb

Added by Zhansong Gao over 1 year ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Correctness/Safety
Target version:
Due date:
% Done:

0%

Source:
Community (dev)
Backport:
tentacle,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
ceph-fuse
Labels (FS):
crash
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-2736-g6a69922cda
Released In:
v21.2.0~2145
Upkeep Timestamp:
2026-10-24T01:48:49+00:00

Description

Capacity of `readdir_cache` may change after `client_lock` is unlocked in iterations of `readdir_cache`, and it can cause the iterator to be invalid, then using the invalid iterator in the next iteration will cause crash.
Crash may happen at `Dentry *dn = *pd` (pd points to invalid memory), or at `if (pd >= dir->readdir_cache.end() || *pd != dn)` (pd is smaller than begin() if idx is negative).


Related issues 2 (0 open — 2 closed)

Copied to CephFS - Backport #72845: tentacle: client: crash in _readdir_cache_cbResolvedJos Collin

Actions
Copied to CephFS - Backport #72846: squid: client: crash in _readdir_cache_cbResolvedJos Collin

Actions

VS Updated by Venky Shankar over 1 year ago Actions #1

  • Category set to Correctness/Safety
  • Status changed from New to Triaged
  • Target version set to v21.0.0
  • Source set to Community (dev)

VS Updated by Venky Shankar over 1 year ago Actions #2

  • Status changed from Triaged to Fix Under Review
  • Backport set to tentacle,squid

VS Updated by Venky Shankar over 1 year ago Actions #3

  • Status changed from Fix Under Review to Pending Backport
  • Assignee set to Zhansong Gao

UB Updated by Upkeep Bot over 1 year ago Actions #4

  • Merge Commit set to 6a69922cdab7cf55ba67098ff712f661ba8011e4
  • Fixed In set to v20.3.0-2736-g6a69922cda
  • Upkeep Timestamp set to 2025-09-03T10:33:04+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #5

  • Copied to Backport #72845: tentacle: client: crash in _readdir_cache_cb added

UB Updated by Upkeep Bot over 1 year ago Actions #6

  • Copied to Backport #72846: squid: client: crash in _readdir_cache_cb added

UB Updated by Upkeep Bot over 1 year ago Actions #7

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #8

  • Status changed from Pending Backport to Resolved
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-09-03T10:33:04+00:00 to 2026-08-27T18:06:36+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #9

  • Released In set to v21.2.0~2145
  • Upkeep Timestamp changed from 2026-08-27T18:06:36+00:00 to 2026-10-24T01:48:49+00:00
Actions

Also available in: PDF Atom