lkml.org 
[lkml]   [2018]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.18 38/56] ext4: reset error code in ext4_find_entry in fallback
    Date
    3.18-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Eric Sandeen <sandeen@redhat.com>

    commit f39b3f45dbcb0343822cce31ea7636ad66e60bc2 upstream.

    When ext4_find_entry() falls back to "searching the old fashioned
    way" due to a corrupt dx dir, it needs to reset the error code
    to NULL so that the nonstandard ERR_BAD_DX_DIR code isn't returned
    to userspace.

    https://bugzilla.kernel.org/show_bug.cgi?id=199947

    Reported-by: Anatoly Trosinenko <anatoly.trosinenko@yandex.com>
    Reviewed-by: Andreas Dilger <adilger@dilger.ca>
    Signed-off-by: Eric Sandeen <sandeen@redhat.com>
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>
    Cc: stable@vger.kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    fs/ext4/namei.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/fs/ext4/namei.c
    +++ b/fs/ext4/namei.c
    @@ -1242,6 +1242,7 @@ static struct buffer_head * ext4_find_en
    return bh;
    dxtrace(printk(KERN_DEBUG "ext4_find_entry: dx failed, "
    "falling back\n"));
    + ret = NULL;
    }
    nblocks = dir->i_size >> EXT4_BLOCK_SIZE_BITS(sb);
    if (!nblocks) {

    \
     
     \ /
      Last update: 2018-09-03 18:59    [W:4.192 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site