Skip to content

client: Prevent race condition when printing Inode in ll_sync_inode#59162

Merged
batrick merged 1 commit intoceph:mainfrom
yukariatlas:ll-sync-inode-67491
Aug 27, 2024
Merged

client: Prevent race condition when printing Inode in ll_sync_inode#59162
batrick merged 1 commit intoceph:mainfrom
yukariatlas:ll-sync-inode-67491

Conversation

@yukariatlas
Copy link
Contributor

In the ll_sync_inode function, the entire Inode structure is printed without holding a lock. This can lead to a race condition when evaluating the assertion in xlistObjectCacher::Object*::size(), resulting in abnormal behavior.

Fixes: https://tracker.ceph.com/issues/67491

@github-actions github-actions bot added the cephfs Ceph File System label Aug 12, 2024
In the ll_sync_inode function, the entire Inode structure is printed without
holding a lock. This can lead to a race condition when evaluating the assertion
in xlist<ObjectCacher::Object*>::size(), resulting in abnormal behavior.

Fixes: https://tracker.ceph.com/issues/67491

Co-authored-by: dongdong tao <[email protected]>
Signed-off-by: Chengen Du <[email protected]>
@batrick
Copy link
Member

batrick commented Aug 13, 2024

jenkins test api

@batrick
Copy link
Member

batrick commented Aug 13, 2024

jenkins test make check

@batrick batrick closed this Aug 13, 2024
@batrick batrick reopened this Aug 13, 2024
@batrick
Copy link
Member

batrick commented Aug 13, 2024

(wrong button)

@batrick
Copy link
Member

batrick commented Aug 13, 2024

@batrick
Copy link
Member

batrick commented Aug 13, 2024

jenkins test api

@batrick
Copy link
Member

batrick commented Aug 13, 2024

jenkins test make check arm64

@batrick
Copy link
Member

batrick commented Aug 15, 2024

@batrick batrick merged commit b3896f4 into ceph:main Aug 27, 2024
@batrick
Copy link
Member

batrick commented Aug 27, 2024

pritha-srivastava pushed a commit to pritha-srivastava/ceph that referenced this pull request Aug 28, 2024
* refs/pull/59162/head:
	client: Prevent race condition when printing Inode in ll_sync_inode

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants