Fatal trap 12 booting FreeBSD-CURRENT via isboot kernel module.
Ian Lepore
ian at freebsd.org
Tue Feb 6 18:50:24 UTC 2018
On Tue, 2018-02-06 at 11:33 -0700, John Nielsen wrote:
> >
> > On Feb 6, 2018, at 10:54 AM, John Nielsen <lists at jnielsen.net>
> > wrote:
> >
> > >
> > >
> > > On Feb 4, 2018, at 2:50 AM, Maurizio Vairani <maurizio1018 at gmail.
> > > com> wrote:
> > >
> > > 2018-01-29 18:38 GMT+01:00 John Nielsen <lists at jnielsen.net>:
> > > [ resending from correct email address ]
> > >
> > > >
> > > > On Jan 29, 2018, at 6:05 AM, Maurizio Vairani <maurizio1018 at gma
> > > > il.com> wrote:
> > > >
> > > > I am running
> > > > # uname
> > > > -a
> > > >
> > > > FreeBSD 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r328383: Thu Jan
> > > > 25 04:48:52
> > > > UTC 2018 root at releng3.nyi.freebsd.org:/usr/obj/usr/src/amd6
> > > > 4.amd64/sys/GENERIC
> > > > amd64
> > > >
> > > > After compiling the kernel module as discussed in this thread :
> > > > https://lists.freebsd.org/pipermail/freebsd-current/2018-Januar
> > > > y/068272.html
> > > >
> > > > I can boot FreeBSD via iSCSI using iPXE. But when the isboot,
> > > > the iSCSI
> > > > boot driver version 0.2.13, starts I receive a panic:
> > > > https://mega.nz/#!tkVwBBKA!PUj14-Za6KCNaoo9hxuXORRLQoWkb4LMvTdU
> > > > A1BorD4
> > > >
> > > > Any idea?
> > > Bummer!
> > >
> > > Aoyama-san-
> > >
> > > Are you still maintaining isboot? Can you help debug this issue
> > > on FreeBSD 12-CURRENT?
> > >
> > > Once we get it working I will update the port with whatever is
> > > needed and send you the patches in case you'd like to cut a new
> > > release.
> > >
> > > Thank you!
> > >
> > > I have solved the issue changing the function isboot_ifup() in
> > > the source file isboot.c.
> > Here is a patch with some changes to minimize the diff. Except for
> > the printed error messages does that look functionally equivalent?
> >
> > Now the question is why is this change needed and for what values
> > of __FreeBSD_version is it appropriate?
> Apparently sending a NULL socket pointer to ifioctl hasn't worked
> since this commit in 2011:
> https://svnweb.freebsd.org/base?view=revision&revision=218757
>
> So I'm going to add this patch to the port unconditionally once it
> works.
>
> Unfortunately, I can't compile the port with either my patch below or
> your original replacement version of isboot_ifup(). :( Did you make
> other changes? Here's the error I'm getting:
>
> --- isboot.o ---
> isboot.c:425:53: error: incomplete definition of type 'struct thread'
> error = socreate(AF_INET, &so, SOCK_DGRAM, 0, td->td_ucred, td);
> ~~^
> /usr/src/sys/sys/systm.h:185:8: note: forward declaration of 'struct
> thread'
> struct thread;
> ^
> 1 error generated.
>
Try adding #include <sys/proc.h> if it's not already in the list. It
may be that that file got included via pollution from some other header
file in the past and maybe now that has changed.
If you're already including sys/proc.h then I'm clueless.
-- Ian
More information about the freebsd-current
mailing list