Project

General

Profile

Actions

Bug #67833

closed

Irregularities seen with handling of symlinks

Added by Anoop C S over 1 year ago. Updated 5 months ago.

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

100%

Source:
Development
Backport:
quincy,reef,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client
Labels (FS):
crash
Pull request ID:
Tags (freeform):
backport_processed
Fixed In:
v19.3.0-5556-g68e73b3c9d
Released In:
v20.2.0~1792
Upkeep Timestamp:
2025-11-01T01:27:43+00:00

Description

There are two issues observed:

1. An attempt to open an existing symlink with ceph_open() and O_PATH|O_NOFOLLOW returns ELOOP.

  • expected to return successfully with a path reference file descriptor.

2. An attempt to resolve symlink with empty pathname using ceph_readlinkat() crashes with SIGABRT.

  • expected to successfully resolve the dirfd in case it is a symlink.

Please find the attachment for a sample program which demonstrates the expected behaviour for the above mentioned scenarios either on a local file system or kernel client mount.


Files

symlink.c (585 Bytes) symlink.c Anoop C S, 08/30/2024 08:39 AM

Related issues 3 (0 open3 closed)

Copied to CephFS - Backport #68573: squid: Irregularities seen with handling of symlinksResolvedMilind ChangireActions
Copied to CephFS - Backport #68574: reef: Irregularities seen with handling of symlinksResolvedActions
Copied to CephFS - Backport #68575: quincy: Irregularities seen with handling of symlinksRejectedActions
Actions #1

Updated by Anoop C S over 1 year ago

  • Description updated (diff)
Actions #2

Updated by Venky Shankar over 1 year ago

  • Status changed from New to Fix Under Review
  • Assignee set to Anoop C S
  • Target version set to v20.0.0
  • Source set to Development
  • Backport set to quincy,reef,squid
Actions #3

Updated by Venky Shankar over 1 year ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Upkeep Bot over 1 year ago

  • Copied to Backport #68573: squid: Irregularities seen with handling of symlinks added
Actions #5

Updated by Upkeep Bot over 1 year ago

  • Copied to Backport #68574: reef: Irregularities seen with handling of symlinks added
Actions #6

Updated by Upkeep Bot over 1 year ago

  • Copied to Backport #68575: quincy: Irregularities seen with handling of symlinks added
Actions #7

Updated by Upkeep Bot over 1 year ago

  • Tags (freeform) set to backport_processed
Actions #8

Updated by Konstantin Shalygin about 1 year ago

  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Patrick Donnelly 9 months ago

  • Merge Commit set to 68e73b3c9d10fb6ffead99c0e4b8db4d01782015
  • Fixed In set to v19.3.0-5556-g68e73b3c9d10
Actions #10

Updated by Upkeep Bot 9 months ago

  • Fixed In changed from v19.3.0-5556-g68e73b3c9d10 to v19.3.0-5556-g68e73b3c9d1
  • Upkeep Timestamp set to 2025-07-08T18:29:40+00:00
Actions #11

Updated by Upkeep Bot 8 months ago

  • Fixed In changed from v19.3.0-5556-g68e73b3c9d1 to v19.3.0-5556-g68e73b3c9d
  • Upkeep Timestamp changed from 2025-07-08T18:29:40+00:00 to 2025-07-14T17:10:21+00:00
Actions #12

Updated by Upkeep Bot 5 months ago

  • Released In set to v20.2.0~1792
  • Upkeep Timestamp changed from 2025-07-14T17:10:21+00:00 to 2025-11-01T01:27:43+00:00
Actions

Also available in: Atom PDF