Project

General

Profile

Actions

Bug #78246

closed
YS

fscrypt error-path bugs

Bug #78246: fscrypt error-path bugs

Added by Yuechi Sun 5 months ago. Updated 3 months ago.

Status:
Backporting
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Due date:
% Done:

0%

Source:
Backport:
umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Fixed In:
v21.3.0-1351-gf0633dc430
Released In:
Upkeep Timestamp:
2026-08-27T18:42:57+00:00

Description

mount(): the dummy-encryption path unlocked/relocked the mutex under
client_lock directly instead of through the unique_lock, so on
fscrypt_dummy_encryption() failure it returned without relocking and
the lock guard's destructor double-unlocked.
_wrap_name(): two encryption error paths did return r (r < 0) from a
bool function, which converts to true, so callers used the
unencrypted name on failure.
fscrypt_dummy_encryption(): on add_fscrypt_key() failure it jumped to
the err label and read the uninitialized keyid buffer to issue a key
removal. Return the error directly; also stop overwriting the original
error with remove_fscrypt_key()'s return on the policy-set failure path.


Related issues 1 (1 open — 0 closed)

Copied to Ceph - Backport #78654: umbrella: fscrypt error-path bugsNew

Actions

CH Updated by Christopher Hoffman 5 months ago Actions #1

  • Status changed from New to Fix Under Review
  • Target version set to v22.0.0

UB Updated by Upkeep Bot 4 months ago Actions #2

  • Status changed from Fix Under Review to Pending Backport
  • Merge Commit set to f0633dc43075e2c49c26a33b88fe9522fa683c5d
  • Fixed In set to v21.3.0-1351-gf0633dc430
  • Upkeep Timestamp set to 2026-07-24T13:17:07+00:00

UB Updated by Upkeep Bot 4 months ago Actions #3

UB Updated by Upkeep Bot 4 months ago Actions #4

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #5

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-07-24T13:17:07+00:00 to 2026-08-27T18:42:57+00:00
Actions

Also available in: PDF Atom