[LU-13157] migrate symlink with target name length > 59 cause crash Created: 20/Jan/20 Updated: 12/Oct/21 Resolved: 31/Mar/20 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.12.0 |
| Fix Version/s: | Lustre 2.14.0, Lustre 2.12.5 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Lai Siyao | Assignee: | Lai Siyao |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||
| Description |
|
mdd_migrate() allocate 'la_size + 1' for symlink target name, the extra '+1' is a mistake, which will cause read beyond range fault: if target name is 59 bytes long, then it will try to read target name from external block other than inline i_block[15], that's why when target name is shorter than 59 it won't cause any problem. |
| Comments |
| Comment by Gerrit Updater [ 20/Jan/20 ] |
|
Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37285 |
| Comment by Gerrit Updater [ 31/Mar/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37285/ |
| Comment by Peter Jones [ 31/Mar/20 ] |
|
Landed for 2.14 |
| Comment by Gerrit Updater [ 01/Apr/20 ] |
|
Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38112 |
| Comment by Gerrit Updater [ 14/Apr/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/38112/ |