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

Possible integer overflow in quota_read_blk

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • Lustre 2.15.0
    • None
    • 3
    • 9223372036854775807

    Description

      In osd-ldiskfs quota_read_blk we have this bit:

              ret = sb->s_op->quota_read(sb, type, buf, LUSTRE_DQBLKSIZE,
                                         blk << LUSTRE_DQBLKSIZE_BITS); 

      where blk is uint and LUSTRE_DQBLKSIZE_BITS is 10. the last quota_read argument is loff_t, as such cast to some 64 bit type seems warranted to avoid a potential overflow.

      Attachments

        Activity

          People

            wc-triage WC Triage
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: