lkml.org 
[lkml]   [2020]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 10/13] integrity/ima: switch to using __kernel_read
    On Mon, Jun 15, 2020 at 5:13 AM Christoph Hellwig <hch@lst.de> wrote:
    >
    > __kernel_read has a bunch of additional sanity checks, and this moves
    > the set_fs out of non-core code.

    Wel, you also seem to be removing this part:

    > - if (!(file->f_mode & FMODE_READ))
    > - return -EBADF;

    which you didn't add in the previous patch that implemented __kernel_read().

    It worries me that you're making these kinds of transformations where
    the comments imply it's a no-op, but the actual code doesn't agree.

    Especially when it's part of one large patch series and each commit
    looks trivial.

    This kind of series needs more care. Maybe that test isn't necessary,
    but it isn't obvious, and I really don't like how you completely
    glossed over totally changing what the code did.

    Linus

    \
     
     \ /
      Last update: 2020-06-15 18:46    [W:2.218 / U:0.628 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site