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

osd_ldiskfs fiemap code wrong address space usage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • Lustre 2.13.0
    • None
    • 3
    • 9223372036854775807

      osd_io code seems to be using struct fiemap_extent's fi_extents_start field directly even though it has __user qualifier.
      We then pass this buffer straight into inode's fiemap method that does assume the pointer is userspace which is boind to break on some conigurations.

      We need to at least set ds to kernel_ds to have it working,
      or find some other wayst to call into fiemap code with kernelspace buffers.

      Offending functions are osd_fiemap_get() and osd_is_mapped()

            arshad512 Arshad Hussain
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: