[LU-5383] New static analysis issues in mount_lustre Created: 23/May/14 Updated: 30/Aug/23 Resolved: 05/Nov/14 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.7.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Dmitry Eremin (Inactive) | Assignee: | Dmitry Eremin (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | kw | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 14067 | ||||||||
| Description |
|
Found 1 new static analysis issues in 2.5.59-27-g75752e9:
Details: mount_lustre.c:422: rc = strlen(ldd->ldd_svname) mount_lustre.c:422: Possible value(s) of 'strlen(ldd->ldd_svname)' is '[0,63]' mount_lustre.c:423: rc-8 mount_lustre.c:423: Inferred value 'rc' is '[0,63]' mount_lustre.c:423: Result of expression 'rc - 8' is '[-8,55]' mount_lustre.c:423: Array 'ldd_svname' size is 64. mount_lustre.c:423: Possible attempt to access element -8..-1 of array 'ldd_svname'. The list of commits since the previous build 2.5.59-0-g28f2ff9:
|
| Comments |
| Comment by Dmitry Eremin (Inactive) [ 31/Oct/14 ] |
|
Patch is http://review.whamcloud.com/12524/ |
| Comment by Dmitry Eremin (Inactive) [ 05/Nov/14 ] |
|
Patch landed to master. |
| Comment by Patrick Farrell (Inactive) [ 05/Nov/14 ] |
|
The patch http://review.whamcloud.com/#/c/12524/2 breaks mounts of MGS/MGT volumes with short names (which is valid for an MGS/MDT, since they do not have to include an index or the file system name). [root@centss02 ~]# mount -t lustre -o abort_recov /dev/sdb /tmp/lustre/centss02/mgt Since the entire purpose of that code is to fix up OST & MDT names to indicate their status, presumably the solution is to simply not call this check on the MGS/MGT volume. I'll open a new LU for this. |