Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-6302

annotations for sparse static analyzer

Details

    • Improvement
    • Resolution: Fixed
    • Trivial
    • Lustre 2.8.0
    • Lustre 2.6.0
    • 3
    • 17646

    Description

      sparse (git://git.kernel.org/pub/scm/devel/sparse/sparse.git) is a static analyzer used in kernel dev. After installing it, it can easily be used with Lustre:

      make C=1
      

      Currently there is about 3900 warnings. Most of it is noise, and a few annotations will silence them. However in that noise, some bugs might be lurking.

      Besides finding bugs, it currently tags 1000 functions that can be made static. Once marked static, that will enable the compiler to optimize them more aggressively, which may lead to some minor performance improvements.

      So far I've cleared about 1000 of them and found only one bug (strcmp with userspace provided buffer in fld_proc_hash_seq_write) and several unused functions.

      Attachments

        Issue Links

          Activity

            [LU-6302] annotations for sparse static analyzer
            pjones Peter Jones added a comment -

            Landed for 2.8

            pjones Peter Jones added a comment - Landed for 2.8

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14613/
            Subject: LU-6302 lov: copy_to_user uses wrong casting
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 99393dc16a663fcf028b49353333a24f1dd3bb1c

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14613/ Subject: LU-6302 lov: copy_to_user uses wrong casting Project: fs/lustre-release Branch: master Current Patch Set: Commit: 99393dc16a663fcf028b49353333a24f1dd3bb1c

            James Simmons (uja.ornl@yahoo.com) uploaded a new patch: http://review.whamcloud.com/14613
            Subject: LU-6302 lov: copy_to_user uses wrong casting
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: aa04f43716c7ebf86c0866f88de6299ddc0c64f2

            gerrit Gerrit Updater added a comment - James Simmons (uja.ornl@yahoo.com) uploaded a new patch: http://review.whamcloud.com/14613 Subject: LU-6302 lov: copy_to_user uses wrong casting Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: aa04f43716c7ebf86c0866f88de6299ddc0c64f2

            People

              dmiter Dmitry Eremin (Inactive)
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: