1. 20 5月, 2019 3 次提交
  2. 17 5月, 2019 2 次提交
  3. 15 5月, 2019 8 次提交
  4. 08 5月, 2019 4 次提交
  5. 06 5月, 2019 1 次提交
  6. 02 5月, 2019 1 次提交
  7. 01 5月, 2019 6 次提交
  8. 30 4月, 2019 14 次提交
  9. 29 4月, 2019 1 次提交
    • B
      arm64: mmap: Ensure file offset is treated as unsigned · f08cae2f
      Boyang Zhou 提交于
      The file offset argument to the arm64 sys_mmap() implementation is
      scaled from bytes to pages by shifting right by PAGE_SHIFT.
      Unfortunately, the offset is passed in as a signed 'off_t' type and
      therefore large offsets (i.e. with the top bit set) are incorrectly
      sign-extended by the shift. This has been observed to cause false mmap()
      failures when mapping GPU doorbells on an arm64 server part.
      
      Change the type of the file offset argument to sys_mmap() from 'off_t'
      to 'unsigned long' so that the shifting scales the value as expected.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NBoyang Zhou <zhouby_cn@126.com>
      [will: rewrote commit message]
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      f08cae2f