All of lore.kernel.org
 help / color / mirror / Atom feed
From: Doug Nazar <nazard@nazar.ca>
To: linux-kernel@vger.kernel.org
Cc: Wei Fang <fangwei1@huawei.com>,
	Linus Torvalds <torvalds@linux-foundation.org>
Subject: Kernels v4.9+ cause short reads of block devices
Date: Wed, 23 Aug 2017 15:15:15 -0400	[thread overview]
Message-ID: <1ae53e17-e455-4f17-0280-b0dae183a449@nazar.ca> (raw)

The following commits cause short reads of block devices, however writes 
are still allowed.

c2a9737f45e2 ("vfs,mm: fix a dead loop in truncate_inode_pages_range()")
d05c5f7ba164 ("vfs,mm: fix return value of read() at s_maxbytes")

When e2fsck sees this, it thinks it's a bad sector and tries to write a 
block of nulls which overwrites the valid data.

Device is LVM over 2 x RAID-5 on an old 32bit desktop.

RO    RA   SSZ   BSZ   StartSec            Size   Device
rw  4096   512  4096          0   9748044840960 /dev/Storage/Main

Doug

             reply	other threads:[~2017-08-23 19:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-23 19:15 Doug Nazar [this message]
2017-08-23 19:37 ` Kernels v4.9+ cause short reads of block devices Linus Torvalds
2017-08-23 19:53   ` Doug Nazar
2017-08-23 20:13     ` Linus Torvalds
2017-08-23 21:01       ` Andreas Dilger
2017-08-24 10:20         ` Doug Nazar
2017-08-24 15:22           ` Dave Kleikamp
2017-08-24 15:22             ` Dave Kleikamp
2017-08-27 19:47         ` Linus Torvalds
2017-08-27 19:54           ` Dave Kleikamp
2017-08-29 10:40           ` Doug Nazar
2017-08-24 10:03       ` Doug Nazar

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=1ae53e17-e455-4f17-0280-b0dae183a449@nazar.ca \
    --to=nazard@nazar.ca \
    --cc=fangwei1@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /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.