[LU-16179] race in ll_splice_alias() may lead to two valid dentries for the same file Created: 22/Sep/22 Updated: 26/Sep/22 Resolved: 26/Sep/22 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Lai Siyao | Assignee: | Lai Siyao |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||
| Description |
|
ll_splice_alias() calls ll_find_alias() before calling d_add(), but if there are concurrent lookups, both may not find alias dentry, and add dentry, therefore there may be more than one valid dentries for the same file, which may cause deadlock in rename(). |
| Comments |
| Comment by Gerrit Updater [ 22/Sep/22 ] |
|
"Lai Siyao <lai.siyao@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/48624 |
| Comment by Peter Jones [ 26/Sep/22 ] |
|
Fixed already by https://review.whamcloud.com/#/c/fs/lustre-release/+/28486/ |