[Bug 214721] [geom] [panic] graid panic: g_read_data: invalid length 262144

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Nov 21 23:01:59 UTC 2016


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

            Bug ID: 214721
           Summary: [geom] [panic] graid panic: g_read_data: invalid
                    length 262144
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: nvass at gmx.com

Hi,

When one creates a provider with sector size larger than 32768, geom_raid will
trigger a kernel panic. g_raid_md_taste_promise() calls g_read_data() with
length > MAXPHYS (4 * sectorsize).

panic: g_read_data(): invalid length 262144
cpuid = 3
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe007b6d47a0
vpanic() at vpanic+0x182/frame 0xfffffe007b6d4820
kassert_panic() at kassert_panic+0x126/frame 0xfffffe007b6d4890
g_read_data() at g_read_data+0x45/frame 0xfffffe007b6d48d0
g_raid_md_taste_promise() at g_raid_md_taste_promise+0x104/frame
0xfffffe007b6d49c0
g_raid_taste() at g_raid_taste+0x18b/frame 0xfffffe007b6d4a10
g_new_provider_event() at g_new_provider_event+0xea/frame 0xfffffe007b6d4a30
g_run_events() at g_run_events+0x187/frame 0xfffffe007b6d4a70

How to repeat:
mdconfig -at swap -S 65536 -s 20M

This is similar to bug 147851 which was related to geom_raid3.

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


More information about the freebsd-bugs mailing list