Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-88

LTP dma_thread_diotest: data corruption is detected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • Blowfish
    • None
    • None
    • None

      LTP tests dma_thread_diotest1, dma_thread_diotest2, dma_thread_diotest3, dma_thread_diotest4, dma_thread_diotest5, dma_thread_diotest6 and dma_thread_diotest7 fail detecting data corruption.

      root@porter:~# LTP_BIG_DEV=/dev/mmcblk1p1 ./dma_thread_diotest -a 512
      dma_thread_diotest 0 TINFO : using alignment 512
      dma_thread_diotest 0 TINFO : using 2 workers.
      dma_thread_diotest 0 TINFO : O_DIRECT flag is not supported on TMPFS filesystem
      dma_thread_diotest 0 TINFO : Formatting /dev/mmcblk1p1 with ext3 extra opts=''
      mke2fs 1.42.9 (28-Dec-2013)
      kjournald starting. Commit interval 5 seconds
      EXT3-fs (mmcblk1p1): using internal journal
      EXT3-fs (mmcblk1p1): mounted filesystem with ordered data mode
      dma_thread_diotest 0 TINFO : Reading file 1.
      Bad data at 0x000000: 0xb6d6e200,
      Data dump starting at 0xfffffff8:
      Expect 0x1 followed by 0xfa:
      01 01 01 01 01 01 01 01
      fa fa fa fa fa fa fa fa
      dma_thread_diotest 1 TFAIL : dma_thread_diotest.c:336: data corruption is detected
      root@porter:~#

      This problem is known as corruption with O_DIRECT and unaligned user buffers:
      http://www.spinics.net/lists/linux-mm/msg75367.html
      http://thread.gmane.org/gmane.linux.file-systems/27358

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mbc Manuel Bachmann
            mdurnev Mikhail Durnev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: