Created attachment 146535 [details] (Applies to CURRENT with -p0.) If !vn_isdisk(vp) and bo_bsize is zero, getblk() will calculate offsets for different blknos as zero, and create multiple bufs pointing at the same section of VM object (due to offset being zero). As you might imagine, this is pretty bad. This patch attempts to head off developer errors like bo_bsize == 0 quickly with a KASSERT. Sponsored by: EMC / Isilon storage division
A commit references this bug: Author: benno Date: Thu Sep 4 00:10:06 UTC 2014 New revision: 271070 URL: http://svnweb.freebsd.org/changeset/base/271070 Log: Add KASSERTs to catch the case where a developer may have forgotten to set bo_bsize on a bufobj. This is a slight modification of the patch provided. PR: 193146 Submitted by: Conrad Meyer <conrad.meyer@isilon.com> Sponsored by: EMC Isilon Storage Division Changes: head/sys/kern/vfs_bio.c