Skip to content

mds: fix stray CInodes' use-after-free bug when submit ELid entry - #53494

Merged
vshankar merged 1 commit into
ceph:mainfrom
xiubli:wip-62861
Oct 4, 2023
Merged

vshankar merged 1 commit into
ceph:mainfrom
xiubli:wip-62861

Conversation

@xiubli

@xiubli xiubli commented Sep 18, 2023

Copy link
Copy Markdown
Member

When submitting a journal log entry it could start a new segment and it could advance the stray CInodes, which has been released just before it.

Fixes: commit 5a53747("mds: introduce ELid event to create/close log")
Fixes: https://tracker.ceph.com/issues/62861

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@xiubli
xiubli requested review from a team, batrick and vshankar September 18, 2023 01:27
@github-actions github-actions Bot added the cephfs Ceph File System label Sep 18, 2023
Comment thread src/mds/MDCache.cc Resolved
@vshankar

Copy link
Copy Markdown
Contributor

jenkins retest this please

Comment thread src/mds/MDLog.cc Resolved
When submitting a journal log entry it could start a new segment
and it could advance the stray CInodes, which has been released
just before it. Just skip advancing the stray dentries when MDS is
shutting down.

Reported-by: Patrick Donnelly <[email protected]>
Fixes: commit 5a53747("mds: introduce ELid event to create/close log")
Fixes: https://tracker.ceph.com/issues/62861
Signed-off-by: Xiubo Li <[email protected]>
@vshankar

Copy link
Copy Markdown
Contributor

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vshankar
vshankar merged commit c6bff73 into ceph:main Oct 4, 2023
vshankar added a commit to vshankar/ceph that referenced this pull request Oct 7, 2023
* refs/pull/53494/head:
	mds: fix stray CInodes' use-after-free bug when submit ELid entry

Reviewed-by: Patrick Donnelly <[email protected]>
Reviewed-by: Dhairya Parmar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants