[Bug 193146] New: [PATCH] getblk: Assert that bsize is non-zero

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Aug 30 13:30:04 UTC 2014


            Bug ID: 193146
           Summary: [PATCH] getblk: Assert that bsize is non-zero
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: conrad.meyer at isilon.com

Created attachment 146535
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=146535&action=edit
(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

This patch attempts to head off developer errors like bo_bsize == 0 quickly
with a KASSERT.

Sponsored by:    EMC / Isilon storage division

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list