[LU-14494] check object existence in mdt_close_handle_layouts() Created: 05/Mar/21 Updated: 28/Apr/21 Resolved: 30/Mar/21 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.15.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | John Hammond | Assignee: | John Hammond |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||
| Description |
|
In mdt_close_handle_layouts() the client supplied FID may not identify an existing object. So we should check before calling lu_object_attr(). |
| Comments |
| Comment by John Hammond [ 09/Mar/21 ] |
|
https://review.whamcloud.com/#/c/41905/ EX-14494 mdt: check object exists in mdt_close_handle_layouts() In mdt_close_handle_layouts() the client supplied FID may not identify Signed-off-by: John L. Hammond <jhammond@whamcloud.com> |
| Comment by Gerrit Updater [ 30/Mar/21 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41905/ |
| Comment by Peter Jones [ 30/Mar/21 ] |
|
Landed for 2.15 |
| Comment by Andreas Dilger [ 30/Mar/21 ] |
|
Alex, |
| Comment by John Hammond [ 30/Mar/21 ] |
| Comment by Alex Zhuravlev [ 30/Mar/21 ] |
|
Andreas, I'm not really a defender of that LASSERT(), I didn't introduce that at least
if (S_ISDIR(mdd_object_type(obj)))
would that be really different from checking all the places to add if (*_object_exists())... ? |
| Comment by John Hammond [ 30/Mar/21 ] |