Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jul 2020 19:21:30 +0200
From:      peter.blok@bsd4all.org
To:        freebsd-stable@freebsd.org
Subject:   Crash in stable 363430 and higher
Message-ID:  <A241FBFA-293D-4911-9011-03CC6306D104@bsd4all.org>

next in thread | raw e-mail | index | archive | help
Hi,

I=E2=80=99m getting the following crash during startup. It seems =
strongswan is setting a reqid.

Commit r363430 is on if_bridge. The IPSec interfaces are not bridged at =
all, so I=E2=80=99m clueless to why this crash relates to this commit. =
The only commonality is that the crash is Epoch related and the commit =
as well.

(kgdb) list
418			 * Propagate our priority to any other waiters =
to prevent us
419			 * from starving them. They will have their =
original priority
420			 * restore on exit from epoch_wait().
421			 */
422			curwaittd =3D tdwait->et_td;
423			if (!TD_IS_INHIBITED(curwaittd) && =
curwaittd->td_priority > td->td_priority) {
424				critical_enter();
425				thread_unlock(td);
426				thread_lock(curwaittd);
427				sched_prio(curwaittd, td->td_priority);
(kgdb) p/x tdwait
$3 =3D 0xfffffe0075dca778
(kgdb) p/x tdwait->et_td
$4 =3D 0x806
(kgdb) bt
#0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
#1  doadump (textdump=3D<optimized out>) at =
/usr/src/sys/kern/kern_shutdown.c:371
#2  0xffffffff8064d335 in kern_reboot (howto=3D260) at =
/usr/src/sys/kern/kern_shutdown.c:451
#3  0xffffffff8064d773 in vpanic (fmt=3D<optimized out>, ap=3D<optimized =
out>) at /usr/src/sys/kern/kern_shutdown.c:880
#4  0xffffffff8064d593 in panic (fmt=3D<unavailable>) at =
/usr/src/sys/kern/kern_shutdown.c:807
#5  0xffffffff809cc3d1 in trap_fatal (frame=3D0xfffffe00c8a0e6f0, =
eva=3D3094) at /usr/src/sys/amd64/amd64/trap.c:925
#6  0xffffffff809cc42f in trap_pfault (frame=3D0xfffffe00c8a0e6f0, =
usermode=3D<optimized out>, signo=3D<optimized out>, ucode=3D<optimized =
out>) at /usr/src/sys/amd64/amd64/trap.c:743
#7  0xffffffff809cba76 in trap (frame=3D0xfffffe00c8a0e6f0) at =
/usr/src/sys/amd64/amd64/trap.c:407
#8  <signal handler called>
#9  epoch_block_handler_preempt (global=3D<optimized out>, cr=3D<optimized=
 out>, arg=3D<optimized out>) at /usr/src/sys/kern/subr_epoch.c:423
#10 0xffffffff803677fd in epoch_block (global=3D0xfffff800020be600, =
cr=3D0xfffffe0075db9a00, cb=3D0xffffffff80692320 =
<epoch_block_handler_preempt>, ct=3D0x0) at =
/usr/src/sys/contrib/ck/src/ck_epoch.c:416
#11 ck_epoch_synchronize_wait (global=3D0xfffff800020be600, =
cb=3D<optimized out>, ct=3D<optimized out>) at =
/usr/src/sys/contrib/ck/src/ck_epoch.c:465
#12 0xffffffff806921da in epoch_wait_preempt (epoch=3D0xfffff800020be600) =
at /usr/src/sys/kern/subr_epoch.c:513
#13 0xffffffff80761687 in ipsec_set_reqid (sc=3D0xfffff8004261e200, =
reqid=3D103) at /usr/src/sys/net/if_ipsec.c:964
#14 ipsec_ioctl (ifp=3D<optimized out>, cmd=3D<optimized out>, =
data=3D<optimized out>) at /usr/src/sys/net/if_ipsec.c:764
#15 0xffffffff807527ef in ifioctl (so=3D0xfffff8011d766000, =
cmd=3D2149607841, data=3D0xfffffe00c8a0ea10 "btcd", td=3D<optimized =
out>) at /usr/src/sys/net/if.c:3147
#16 0xffffffff806b5f47 in fo_ioctl (fp=3D0xfffff800194846e0, =
com=3D2149607841, data=3D0x0, active_cred=3D0x0, td=3D0xfffff80122379740) =
at /usr/src/sys/sys/file.h:337
#17 kern_ioctl (td=3D0xffffffff80692320 <epoch_block_handler_preempt>, =
fd=3D<optimized out>, com=3D2149607841, data=3D0x0) at =
/usr/src/sys/kern/sys_generic.c:805
#18 0xffffffff806b5bea in sys_ioctl (td=3D0xfffff80122379740, =
uap=3D0xfffff80122379b00) at /usr/src/sys/kern/sys_generic.c:713
#19 0xffffffff809ccf87 in syscallenter (td=3D0xfffff80122379740) at =
/usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:144
#20 amd64_syscall (td=3D0xfffff80122379740, traced=3D0) at =
/usr/src/sys/amd64/amd64/trap.c:1167
#21 <signal handler called>
#22 0x000000080044e0da in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffffffe1a8

Any pointers?=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A241FBFA-293D-4911-9011-03CC6306D104>