VirtualBox

Ignore:
Timestamp:
Sep 4, 2019 10:27:59 AM (5 years ago)
Author:
vboxsync
Message:

linux/vboxsf: ticketref:18805: Linux guests: calls to aio_{read,write}(3) may fail inside shared folder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/regops.c

    r78204 r80582  
    348348                if (pSrcIter->type & ITER_KVEC)
    349349                    memcpy(pbDst, (void *)pSrcIter->iov->iov_base + pSrcIter->iov_offset, cbThisCopy);
    350                 else if (!copy_from_user(pbDst, pSrcIter->iov->iov_base + pSrcIter->iov_offset, cbThisCopy))
     350                else if (copy_from_user(pbDst, pSrcIter->iov->iov_base + pSrcIter->iov_offset, cbThisCopy) != 0)
    351351                    break;
    352352                pbDst    += cbThisCopy;
     
    387387                if (pDstIter->type & ITER_KVEC)
    388388                    memcpy((void *)pDstIter->iov->iov_base + pDstIter->iov_offset, pbSrc, cbThisCopy);
    389                 else if (!copy_to_user(pDstIter->iov->iov_base + pDstIter->iov_offset, pbSrc, cbThisCopy)) {
     389                else if (copy_to_user(pDstIter->iov->iov_base + pDstIter->iov_offset, pbSrc, cbThisCopy) != 0) {
    390390                    break;
    391391                }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette