https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193146

            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: [email protected]
          Reporter: [email protected]

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
bad.

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.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to