svn commit: r364946 - head/sys/kern

Brandon Bergren bdragon at FreeBSD.org
Sat Aug 29 14:44:58 UTC 2020


On Sat, Aug 29, 2020, at 6:34 AM, Warner Losh wrote:
> 
> 
> On Sat, Aug 29, 2020 at 5:25 AM Michal Meloun <meloun.michal at gmail.com> wrote:
> > Yeah, sorry. Local symbols are not available for netbooted kernel :(.
> > And i csan confirm that problem is cause by using sbuf_cpy() on sbuf
> > allocated by sbuf_new_for_sysctl() (thus with drain handler) in
> > device_sysctl_handler(). But pure replacing sbuf_cpy() by sbuf_cat()
> > gives me another panic:
> > panic: Assertion (sb->s_flags & SBUF_INCLUDENUL) == 0 failed at
> > /usr2/Meloun/git/pmap/sys/kern/subr_bus.c:4936
> > (still as respose for sysctl dev.cpu)
> 

By the way, on powerpc*, we have a little hack in place to be able to load symbols even when loader isn't in use -- in petitboot, if you provide a second copy of the kernel as the initrd, it will be used at runtime to load symbols. (the powerpc code has special probing to skip attaching the initrd as a md device if it looks like an ELF file)

And on powerpc32, you can actually netboot loader instead of netbooting the kernel (with a little dhcpd magic) and get symbols loaded the "normal" way.

-- 
  Brandon Bergren
  bdragon at FreeBSD.org


More information about the svn-src-head mailing list