Skip to content

crimson/os/seastore/linked_tree_node: set reserved_ptr to an 8-byte aligned address - #62084

Merged
Matan-B merged 1 commit into
ceph:mainfrom
xxhdx1985126:wip-70202
Mar 6, 2025
Merged

Matan-B merged 1 commit into
ceph:mainfrom
xxhdx1985126:wip-70202

Conversation

@xxhdx1985126

Copy link
Copy Markdown
Member

Maybe we shouldn't be using an instant integer as the invalid pointer.

Fixes: https://tracker.ceph.com/issues/70202
Signed-off-by: Xuehan Xu [email protected]

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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

@xxhdx1985126
xxhdx1985126 requested a review from a team as a code owner March 3, 2025 10:10
@xxhdx1985126

Copy link
Copy Markdown
Member Author

I've got no aarch64 environments at hand, but I believe this should fix the issue, please schedule a unittest-transaction-manager/unittest-omap-manager run for make check (arm64), thanks:-)

@Matan-B

Matan-B commented Mar 3, 2025 •

Copy link
Copy Markdown
Contributor

I've got no aarch64 environments at hand, but I believe this should fix the issue, please schedule a unittest-transaction-manager/unittest-omap-manager run for make check (arm64), thanks:-)

You can re-enable the arm64 tests on this PR only by reverting my commit 5ae5338 in this PR.

@Matan-B Matan-B 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.

I was able to hit this on x86_64 (non-arm) locally:

kernel callstack:                                                                                                                                                                             
ceph/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.h:295:2: runtime error: pointer index expression with base 0x000000000001 overflowed to 0xfffffffffffffe49       
ceph/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc:444:6: runtime error: member access within misaligned address 0xfffffffffffffe49 for type 'struct LogicalChild
Node', which requires 8 byte alignment                                                                                                                                                        
0xfffffffffffffe49: note: pointer points here                                                                                                                                                 
<memory cannot be printed>                                                                                                                                                                    
ceph/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc:444:6: runtime error: pointer index expression with base 0xfffffffffffffe49 overflowed to 0x000000000001      
ceph/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc:450:28: runtime error: member access within misaligned address 0xfffffffffffffe49 for type 'struct LogicalChil
dNode', which requires 8 byte alignment                                                                                                                                                       
0xfffffffffffffe49: note: pointer points here                                                                                                                                                 
<memory cannot be printed>                                                                                                                                                                    
ceph/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc:450:28: runtime error: pointer index expression with base 0xfffffffffffffe49 overflowed to 0x000000000001

With this patch:

kernel callstack:
ceph/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.h:295:2: runtime error: pointer index expression with base 0x000000000010 overflowed to 0xfffffffffffffe58
ceph/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc:444:6: runtime error: pointer index expression with base 0xfffffffffffffe58 overflowed to 0x000000000010
ceph/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc:450:28: runtime error: pointer index expression with base 0xfffffffffffffe58 overflowed to 0x000000000010

member access within misaligned address seems to be ok now, but we still have overflow.

Note: You can also revert 59df54e now (conflicts)

@Matan-B Matan-B added this to Crimson Mar 3, 2025
@Matan-B Matan-B moved this to In Progress in Crimson Mar 3, 2025
@github-actions

github-actions Bot commented Mar 3, 2025

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@Matan-B

Matan-B commented Mar 3, 2025 •

Copy link
Copy Markdown
Contributor

Seems that we are still having a timeout:

	263 - unittest-transaction-manager (Timeout)

Let's still merge this once ready to solve the runtime error.

@xxhdx1985126
xxhdx1985126 force-pushed the wip-70202 branch 2 times, most recently from f391ac6 to fb274e6 Compare March 4, 2025 01:56
@xxhdx1985126

Copy link
Copy Markdown
Member Author

@Matan-B Please take a look, again. The overflow error should be gone now. Thanks:-)

@Matan-B Matan-B moved this from In Progress to Awaits review in Crimson Mar 4, 2025

@Matan-B Matan-B 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.

This seems to resolve the runtime errors (https://tracker.ceph.com/issues/70202).
The disabled tests are still timed out, let's keep them disabled and merge the fix only.

@xxhdx1985126

Copy link
Copy Markdown
Member Author

@Matan-B @cyx1231st just modified the pr as suggested, please take a look, again. Thanks:-)

@cyx1231st cyx1231st moved this from Awaits review to Needs QA in Crimson Mar 5, 2025
@Matan-B

Matan-B commented Mar 5, 2025

Copy link
Copy Markdown
Contributor

@Matan-B

Matan-B commented Mar 6, 2025 •

Copy link
Copy Markdown
Contributor

https://pulpito.ceph.com/matan-2025-03-05_14:58:30-crimson-rados-wip-matanb-crimson-only-testing-5-mar-distro-crimson-smithi/

8171870 - https://tracker.ceph.com/issues/70337 pglog_based_recovery_op
8171893 - https://tracker.ceph.com/issues/69438 bluestore unexpected error
8171931, 8171935 - https://tracker.ceph.com/issues/69439 osd.1 trim_to <= peering_state.get_pg_committed_to()
8171944 - https://tracker.ceph.com/issues/69612 SLOW_OPS
8171949 - https://tracker.ceph.com/issues/67972 FAILED ceph_assert(omap.size() == old_value.attrs.size())
8171956 - https://tracker.ceph.com/issues/69406 waiting on 1

@Matan-B
Matan-B merged commit ac6e612 into ceph:main Mar 6, 2025
@Matan-B Matan-B moved this from Needs QA to Merged in Crimson Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Merged (Pre Tentacle Freeze)

Development

Successfully merging this pull request may close these issues.

3 participants