Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Aug 2020 09:44:37 -0500
From:      "Brandon Bergren" <bdragon@FreeBSD.org>
To:        "Warner Losh" <imp@bsdimp.com>, meloun.michal@gmail.com
Cc:        "Mateusz Guzik" <mjguzik@gmail.com>, "Warner Losh" <imp@freebsd.org>, src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r364946 - head/sys/kern
Message-ID:  <0b054da5-3d76-413c-b14f-58b819312c85@www.fastmail.com>
In-Reply-To: <CANCZdfq6U-L%2BpJyMgYT_6fB=KWSudp3tdt%2B7K67gPvRRQ-6u1Q@mail.gmail.com>
References:  <202008290430.07T4UCM4007928@repo.freebsd.org> <CAGudoHFAkrAykin6ngH=04254J4AmhHk2NmDyGfrUE=wJcxH2A@mail.gmail.com> <CANCZdfqXtKhKhh33ovFQ4_a3tiesRi8-6ZuMTp0yW%2BMzkxWLzA@mail.gmail.com> <f1a67850-e9e5-d785-6562-972aeb9f1206@gmail.com> <CANCZdfp9m7knXfguYh79fdALBiL3ktEH6e=NU4S2qdOv6ory%2Bg@mail.gmail.com> <213fcb81-ceab-677f-98dc-e8cb33fef7d1@gmail.com> <CANCZdfq6U-L%2BpJyMgYT_6fB=KWSudp3tdt%2B7K67gPvRRQ-6u1Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0b054da5-3d76-413c-b14f-58b819312c85>