All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernels v4.9+ cause short reads of block devices
@ 2017-08-23 19:15 Doug Nazar
  2017-08-23 19:37 ` Linus Torvalds
  0 siblings, 1 reply; 12+ messages in thread
From: Doug Nazar @ 2017-08-23 19:15 UTC (permalink / raw)
  To: linux-kernel; +Cc: Wei Fang, Linus Torvalds

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-08-29 10:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-23 19:15 Kernels v4.9+ cause short reads of block devices Doug Nazar
2017-08-23 19:37 ` 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

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.