Project

General

Profile

Actions

Bug #64313

closed
DP DP

client: do not proceed with I/O if filehandle is invalid

Bug #64313: client: do not proceed with I/O if filehandle is invalid

Added by Dhairya Parmar almost 3 years ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Category:
Correctness/Safety
Target version:
Due date:
% 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):
Fixed In:
v19.3.0-334-g9fd7ad53cd
Released In:
v20.2.0~3430
Upkeep Timestamp:
2026-08-28T01:34:56+00:00

Description

otherwise it would crash:

     0> 2024-02-05T17:48:35.230+0530 7f0a94c309c0 -1 *** Caught signal (Segmentation fault) **
 in thread 7f0a94c309c0 thread_name:ceph_test_clien

 ceph version 19.0.0-1018-g774ce9f98b7 (774ce9f98b7ef83f5b17268dae8f637fea775c94) squid (dev)
 1: ./bin/ceph_test_client(+0x2941b4) [0x55914517d1b4]
 2: /lib64/libc.so.6(+0x3dbb0) [0x7f0a9425fbb0]
 3: (Client::_preadv_pwritev_locked(Fh*, iovec const*, unsigned int, long, bool, bool, Context*, ceph::buffer::v15_2_0::list*, bool, bool)+0x7b) [0x55914510ba33]
 4: (Client::ll_preadv_pwritev(Fh*, iovec const*, int, long, bool, Context*, ceph::buffer::v15_2_0::list*, bool, bool)+0xbb) [0x55914510c395]
 5: (TestClient_LlreadvLlwritevInvalidFileDescriptor_Test::TestBody()+0x1d0) [0x55914509ec24]
 6: (void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)+0x1b) [0x55914519c3db]
 7: (void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)+0x80) [0x5591451a4ccc]
 8: (testing::Test::Run()+0xb4) [0x5591451957ee]
 9: (testing::TestInfo::Run()+0x104) [0x5591451958f4]
 10: (testing::TestSuite::Run()+0xb2) [0x5591451959a8]
 11: (testing::internal::UnitTestImpl::RunAllTests()+0x36b) [0x55914519705f]
 12: (bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)+0x1b) [0x55914519c687]
 13: (bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)+0x80) [0x5591451a5229]
 14: (testing::UnitTest::Run()+0x63) [0x559145195ac3]
 15: (RUN_ALL_TESTS()+0x11) [0x55914509d84b]
 16: main()
 17: /lib64/libc.so.6(+0x27b8a) [0x7f0a94249b8a]
 18: __libc_start_main()
 19: _start()
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.

Related issues 3 (0 open — 3 closed)

Copied to CephFS - Backport #64739: quincy: client: do not proceed with I/O if filehandle is invalidRejectedDhairya Parmar

Actions
Copied to CephFS - Backport #64740: reef: client: do not proceed with I/O if filehandle is invalidResolvedDhairya Parmar

Actions
Copied to CephFS - Backport #64741: squid: client: do not proceed with I/O if filehandle is invalidResolvedDhairya Parmar

Actions

VS Updated by Venky Shankar almost 3 years ago Actions #1

  • Status changed from New to Triaged
  • Target version set to v19.0.0
  • Backport set to quincy, reef

Do you have a test that reproduces this, Dhairya?

DP Updated by Dhairya Parmar almost 3 years ago Actions #2

  • Status changed from Triaged to In Progress
  • Assignee set to Dhairya Parmar
  • Pull request ID set to 55457
  • Labels (FS) crash added

DP Updated by Dhairya Parmar almost 3 years ago Actions #3

Venky Shankar wrote:

Do you have a test that reproduces this, Dhairya?

yup, added in the PR

VS Updated by Venky Shankar almost 3 years ago Actions #4

Dhairya Parmar wrote:

Venky Shankar wrote:

Do you have a test that reproduces this, Dhairya?

yup, added in the PR

Its for QE specifically, when a change is ported downstream - its a bit easier to have the steps that get eventually copied to BZs.

VS Updated by Venky Shankar almost 3 years ago Actions #5

Dhairya Parmar wrote:

Venky Shankar wrote:

Do you have a test that reproduces this, Dhairya?

yup, added in the PR

The test deliberately passes a nullptr file handle to the client. Normally, I'd expect this to be a bug in the application, but I think catching this and failing gracefully is the right approach.

VS Updated by Venky Shankar over 2 years ago Actions #6

  • Status changed from In Progress to Pending Backport
  • Backport changed from quincy, reef to quincy,reef,squid

UB Updated by Upkeep Bot over 2 years ago Actions #7

  • Copied to Backport #64739: quincy: client: do not proceed with I/O if filehandle is invalid added

UB Updated by Upkeep Bot over 2 years ago Actions #8

  • Copied to Backport #64740: reef: client: do not proceed with I/O if filehandle is invalid added

UB Updated by Upkeep Bot over 2 years ago Actions #9

  • Copied to Backport #64741: squid: client: do not proceed with I/O if filehandle is invalid added

UB Updated by Upkeep Bot almost 2 years ago Actions #11

  • Tags (freeform) set to backport_processed

KS Updated by Konstantin Shalygin almost 2 years ago Actions #12

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

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

  • Merge Commit set to 9fd7ad53cdc7d4b7526519211ec02b8307b61246
  • Fixed In set to v19.3.0-334-g9fd7ad53cdc
  • Upkeep Timestamp set to 2025-07-02T03:41:45+00:00

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

  • Fixed In changed from v19.3.0-334-g9fd7ad53cdc to v19.3.0-334-g9fd7ad53cd
  • Upkeep Timestamp changed from 2025-07-02T03:41:45+00:00 to 2025-07-14T16:45:30+00:00

UB Updated by Upkeep Bot about 1 year ago Actions #15

  • Released In set to v20.2.0~3430
  • Upkeep Timestamp changed from 2025-07-14T16:45:30+00:00 to 2025-11-01T01:27:04+00:00

UB Updated by Upkeep Bot 3 months ago Actions #16

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-01T01:27:04+00:00 to 2026-08-28T01:34:56+00:00
Actions

Also available in: PDF Atom