kernel: integer divide fault trap, code=0 Stopped at rc4_keysetup+0xaf: divl 0xffffffffffffffac(%rbp),%eax ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace rc4_keysetup(ffff800021267e0a,ffff800021267f1c,0) at rc4_keysetup+0xaf sys/crypto/arc4.c:41 pipex_mppe_init(ffff800021267dd0,ffffec67,35a8,ffff800000ba266c,ffffec67) at pipex_mppe_init+0x212 sys/net/pipex.c:2319 pipex_init_session(ffff8000212d67e8,ffff800000ba2400) at pipex_init_session+0x5e1 pipex_session_init_mppe_recv sys/net/pipex.c:2327 [inline] pipex_init_session(ffff8000212d67e8,ffff800000ba2400) at pipex_init_session+0x5e1 sys/net/pipex.c:385 pppacioctl(4086334,82907003,ffff800000ba2400,1,ffff8000212787e0) at pppacioctl+0x156 pppac_add_session sys/net/if_pppx.c:1315 [inline] pppacioctl(4086334,82907003,ffff800000ba2400,1,ffff8000212787e0) at pppacioctl+0x156 sys/net/if_pppx.c:1165 VOP_IOCTL(fffffd806ed18440,82907003,ffff800000ba2400,1,fffffd807f7d79c0,ffff8000212787e0) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806e5d70a8,82907003,ffff800000ba2400,ffff8000212787e0) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:525 sys_ioctl(ffff8000212787e0,ffff8000212d6b38,ffff8000212d6b80) at sys_ioctl+0x4a2 syscall(ffff8000212d6c00) at syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff8000212d6c00) at syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbef30, count: -9 ddb{0}> show registers rdi 0xffff800021267e0a rsi 0 rbp 0xffff8000212d6670 rbx 0 rdx 0 rcx 0 rax 0x1 r8 0x60 r9 0x2f2d33bf r10 0x9d4acf1a342f3e40 r11 0x7bc5ae1f9ca1950c r12 0xffff800021267f1c r13 0 r14 0xffff800021267e0a r15 0 rip 0xffffffff8187a46f rc4_keysetup+0xaf cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff8000212d6610 ss 0x10 rc4_keysetup+0xaf: divl 0xffffffffffffffac(%rbp),%eax ddb{0}> show proc PROC (syz-executor2056741871) pid=308989 stat=onproc flags process=2 proc=0 pri=51, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800021278a80,0xffffffff82a6df58 process=0xffff8000ffff8858 user=0xffff8000212d1000, vmspace=0xfffffd8076717738 estcpu=2, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *42288 308989 54143 0 7 0x2 syz-executor2056741871 54143 428242 93090 0 3 0x10008a sigsusp ksh 93090 402276 83537 0 3 0x9a kqread sshd 71931 330527 1 0 3 0x100083 ttyin getty 83537 6669 1 0 3 0x88 kqread sshd 60397 346670 66612 74 7 0x1100492 pflogd 66612 259960 1 0 3 0x80 netio pflogd 67187 499892 19579 73 3 0x1100090 kqread syslogd 19579 330942 1 0 3 0x100082 netio syslogd 41 90405 1 0 3 0x100080 kqread resolvd 28372 128054 28480 77 3 0x100092 kqread dhcpleased 32446 329247 28480 77 3 0x100092 kqread dhcpleased 28480 300080 1 0 3 0x80 kqread dhcpleased 19022 165088 0 0 3 0x14200 bored smr 64491 480191 0 0 3 0x14200 pgzero zerothread 67827 497525 0 0 3 0x14200 aiodoned aiodoned 9334 19378 0 0 3 0x14200 syncer update 74983 306584 0 0 3 0x14200 cleaner cleaner 22153 476584 0 0 3 0x14200 reaper reaper 62116 57718 0 0 3 0x14200 pgdaemon pagedaemon 8165 215413 0 0 3 0x14200 bored viomb 98173 199490 0 0 3 0x40014200 acpi0 acpi0 89935 509889 0 0 3 0x40014200 idle1 13470 77874 0 0 3 0x14200 bored softnet 47573 309913 0 0 3 0x14200 bored softnet 73 209402 0 0 3 0x14200 bored softnet 4593 362660 0 0 3 0x14200 bored softnet 14660 193257 0 0 3 0x14200 bored systqmp 24788 233545 0 0 3 0x14200 bored systq 6343 328483 0 0 3 0x40014200 bored softclock 31150 501796 0 0 3 0x40014200 idle0 1 36911 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 42288 (syz-executor2056741871) thread 0xffff8000212787e0 (308989) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82ad7058) #0 witness_lock+0x44d #1 vn_ioctl+0x41 sys/kern/vfs_vnops.c:508 #2 sys_ioctl+0x4a2 #3 syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline] #3 syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585 #4 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10158 6457K 6457K 78643K 11248 0 pcb 13 8K 8K 78643K 13 0 rtable 58 1K 2K 78643K 115 0 ifaddr 34 8K 8K 78643K 37 0 counters 44 34K 34K 78643K 44 0 ioctlops 1 1K 4K 78643K 1480 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1168 73K 73K 78643K 1181 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 1 0K 0K 78643K 1 0 proc 67 91K 91K 78643K 282 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 11 0K 0K 78643K 11 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 25 122K 122K 78643K 25 0 exec 0 0K 2K 78643K 451 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 62K 78643K 8 0 UVM amap 57 3K 5K 78643K 1564 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 5 0K 0K 78643K 5 0 temp 25 4709K 4773K 78643K 2594 0 kqueue 11 16K 18K 78643K 24 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 21 0 18 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 144 35 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 1 0 1 1 0 8 1 tcpcb 768 8 0 5 1 0 1 1 0 8 0 arp 120 2 0 0 1 0 1 1 0 8 0 inpcb 368 32 0 26 1 0 1 1 0 8 0 mppekey 1024 1 0 0 1 0 1 1 0 8 0 ppxss 1256 2 0 0 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 8 0 0 1 0 1 1 0 8 0 pfstkey 120 8 0 0 1 0 1 1 0 8 0 pfstate 336 8 0 0 1 0 1 1 0 8 0 pfrule 1360 21 0 15 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 96 0 0 6 0 6 6 0 8 0 art_table 32 97 0 0 1 0 1 1 0 8 0 art_node 16 22 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1426 0 40 87 0 87 87 0 8 0 ffsino 272 1426 0 40 93 0 93 93 0 8 0 nchpl 144 1612 0 48 58 0 58 58 0 8 0 uvmvnodes 80 1436 0 0 30 0 30 30 0 8 0 vnodes 216 1436 0 0 80 0 80 80 0 8 0 namei 1024 4447 0 4447 1 0 1 1 0 8 1 percpumem 16 34 0 0 1 0 1 1 0 8 0 kstatmem 264 10 0 0 1 0 1 1 0 8 0 scxspl 216 3788 0 3788 2 0 2 2 0 8 2 plimitpl 152 16 0 9 1 0 1 1 0 8 0 sigapl 424 334 0 302 5 0 5 5 0 8 0 knotepl 120 48 0 0 2 0 2 2 0 8 0 kqueuepl 216 20 0 13 1 0 1 1 0 8 0 pipepl 320 90 0 87 1 0 1 1 0 8 0 fdescpl 496 317 0 302 3 0 3 3 0 8 0 filepl 152 1207 0 1148 3 0 3 3 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 104 69 0 57 1 0 1 1 0 8 0 zombiepl 144 302 0 302 1 0 1 1 0 8 1 processpl 1064 334 0 302 3 0 3 3 0 8 0 procpl 672 334 0 302 4 0 4 4 0 8 0 sockpl 488 88 0 64 4 0 4 4 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 82 0 0 11 0 11 11 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 136 0 0 9 0 9 9 0 8 0 bufpl 288 1989 0 85 136 0 136 136 0 8 0 anonpl 24 37838 0 35852 15 1 14 15 0 186 1 amapchunkpl 152 2797 0 2700 6 1 5 6 0 158 0 amappl16 200 32 0 31 1 0 1 1 0 8 0 amappl15 192 71 0 67 1 0 1 1 0 8 0 amappl13 176 35 0 33 1 0 1 1 0 8 0 amappl12 168 3 0 3 1 0 1 1 0 8 1 amappl11 160 66 0 49 1 0 1 1 0 8 0 amappl10 152 2 0 1 1 0 1 1 0 8 0 amappl9 144 472 0 470 1 0 1 1 0 8 0 amappl8 136 381 0 380 1 0 1 1 0 8 0 amappl7 128 66 0 59 1 0 1 1 0 8 0 amappl6 120 95 0 89 1 0 1 1 0 8 0 amappl5 112 95 0 82 1 0 1 1 0 8 0 amappl4 104 650 0 631 1 0 1 1 0 8 0 amappl3 96 474 0 449 1 0 1 1 0 8 0 amappl2 88 328 0 299 1 0 1 1 0 8 0 amappl1 80 9780 0 9365 11 1 10 11 0 8 0 amappl 88 1272 0 1232 2 0 2 2 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 318 0 303 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 318 0 303 1 0 1 1 0 8 0 vmmpekpl 168 6349 0 6327 1 0 1 1 0 8 0 vmmpepl 168 27775 0 26918 49 2 47 49 0 357 5 vmsppl 368 317 0 303 2 0 2 2 0 8 0 rwobjpl 56 9859 0 7853 30 0 30 30 0 8 1 pdppl 4096 643 0 606 63 26 37 49 0 8 0 pvpl 32 129620 0 125660 42 2 40 42 0 265 5 pmappl 248 317 0 303 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 423 0 28 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace rc4_keysetup(ffff800021267e0a,ffff800021267f1c,0) at rc4_keysetup+0xaf sys/crypto/arc4.c:41 pipex_mppe_init(ffff800021267dd0,ffffec67,35a8,ffff800000ba266c,ffffec67) at pipex_mppe_init+0x212 sys/net/pipex.c:2319 pipex_init_session(ffff8000212d67e8,ffff800000ba2400) at pipex_init_session+0x5e1 pipex_session_init_mppe_recv sys/net/pipex.c:2327 [inline] pipex_init_session(ffff8000212d67e8,ffff800000ba2400) at pipex_init_session+0x5e1 sys/net/pipex.c:385 pppacioctl(4086334,82907003,ffff800000ba2400,1,ffff8000212787e0) at pppacioctl+0x156 pppac_add_session sys/net/if_pppx.c:1315 [inline] pppacioctl(4086334,82907003,ffff800000ba2400,1,ffff8000212787e0) at pppacioctl+0x156 sys/net/if_pppx.c:1165 VOP_IOCTL(fffffd806ed18440,82907003,ffff800000ba2400,1,fffffd807f7d79c0,ffff8000212787e0) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806e5d70a8,82907003,ffff800000ba2400,ffff8000212787e0) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:525 sys_ioctl(ffff8000212787e0,ffff8000212d6b38,ffff8000212d6b80) at sys_ioctl+0x4a2 syscall(ffff8000212d6c00) at syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff8000212d6c00) at syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbef30, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020dd8ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82ad6e50) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82ad6e50) at __mp_lock+0x122 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff82ad6e50,1) at __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 mi_switch() at mi_switch+0x3bb sys/kern/sched_bsd.c:415 sleep_finish(ffff8000212ca818,1) at sleep_finish+0x180 sys/kern/kern_synch.c:417 msleep(ffff800000bbf400,ffff800000bbf408,11a,ffffffff82631c75,33) at msleep+0x103 sys/kern/kern_synch.c:257 bpfread(21700,ffff8000212cab78,0) at bpfread+0x252 spec_read(ffff8000212ca9d0) at spec_read+0xf9 sys/kern/spec_vnops.c:215 VOP_READ(fffffd806e5e1638,ffff8000212cab78,0,fffffd807f7d7a28) at VOP_READ+0xbf sys/kern/vfs_vops.c:227 vn_read(fffffd806e5d7730,ffff8000212cab78,0) at vn_read+0x126 sys/kern/vfs_vnops.c:369 dofilereadv(ffff8000ffff6010,4,ffff8000212cab78,0,ffff8000212cac60) at dofilereadv+0x19e sys/kern/sys_generic.c:247 sys_read(ffff8000ffff6010,ffff8000212cac10,ffff8000212cac60) at sys_read+0x83 sys/kern/sys_generic.c:167 syscall(ffff8000212cace0) at syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff8000212cace0) at syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffede00, count: -16 ddb{1}>