All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Qu Wenruo <wqu@suse.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 0/3] btrfs-progs: Detect compressed extent without csum
Date: Tue, 11 Sep 2018 17:58:03 +0200	[thread overview]
Message-ID: <20180911155803.GF2154@twin.jikos.cz> (raw)
In-Reply-To: <20180514065444.26313-1-wqu@suse.com>

On Mon, May 14, 2018 at 02:54:41PM +0800, Qu Wenruo wrote:
> Patches can be fetch from github:
> https://github.com/adam900710/btrfs-progs/tree/compress_nodatasum
> 
> It's based on v4.16 stable branch.
> 
> James Harvey from mail list reports a strange kernel panic, whichs show
> obviously kernel memory corruption, while after btrfs decompression
> failure.
> 
> It turns out that, some compressed extent get corrupted on-disk, while
> the inode has NODATASUM set, there is no csum to prevent corrupted
> mirror being used.
> 
> Although the root cause should be buggy lzo implementation, it still
> shows that btrfs is not following the behavior defined in btrfs(5):
> 
>      Note
>      If nodatacow or nodatasum are enabled, compression is disabled.
> 
> So at least make btrfs check to detect such problem.
> 
> Qu Wenruo (3):
>   btrfs-progs: check/lowmem: Add checks for compressed extent without
>     csum
>   btrfs-progs: check/original: Add checks for compressed extent without
>     csum
>   btrfs-progs: fsck-tests: Add test case for detecting compressed extent
>     without csum

Sorry for late reply, can you please refresh the patches on top of a
more recent progs? Thanks.

  parent reply	other threads:[~2018-09-11 20:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-14  6:54 [PATCH 0/3] btrfs-progs: Detect compressed extent without csum Qu Wenruo
2018-05-14  6:54 ` [PATCH 1/3] btrfs-progs: check/lowmem: Add checks for " Qu Wenruo
2018-05-14  6:54 ` [PATCH 2/3] btrfs-progs: check/original: " Qu Wenruo
2018-05-14  6:54 ` [PATCH 3/3] btrfs-progs: fsck-tests: Add test case for detecting " Qu Wenruo
2018-09-11 15:58 ` David Sterba [this message]
2018-09-12  0:08   ` [PATCH 0/3] btrfs-progs: Detect " Qu Wenruo
2018-05-14  7:03 Qu Wenruo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180911155803.GF2154@twin.jikos.cz \
    --to=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=wqu@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.