Linux-BTRFS Archive on
 help / color / Atom feed
From: Raviu <>
To: "" <>
Subject: fstrim segmentation fault and btrfs crash on vanilla 5.4.14
Date: Sun, 26 Jan 2020 15:54:27 +0000
Message-ID: <> (raw)

I've two btrfs filesystems on the same nvme disk / and /home.
I'm running fstrim -va as cronjob daily.
Today, once fstrim run, apps writing to /home got frozen. Reviewing dmesg show a bug message related to fstrim and btrfs.
Rebooting the system- actually forcibly as it couldn't umount /home - and running fstrim manualy on each filesystem; on / it worked fine, on /home I got the same error.
Here are the dmesg errors:

Here is the output of btrfs check --readonly with home unmounted:

I've run scrub whith home mounted it said, `Error summary:    no errors found`

The fstrim kernel error is reproducible on my machine, it occurs every time I run it on my home. So I can test a fix, just hope it doesn't cause data loss.

             reply index

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-26 15:54 Raviu [this message]
2020-01-26 16:09 ` Raviu
2020-01-26 16:54   ` Nikolay Borisov
2020-01-26 17:10     ` Raviu
     [not found]       ` <>
2020-01-27  7:53         ` Raviu
2020-01-27  8:03           ` Nikolay Borisov
2020-01-27  8:11             ` Raviu

Reply instructions:

You may reply publically 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:

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

  git send-email \
    --in-reply-to='' \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-BTRFS Archive on

Archives are clonable:
	git clone --mirror linux-btrfs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-btrfs linux-btrfs/ \
	public-inbox-index linux-btrfs

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone