[Bug 281978] g_io_request panic on md(4) with odd size
Date: Wed, 09 Oct 2024 20:27:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281978 Bug ID: 281978 Summary: g_io_request panic on md(4) with odd size Product: Base System Version: CURRENT Hardware: arm64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: bz@FreeBSD.org I have in the past done this but after a recent update it panics on boot with a DEBUG kernel: I am pre-loading an md(4)image file from loader which has an odd size (md0 is a root image which seems fine if I disable the md1): md1: Preloaded image </bazrandom> 61281 bytes at 0xffff000005f95eb0 This leads to a panic when geom tries to taste but doesn't find a file system or disk-sized image: panic: wrong offset 60769 for sectorsize 512 cpuid = 0 time = 1 KDB: stack backtrace: db_trace_self() at db_trace_self db_trace_self_wrapper() at db_trace_self_wrapper+0x58 vpanic() at vpanic+0x220 panic() at panic+0x48 g_io_request() at g_io_request+0x5e4 g_read_data() at g_read_data+0xc8 g_label_generic_taste() at g_label_generic_taste+0x90 g_label_taste() at g_label_taste+0x268 g_load_class() at g_load_class+0x23c g_run_events() at g_run_events+0x13c fork_exit() at fork_exit+0x98 fork_trampoline() at fork_trampoline+0x18 KDB: enter: panic [ thread pid 14 tid 100075 ] Stopped at kdb_enter+0x78: str xzr, [x21, #2048] -- You are receiving this mail because: You are the assignee for the bug.