Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932698AbdHWTy7 (ORCPT ); Wed, 23 Aug 2017 15:54:59 -0400 Received: from wdc011.relay.arandomserver.com ([208.43.115.130]:39158 "EHLO wdc011.relay.arandomserver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932539AbdHWTy6 (ORCPT ); Wed, 23 Aug 2017 15:54:58 -0400 To: linux-kernel@vger.kernel.org Cc: Wei Fang , Linus Torvalds From: Doug Nazar Subject: Kernels v4.9+ cause short reads of block devices Message-ID: <1ae53e17-e455-4f17-0280-b0dae183a449@nazar.ca> Date: Wed, 23 Aug 2017 15:15:15 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Thunderbird/54.0a2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: 173.192.232.254 X-SpamExperts-Domain: wdc006.hawkhost.com X-SpamExperts-Username: relay Authentication-Results: arandomserver.com; auth=pass (login) smtp.auth=relay@wdc006.hawkhost.com X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.09) X-Recommended-Action: accept X-Filter-ID: PqwsvolAWURa0gwxuN3S5YEa3T7JuZT23fGO2rGt3ZiXrQymdGY8qNmNJwTfl2xJ192kNgbkumUo HMCUQ8HXGkAwPN4M+BNtq20Hh3O6Az8x54JCQSpSh9ixc9o3H3wVCZryIsNFvaBrlzs70sT7iKmx j3Zz/WM/IwRyPjIHIwBwG0YNbzEmaSKSjgh8RBin0xyv6oQZwTqRicQdIK05lh5e973vehgRRMJd d1x498S6nTGQmaRZxRjOHVyapTPGK7n9JUG0tkF/jEO0NY30aYoNYUbVrTtEe3GW4LV9k5TlgTl6 fJxyntEfhZCKje4ZEejqcvF9whXmqNO3rZfNMqIdXj9EdeaBLWNm5S1nFwnQ08vWrPDgMXSp0PD/ +0YjMeeCQkEqUofYsXPaNx98FfQeXbCuryvNiGYRcw2pVekSMBaNT3w80AsNCBGDGO972ud6jspz FDX2Pkj7HHEhYxz6gQj+eIVU4RnBvKzP4EfW5j/4CzrmNymzPa3B4u6viTf5rRxafI3VERBHrL3V 0w7knaJOHXyb74CkvMRWnDsj+EHzOAOcJGTZeiAp3tyaP9NmbLEzYUBlJj1Mw1Gk9U21bJJYEvQ+ mjkfiZQwN2Ycnj95DBfxzNqou21wZgZ/vfLvzYWTBDhTssaXQYgNf1fgqDNXxZTBdyz2DdhKjV2t I4g+l6rCWbY0MZcgnbHsF7a8xU3eZ693aRr6FKdtTEat6v5OMq1/dYjI7gDgNzTFRJZlZRJaY36C oOS5BUSWQnTIgDfxZ2/WGqYvyOVteVOdo6Dvr8fbMJVJ9/erL6/4IvMfhB2h/z0m0D607pH+FNK3 Caq2HY6IIv3yzkmiMKkOHNNlPBTH3hHYULIjW+ZTeWMhaBBMtY4bsPB4I+rU8qN+F4qdUnhmNihU ZaffS6G6WGNm9YD6a31App4D4Z5xJ4RGzhM5OcgfWRzUhZzlBzWHO039/S6s6LkG6E2d9g== X-Report-Abuse-To: spam@se001.arandomserver.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 541 Lines: 15 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