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

Insecure data handling (INTEGER_OVERFLOW) /lustre/llite/pcc.c: pcc_io_fini() in pcc_file_read_iter()

Details

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

    Description

      ** CID 454276: Insecure data handling (INTEGER_OVERFLOW)
      /lustre/llite/pcc.c: 2643 in pcc_file_read_iter()

      ________________________________________________________________________________________________________
      *** CID 454276: Insecure data handling (INTEGER_OVERFLOW)
      /lustre/llite/pcc.c: 2643 in pcc_file_read_iter()

      2637         if (iocb->ki_pos > i_size_read(inode) && result > 0)
      2638             result -= iocb->ki_pos - i_size_read(inode);
      2639     
      2640     out:
      2641         iocb->ki_filp = file;
      2642         pcc_io_fini(inode, PIT_READ, result, cached);
         CID 454276:  Insecure data handling  (INTEGER_OVERFLOW)
         "result", which might have overflowed, is returned from the function.
      2643         RETURN(result);
      2644     }
      2645     
      2646     static ssize_t
      2647     __pcc_file_write_iter(struct kiocb *iocb, struct iov_iter *iter)
      2648     {
      

      Attachments

        Issue Links

          Activity

            People

              qian_wc Qian Yingjin
              qian_wc Qian Yingjin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: