kernel panic with wireguard / ifconfig -A

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

kernel panic with wireguard / ifconfig -A

Jihyun Yu
Hi,

I'm experiencing kernel panic with wireguard and ifconfig. Kernel panics
with `ifconfig -A` command when wireguard is up. I attached basic output
(dmesg/ddb output) from the system. The panic is reliably reproducible, so
please let me know if there's any missing information.

BTW I set `ddb.panic=0` on sysctl.conf but the machine does not reboot
automatically after panic occurs. Is there any way to reboot the system
automatically after panic?

logs:

moomin# ifconfig -A
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mWARNING: SPL NOT LOWERED ON
SYSCALL 54 3 EXIT 0 9
Stopped at      savectx+0xb1:   movl    $0,%gs:0x508

ddb{3}> trace
savectx(0,0,2000,36,7eed9b1b000,2000) at savectx+0xb1
end of kernel
end trace frame: 0x7f7fffff4280, count: -1

ddb{3}> mach ddbcpu 0
Stopped at      x86_ipi_db+0x12:        leave
ddb{0}> mach ddbcpu 1
Stopped at      x86_ipi_db+0x12:        leave
ddb{1}> mach ddbcpu 2
Stopped at      x86_ipi_db+0x12:        leave
ddb{2}> mach ddbcpu 3
Stopped at      savectx+0xb1:   movl    $0,%gs:0x508

ddb{3}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
*24121  166157  25586   1000  7         0x3                ifconfig
 19269  257464  82172      0  3    0x100083  ttyin         more
 82172  215841  53247      0  3    0x100083  wait          man
 53247  404648  99425      0  3    0x10008b  pause         ksh
 25586    2738  64430   1000  3    0x10008b  pause         ksh
 64430  238795  25023   1000  7        0x10                sshd
 25023    7001  22349      0  3        0x92  poll          sshd
 99425  267009  73864   1000  3    0x10008b  pause         ksh
 73864  161992  30863   1000  3        0x90  select        sshd
 30863  225586  22349      0  3        0x92  poll          sshd
 79533  278024      1      0  3    0x100083  ttyin         getty
 97568  268534      1      0  3    0x100098  poll          cron
  6623  504848      1     99  3    0x100090  poll          sndiod
 97869   33926      1    110  3    0x100090  poll          sndiod
 70572  144318      1    105  3    0x100090  kqread        radiusd
 12852  140428      1    105  3    0x100092  kqread        radiusd_radius
 28500   97529   4702    105  3    0x100092  netio         radiusd_bsdauth
  4702  324913      1      0  3    0x100082  netio         radiusd_bsdauth
 22349  501733      1      0  3        0x80  select        sshd
 46203  434925      1     28  3    0x100090  poll          portmap
 68194   89129  69610      0  3        0x80  netio         npppd
 69610   96127      1     82  3        0x90  kqread        npppd
 60979   31976  29534     68  3        0x90  select        isakmpd
 29534   71861      1      0  3        0x80  netio         isakmpd
 51667  206803  34742     83  3    0x100092  poll          ntpd
 34742   19090  36236     83  3    0x100092  poll          ntpd
 36236  181028      1      0  3    0x100080  poll          ntpd
 31082   73020   9069     74  3    0x100092  bpf           pflogd
  9069   62174      1      0  3        0x80  netio         pflogd
 37618  135956   9234     73  7    0x100090                syslogd
  9234  389848      1      0  3    0x100082  netio         syslogd
 95502   67625  56591      0  3    0x100083  netio         route
 56591  354908  55701      0  3        0x81  wait          bash
 55701  318233      1      0  3        0x81  piperd        bash
 63140  452330  87455     67  3        0x90  kqread        nginx
 87455  302646      1      0  3        0x88  pause         nginx
 74128   20357      1    631  3        0x90  poll          dnsmasq
 56564  239505      1     77  3    0x100090  poll          dhclient
 76135  326995      1      0  3        0x80  poll          dhclient
 91547  411692  38966    115  3    0x100092  kqread        slaacd
 77740  269931  38966    115  3    0x100092  kqread        slaacd
 38966  486477      1      0  3    0x100080  kqread        slaacd
 57476   66973      0      0  3     0x14200  pgzero        zerothread
 80885  227433      0      0  3     0x14200  aiodoned      aiodoned
 14745  320657      0      0  3     0x14200  syncer        update
 59392  196445      0      0  3     0x14200  cleaner       cleaner
 10494  370860      0      0  3     0x14200  reaper        reaper
 99910  161861      0      0  3     0x14200  pgdaemon      pagedaemon
  1269  191688      0      0  3     0x14200  bored         crynlk
 16227  193405      0      0  3     0x14200  bored         crypto
 19773  345241      0      0  3     0x14200  bored         sensors
 32651  214145      0      0  3     0x14200  mmctsk        sdmmc0
 64761  108048      0      0  3     0x14200  usbtsk        usbtask
 96948  131362      0      0  3     0x14200  usbatsk       usbatsk
  4384  278597      0      0  3  0x40014200  acpi0         acpi0
 21009  225534      0      0  3  0x40014200                idle3
 98098  371202      0      0  3  0x40014200                idle2
 26503  172668      0      0  3  0x40014200                idle1
 97831  493598      0      0  7     0x14200                softnet
 50697  287850      0      0  3     0x14200  bored         systqmp
 78093   98565      0      0  3     0x14200  bored         systq
 28128  204670      0      0  3  0x40014200  bored         softclock
 75603  181468      0      0  3  0x40014200                idle0
 76225  348183      0      0  3     0x14200  bored         smr
     1  491638      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper

ddb{0}> boot
sync        crash       dump        halt        reboot      poweroff
ddb{0}> boot reboot
rebooting...

boot log:
PCEngines apu2
coreboot build 20170228
2032 MB DRAM

SeaBIOS (version rel-1.10.0.1)

Press F10 key now for boot menu

Booting from Hard Disk...
Using drive 0, partition 3.
Loading......
probing: pc0 com0 com1 mem[638K 1918M a20=on]
disk: hd0+
>> OpenBSD/amd64 BOOT 3.43
switching console to com0
>> OpenBSD/amd64 BOOT 3.43
boot>
booting hd0a:/bsd: 10688280+2458640+344096+0+675840
[679018+128+856800+597186]=0xf8e098
entry point at 0x1001000
[ using 2134168 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2019 OpenBSD. All rights reserved.
https://www.OpenBSD.org

OpenBSD 6.5 (GENERIC.MP) #0: Wed Apr 24 23:38:54 CEST 2019
    [hidden email]:/usr/src/sys/arch/amd64/compile/
GENERIC.MP
real mem = 1996152832 (1903MB)
avail mem = 1926078464 (1836MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x77fb7020 (7 entries)
bios0: vendor coreboot version "4.0.7" date 02/28/2017
bios0: PC Engines APU2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S2 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HEST SSDT SSDT HPET
acpi0: wakeup devices PWRB(S4) PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4) PBR8(S4)
UOH1(S3) UOH3(S3) UOH5(S3) XHC0(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD GX-412TC SOC, 998.42 MHz, 16-30-01
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD GX-412TC SOC, 998.12 MHz, 16-30-01
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD GX-412TC SOC, 998.16 MHz, 16-30-01
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu2: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
64b/line 16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu2: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: AMD GX-412TC SOC, 998.12 MHz, 16-30-01
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu3: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
64b/line 16-way L2 cache
cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu3: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 21, 24 pins
ioapic1 at mainbus0: apid 5 pa 0xfec20000, version 21, 32 pins, remapped
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PBR4)
acpiprt2 at acpi0: bus 1 (PBR5)
acpiprt3 at acpi0: bus 2 (PBR6)
acpiprt4 at acpi0: bus 3 (PBR7)
acpiprt5 at acpi0: bus -1 (PBR8)
acpicpu0 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu2 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu3 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpibtn0 at acpi0: PWRB
acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
acpicmos0 at acpi0
cpu0: 998 MHz: speeds: 1000 800 600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 16h Root Complex" rev 0x00
pchb1 at pci0 dev 2 function 0 "AMD AMD64 16h Host" rev 0x00
ppb0 at pci0 dev 2 function 2 "AMD AMD64 16h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 "Intel I211" rev 0x03: msi, address
00:0d:b9:48:2c:50
ppb1 at pci0 dev 2 function 3 "AMD AMD64 16h PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
em1 at pci2 dev 0 function 0 "Intel I211" rev 0x03: msi, address
00:0d:b9:48:2c:51
ppb2 at pci0 dev 2 function 4 "AMD AMD64 16h PCIE" rev 0x00: msi
pci3 at ppb2 bus 3
em2 at pci3 dev 0 function 0 "Intel I211" rev 0x03: msi, address
00:0d:b9:48:2c:52
ccp0 at pci0 dev 8 function 0 "AMD Cryptographic Co-processor v3" rev 0x00
xhci0 at pci0 dev 16 function 0 "AMD Bolton xHCI" rev 0x11: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00
addr 1
ahci0 at pci0 dev 17 function 0 "AMD Hudson-2 SATA" rev 0x40: apic 4 int
19, AHCI 1.3
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, SATA SSD, S9FM> SCSI3 0/direct fixed
t10.ATA_SATA_SSD_FF73074A0F0800757149
sd0: 15272MB, 512 bytes/sector, 31277232 sectors, thin
ehci0 at pci0 dev 19 function 0 "AMD Hudson-2 USB2" rev 0x39: apic 4 int 18
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "AMD EHCI root hub" rev 2.00/1.00
addr 1
piixpm0 at pci0 dev 20 function 0 "AMD Hudson-2 SMBus" rev 0x42: SMBus
disabled
pcib0 at pci0 dev 20 function 3 "AMD Hudson-2 LPC" rev 0x11
sdhc0 at pci0 dev 20 function 7 "AMD Bolton SD/MMC" rev 0x01: apic 4 int 16
sdhc0: SDHC 2.0, 50 MHz base clock
sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed, dma
pchb2 at pci0 dev 24 function 0 "AMD AMD64 16h Link Cfg" rev 0x00
pchb3 at pci0 dev 24 function 1 "AMD AMD64 16h Address Map" rev 0x00
pchb4 at pci0 dev 24 function 2 "AMD AMD64 16h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 16h Misc Cfg" rev 0x00
pchb5 at pci0 dev 24 function 4 "AMD AMD64 16h CPU Power" rev 0x00
pchb6 at pci0 dev 24 function 5 "AMD AMD64 16h Misc Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: NCT5104D rev 0x53
vmm0 at mainbus0: SVM/RVI
uhub2 at uhub1 port 1 configuration 1 interface 0 "Advanced Micro Devices
product 0x7900" rev 2.00/0.18 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (d3244a600c7fc898.a) swap on sd0b dump on sd0b
WARNING: / was not properly unmounted
Automatic boot in progress: starting file system checks.
/dev/sd0a (d3244a600c7fc898.a): 3584 files, 70476 used, 172827 free (275
frags, 21569 blocks, 0.1% fragmentation)
/dev/sd0a (d3244a600c7fc898.a): MARKING FILE SYSTEM CLEAN
/dev/sd0k (d3244a600c7fc898.k): 2918 files, 599646 used, 1546793 free (457
frags, 193292 blocks, 0.0% fragmentation)
/dev/sd0k (d3244a600c7fc898.k): MARKING FILE SYSTEM CLEAN
/dev/sd0d (d3244a600c7fc898.d): 6 files, 5 used, 385306 free (34 frags,
48159 blocks, 0.0% fragmentation)
/dev/sd0d (d3244a600c7fc898.d): MARKING FILE SYSTEM CLEAN
/dev/sd0f (d3244a600c7fc898.f): UNREF FILE  I=52405  OWNER=root MODE=100444
/dev/sd0f: SIZE=3779000 MTIME=May 16 23:57 2019  (RECONNECTED)
/dev/sd0f (d3244a600c7fc898.f): UNREF FILE  I=52406  OWNER=root MODE=100444
/dev/sd0f: SIZE=7646904 MTIME=May 16 23:57 2019  (RECONNECTED)
/dev/sd0f (d3244a600c7fc898.f): UNREF FILE  I=130145  OWNER=root MODE=100444
/dev/sd0f: SIZE=294368 MTIME=May 16 23:57 2019  (RECONNECTED)
/dev/sd0f (d3244a600c7fc898.f): 17275 files, 518659 used, 137924 free (6468
frags, 16432 blocks, 0.0% fragmentation)
/dev/sd0f (d3244a600c7fc898.f): MARKING FILE SYSTEM CLEAN
/dev/sd0g (d3244a600c7fc898.g): 184 files, 184 used, 378711 free (15 frags,
47337 blocks, 0.0% fragmentation)
/dev/sd0g (d3244a600c7fc898.g): MARKING FILE SYSTEM CLEAN
/dev/sd0h (d3244a600c7fc898.h): 15355 files, 260078 used, 1178441 free (225
frags, 147277 blocks, 0.0% fragmentation)
/dev/sd0h (d3244a600c7fc898.h): MARKING FILE SYSTEM CLEAN
/dev/sd0j (d3244a600c7fc898.j): 1 files, 1 used, 816646 free (14 frags,
102079 blocks, 0.0% fragmentation)
/dev/sd0j (d3244a600c7fc898.j): MARKING FILE SYSTEM CLEAN
/dev/sd0i (d3244a600c7fc898.i): 1 files, 1 used, 597342 free (14 frags,
74666 blocks, 0.0% fragmentation)
/dev/sd0i (d3244a600c7fc898.i): MARKING FILE SYSTEM CLEAN
/dev/sd0e (d3244a600c7fc898.e): UNREF FILE  I=54140  OWNER=root MODE=100444
/dev/sd0e: SIZE=5656 MTIME=May 16 23:57 2019  (RECONNECTED)
/dev/sd0e (d3244a600c7fc898.e): 3952 files, 480759 used, 89272 free (624
frags, 11081 blocks, 0.1% fragmentation)
/dev/sd0e (d3244a600c7fc898.e): MARKING FILE SYSTEM CLEAN
pf enabled
ddb.panic: 1 -> 0
kern.pool_debug: 0 -> 0
net.inet.ipcomp.enable: 0 -> 1
net.inet.ip.forwarding: 0 -> 1
net.inet.ip.ifq.maxlen: 2048 -> 768
starting network
em0: no link....
em0: bound to 220.71.62.237 from 222.110.163.254 (00:07:70:f2:69:15)
[#] wireguard-go tun
WARNING WARNING WARNING WARNING WARNING WARNING WARNING
W                                                     G
W   This is alpha software. It will very likely not   G
W   do what it is supposed to do, and things may go   G
W   horribly wrong. You have been warned. Proceed     G
W   at your own risk.                                 G
W                                                     G
WARNING WARNING WARNING WARNING WARNING WARNING WARNING
INFO: (tun0) 2019/05/17 09:16:10 Starting wireguard-go version 0.0.20190409
[+] Interface for wg is tun0
[#] wg setconf tun0 /dev/fd/63
[#] ifconfig tun0 inet 10.0.10.3/24 alias
[#] ifconfig tun0 mtu 1420
[#] ifconfig tun0 up
[#] route -q -n add -inet 10.0.10.5/32 -iface 10.0.10.3
[#] route -q -n add -inet 10.0.10.4/32 -iface 10.0.10.3
[#] route -q -n add -inet 10.0.10.1/32 -iface 10.0.10.3
[#] route -q -n add -inet 10.1.0.0/24 -iface 10.0.10.3
[#] route -q -n add -inet 10.0.3.0/24 -iface 10.0.10.3
[+] Backgrounding route monitor
reordering libraries: done.
starting early daemons: syslogd pflogd ntpd isakmpd npppd.
starting RPC daemons: portmap.
savecore: no core dump
checking quotas: done.
clearing /tmp
kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: sshd radiusd smtpd(failed) sndiod.
starting local daemons: cron.
Fri May 17 09:16:25 KST 2019

OpenBSD/amd64 (moomin.5ml.io) (tty00)

login:
Reply | Threaded
Open this post in threaded view
|

Re: kernel panic with wireguard / ifconfig -A

Stuart Henderson
On 2019/05/17 09:32, Jihyun Yu wrote:
> Hi,
>
> I'm experiencing kernel panic with wireguard and ifconfig. Kernel panics
> with `ifconfig -A` command when wireguard is up. I attached basic output
> (dmesg/ddb output) from the system. The panic is reliably reproducible, so
> please let me know if there's any missing information.

It would probably be useful to have "trace /p 0tXXXXX" where XXXXX is the
TID (not PID) of the ifconfig process; from your previous crash...

> ddb{3}> ps
>    PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
> *24121  166157  25586   1000  7         0x3                ifconfig

...it would be trace /p 0t166157.

> BTW I set `ddb.panic=0` on sysctl.conf but the machine does not reboot
> automatically after panic occurs. Is there any way to reboot the system
> automatically after panic?

There are various conditions that result in entering ddb which aren't
actually a panic, this is one of them.