Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      I've been experimenting with more static analyzers (Coverity in this case). While it does have some false positives, it looks like it found a number of legitimate bugs. See https://scan.coverity.com/projects/lustre for details.

      It's seems like Coverity has been used with Lustre in the past (see: https://wiki.lustre.org/images/8/8a/LUG2013-Lustre_Static_Code_Analysis-Bull.pdf). Although, it doesn't seem like it's been run in a while.

      Also, there's a number of Coverity comments that seem out-dated and should probably just be cleaned up.

      Attachments

        Issue Links

          Activity

            [LU-17000] Coverity static analysis issues
            gerrit Gerrit Updater added a comment -

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/59516/
            Subject: LU-17000 utils: Fix error reported by coverity in lcfg_setparam_client
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 003005b13ec0db3a0708f01a94de8427323ff074

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/59516/ Subject: LU-17000 utils: Fix error reported by coverity in lcfg_setparam_client Project: fs/lustre-release Branch: master Current Patch Set: Commit: 003005b13ec0db3a0708f01a94de8427323ff074
            gerrit Gerrit Updater added a comment -

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/59477/
            Subject: LU-17000 obdclass: Fix mem leak in pool_add_objects
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 0e9c25ce5f697f8f55d8008261ad467032669740

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/59477/ Subject: LU-17000 obdclass: Fix mem leak in pool_add_objects Project: fs/lustre-release Branch: master Current Patch Set: Commit: 0e9c25ce5f697f8f55d8008261ad467032669740

            "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/60604
            Subject: LU-17000 lst: Fix unsed variable reported by valgrind
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 6ee07aea10a6c30ff1c5368406682eaa3aff2677

            gerrit Gerrit Updater added a comment - "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/60604 Subject: LU-17000 lst: Fix unsed variable reported by valgrind Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 6ee07aea10a6c30ff1c5368406682eaa3aff2677

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/60018/
            Subject: LU-17000 utils: handle_yaml_no_op() has wrong signature
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 08eef833edc883dc59eea63b655245580f48bc87

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/60018/ Subject: LU-17000 utils: handle_yaml_no_op() has wrong signature Project: fs/lustre-release Branch: master Current Patch Set: Commit: 08eef833edc883dc59eea63b655245580f48bc87

            "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/60040
            Subject: LU-17000 osd: Fix Assign instead of compare in LASSERT
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 0e0e43df477adb51e24b467a68d9d6d787bd8507

            gerrit Gerrit Updater added a comment - "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/60040 Subject: LU-17000 osd: Fix Assign instead of compare in LASSERT Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 0e0e43df477adb51e24b467a68d9d6d787bd8507

            "James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/60018
            Subject: LU-17000 utils: handle_yaml_no_op() has wrong signature
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: d6bdb5024a1d015a1246f3175f5a2f3f958ac60a

            gerrit Gerrit Updater added a comment - "James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/60018 Subject: LU-17000 utils: handle_yaml_no_op() has wrong signature Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: d6bdb5024a1d015a1246f3175f5a2f3f958ac60a

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/59499/
            Subject: LU-17000 obdclass: Fix mem leak in lcfg_setparam_client
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 20e9f9bd769bcd10033fe3b70cfe257ff899893d

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/59499/ Subject: LU-17000 obdclass: Fix mem leak in lcfg_setparam_client Project: fs/lustre-release Branch: master Current Patch Set: Commit: 20e9f9bd769bcd10033fe3b70cfe257ff899893d

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/59456/
            Subject: LU-17000 llite: Handle not NUL terminated buffer in ll_statahead_info
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 24a2a4ed6b2120aa21cbaad9496281ff69d1d7c2

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/59456/ Subject: LU-17000 llite: Handle not NUL terminated buffer in ll_statahead_info Project: fs/lustre-release Branch: master Current Patch Set: Commit: 24a2a4ed6b2120aa21cbaad9496281ff69d1d7c2

            "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/59516
            Subject: LU-17000 utils: For test
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 6e3dc1c3bb9eef4f7dc85b76c69958f8e8e34255

            gerrit Gerrit Updater added a comment - "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/59516 Subject: LU-17000 utils: For test Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 6e3dc1c3bb9eef4f7dc85b76c69958f8e8e34255

            "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/59499
            Subject: LU-17000 obdclass: Fix mem leak in lcfg_setparam_client
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 477bebf6053a98a6cc24a1c40893c4625ea8e626

            gerrit Gerrit Updater added a comment - "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/59499 Subject: LU-17000 obdclass: Fix mem leak in lcfg_setparam_client Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 477bebf6053a98a6cc24a1c40893c4625ea8e626

            "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/59477
            Subject: LU-17000 obdclass: Fix mem leak in pool_add_objects
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 0b773cb1e85e583843ad2906cacf37aef798b8ba

            gerrit Gerrit Updater added a comment - "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/59477 Subject: LU-17000 obdclass: Fix mem leak in pool_add_objects Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 0b773cb1e85e583843ad2906cacf37aef798b8ba

            People

              timday Tim Day
              timday Tim Day
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: