Project

General

Profile

Actions

Bug #74934

closed
CH CH

client: Error listing encrypted case-insensitive directory contents

Bug #74934: client: Error listing encrypted case-insensitive directory contents

Added by Christopher Hoffman 10 months ago. Updated about 1 month ago.

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

0%

Source:
Development
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-6151-g1b2dbcf2ce
Released In:
v21.2.0~1009
Upkeep Timestamp:
2026-10-24T01:43:38+00:00

Description

On a case insensitive subvolume (casesensitive=0) that is fscrypt encrypted, listing directory contents doesn’t produce valid output.

$ echo filea > filea
$ ls
ls: cannot access ''$'\250''vSt'$'\221''0α'$'\022\253\367'']'$'\207\027\r''0S'$'\273\357\037\253''Kwon'$'\242\217''߫'$'\231\203''%'$'\253\024\233\004\212''3'$'\250\214\260\207': Permission denied
''$'\250''vSt'$'\221''0α'$'\022\253\367'']'$'\207\027\r''0S'$'\273\357\037\253''Kwon'$'\242\217''߫'$'\231\203''%'$'\253\024\233\004\212''3'$'\250\214\260\207'

But other commands using the file name work as expected:

$ cat filea
filea

CH Updated by Christopher Hoffman 10 months ago Actions #1

This only affects shorter names (ie the ones that aren't trunc'd + hashed).

The case sensitive feature requires a non-folded/non-normalized version of the file name to be stored and we do that in alternate_name. Currently, the code in the case sensitive case will set alternate_name in shorter name case to the enc_name [1]. This version of the enc_name is armored or b64 encoded. When decrypting a file name, a raw ciphertext is required.

1- https://github.com/ceph/ceph/blob/9b5d5f41beea3a7a947711399ea3febdb654af4d/src/client/Client.cc#L1433

CH Updated by Christopher Hoffman 10 months ago Actions #2

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 67377

VS Updated by Venky Shankar 10 months ago Actions #3

  • Category set to Correctness/Safety
  • Target version set to v21.0.0
  • Source set to Development
  • Component(FS) Client added

UB Updated by Upkeep Bot 9 months ago Actions #4

  • Status changed from Fix Under Review to Resolved
  • Merge Commit set to 1b2dbcf2ced9df908ba0ac7b48eb1c02bcde3357
  • Fixed In set to v20.3.0-6151-g1b2dbcf2ce
  • Upkeep Timestamp set to 2026-03-17T10:09:25+00:00

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

  • Released In set to v21.2.0~1009
  • Upkeep Timestamp changed from 2026-03-17T10:09:25+00:00 to 2026-10-24T01:43:38+00:00
Actions

Also available in: PDF Atom