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

LNetEQAlloc() misuses roundup_pow_of_two()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.8.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      After http://review.whamcloud.com/16914 we see the following when starting LNet:

      [690112.179415] LNet: 8882:0:(lib-eq.c:87:LNetEQAlloc()) EQ callback is guaranteed to get every event, do you still want to set eqcount 1 for polling event which will have locking overhead? Please contact with developer to confirm
      

      Here LNetEQAlloc() is being called with a count of 0 and passing that to roundup_pow_of_two(). This is undefined behavior according to http://lxr.free-electrons.com/source/tools/include/linux/log2.h#L161.

      Attachments

        Activity

          People

            green Oleg Drokin
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: