[lkml]   [2008]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [Patch 7/9] fs/exec.c: fix wrong return value of prepare_binprm()
    On Thu, May 08, 2008 at 09:52:32PM +0800, WANG Cong wrote:
    > All prepare_binprm()'s callers assume that prepare_binprm() fails
    > when it returns negative. However, prepare_binprm() most probably returns
    > the return value of kernel_read(), which may return positive on failure!
    > Thus this should be fixed.

    Since when does read return positive on failure?

     \ /
      Last update: 2008-05-10 21:33    [W:0.017 / U:74.628 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site