lkml.org 
[lkml]   [2008]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: BUG: mmapfile/writev spurious zero bytes (x86_64/not i386, bisected, reproducable)
    Linus Torvalds wrote:
    >
    > On Tue, 17 Jun 2008, Linus Torvalds wrote:
    >> I don't think that code is reasonably salvageable. Damn.
    >
    > Hmm. Something like this *may* salvage it.
    >
    > Untested, so far (I'll reboot and test soon enough), but even if it fixes
    > things, it's not really very good.

    If that fixes anything:
    - The caller is broken because it shouldn't pass a faulting source to copy_to_user()
    - And you broken copy_from_user error reporting which shares the same code

    -Andi




    \
     
     \ /
      Last update: 2008-06-17 23:19    [W:6.575 / U:0.808 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site