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(ffff80002e49de1a,ffff80002e49df2c,0) at rc4_keysetup+0xaf sys/crypto/arc4.c:41 pipex_mppe_init(ffff80002e49dde0,ffffdc60,6c59,ffff800000cdf26c,ffffdc60) at pipex_mppe_init+0x212 sys/net/pipex.c:2319 pipex_init_session(ffff8000212ffea8,ffff800000cdf000) at pipex_init_session+0x5e1 pipex_session_init_mppe_recv sys/net/pipex.c:2327 [inline] pipex_init_session(ffff8000212ffea8,ffff800000cdf000) at pipex_init_session+0x5e1 sys/net/pipex.c:385 pppacioctl(4486337,82907003,ffff800000cdf000,1,ffff80002131c000) at pppacioctl+0x156 pppac_add_session sys/net/if_pppx.c:1315 [inline] pppacioctl(4486337,82907003,ffff800000cdf000,1,ffff80002131c000) at pppacioctl+0x156 sys/net/if_pppx.c:1165 VOP_IOCTL(fffffd807328fc08,82907003,ffff800000cdf000,1,fffffd807f7d7548,ffff80002131c000) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd807a6b7870,82907003,ffff800000cdf000,ffff80002131c000) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002131c000,ffff8000213001f8,ffff800021300240) at sys_ioctl+0x4a2 syscall(ffff8000213002c0) at syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff8000213002c0) at syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfaaa84c4d10, count: -9 ddb{0}> show registers rdi 0xffff80002945d000 rsi 0 rbp 0xffff8000212ffd30 rbx 0 rdx 0 rcx 0 rax 0x1 r8 0x60 r9 0x2f2d33bf r10 0xb2aa07e15702c6a3 r11 0x96beb8a64a76352e r12 0xffff80002e49df2c r13 0 r14 0xffff80002e49de1a r15 0 rip 0xffffffff818d060f rc4_keysetup+0xaf cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff8000212ffcd0 ss 0x10 rc4_keysetup+0xaf: divl 0xffffffffffffffac(%rbp),%eax ddb{0}> show proc PROC (syz-executor.0) pid=337876 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff80002131cfc0,0xffff80002130e800 process=0xffff800027c2e9a8 user=0xffff8000212fb000, vmspace=0xfffffd807dca08b8 estcpu=33, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 32937 159078 77712 0 2 0 syz-executor.2 32937 471915 77712 0 3 0x4000080 fsleep syz-executor.2 5461 223652 38453 0 3 0x80 nanoslp syz-executor.4 5461 192870 38453 0 3 0x4000080 fsleep syz-executor.4 15662 367866 14677 0 2 0 syz-executor.6 15662 485851 14677 0 3 0x4000080 fsleep syz-executor.6 54028 521670 1711 0 2 0 syz-executor.0 *54028 337876 1711 0 7 0x4000000 syz-executor.0 21124 240894 41684 0 2 0 syz-executor.7 21124 127899 41684 0 3 0x4000080 fsleep syz-executor.7 41684 262382 28268 0 3 0x82 nanoslp syz-executor.7 14677 492361 28268 0 2 0x482 syz-executor.6 44537 341013 1 0 3 0x100083 ttyin getty 85987 184702 28268 0 3 0x82 nanoslp syz-executor.5 77712 5615 28268 0 2 0x482 syz-executor.2 87071 340981 28268 0 2 0x482 syz-executor.3 38453 232872 28268 0 2 0x482 syz-executor.4 1711 155965 28268 0 3 0x82 nanoslp syz-executor.0 31507 309028 28268 0 3 0x82 nanoslp syz-executor.1 24078 218763 0 0 3 0x14200 bored sosplice 28268 288958 90122 0 3 0x82 thrsleep syz-fuzzer 28268 165249 90122 0 3 0x4000082 thrsleep syz-fuzzer 28268 515669 90122 0 3 0x4000082 wait syz-fuzzer 28268 386576 90122 0 3 0x4000082 thrsleep syz-fuzzer 28268 386393 90122 0 3 0x4000082 thrsleep syz-fuzzer 28268 388778 90122 0 3 0x4000082 wait syz-fuzzer 28268 477248 90122 0 3 0x4000082 thrsleep syz-fuzzer 28268 501124 90122 0 3 0x4000082 thrsleep syz-fuzzer 28268 203948 90122 0 3 0x4000082 wait syz-fuzzer 28268 356931 90122 0 3 0x4000082 thrsleep syz-fuzzer 28268 280822 90122 0 3 0x4000082 wait syz-fuzzer 28268 338221 90122 0 3 0x4000082 wait syz-fuzzer 28268 146249 90122 0 3 0x4000082 kqread syz-fuzzer 28268 160035 90122 0 3 0x4000082 wait syz-fuzzer 28268 3362 90122 0 3 0x4000082 wait syz-fuzzer 28268 256882 90122 0 3 0x4000082 wait syz-fuzzer 90122 90470 7288 0 3 0x10008a sigsusp ksh 7288 187382 59632 0 3 0x9a kqread sshd 59632 139847 1 0 3 0x88 kqread sshd 1436 225750 77771 74 3 0x1100092 bpf pflogd 77771 84977 1 0 3 0x80 netio pflogd 65465 307939 25600 73 3 0x1100090 kqread syslogd 25600 346972 1 0 3 0x100082 netio syslogd 1582 401515 1 0 3 0x100080 kqread resolvd 73554 509522 42141 77 3 0x100092 kqread dhcpleased 23759 340948 42141 77 3 0x100092 kqread dhcpleased 42141 366409 1 0 3 0x80 kqread dhcpleased 70683 2768 0 0 3 0x14200 bored smr 86885 94705 0 0 2 0x14200 zerothread 21840 262425 0 0 3 0x14200 aiodoned aiodoned 8991 400582 0 0 3 0x14200 syncer update 51893 53697 0 0 3 0x14200 cleaner cleaner 97560 84487 0 0 3 0x14200 reaper reaper 53143 276030 0 0 3 0x14200 pgdaemon pagedaemon 28849 53591 0 0 3 0x14200 bored viomb 72300 480577 0 0 3 0x40014200 acpi0 acpi0 10122 266755 0 0 7 0x40014200 idle1 46958 359779 0 0 3 0x14200 bored softnet 47851 342884 0 0 3 0x14200 bored softnet 31545 440503 0 0 3 0x14200 bored softnet 69052 383914 0 0 3 0x14200 bored softnet 95390 276949 0 0 3 0x14200 bored systqmp 557 119995 0 0 3 0x14200 bored systq 35424 418331 0 0 2 0x40014200 softclock 45057 231902 0 0 3 0x40014200 idle0 1 293156 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 54028 (syz-executor.0) thread 0xffff80002131c000 (337876) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82a3bb58) #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 10227 6581K 8277K 78643K 43669 0 pcb 15 18K 20K 78643K 4160 0 rtable 172 17K 19K 78643K 2798 0 ifaddr 105 22K 25K 78643K 1112 0 sysctl 2 0K 1K 78643K 11 0 counters 58 35K 36K 78643K 458 0 ioctlops 1 1K 4K 78643K 5524 0 iov 0 0K 28K 78643K 1638 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1695 106K 106K 78643K 10555 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 458 0 VM map 2 1K 1K 78643K 2 0 sem 18 10K 12K 78643K 236 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 15 53K 89K 78643K 18182 0 sigio 0 0K 0K 78643K 267 0 proc 73 91K 128K 78643K 2896 0 subproc 104 6K 6K 78643K 845 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1101 0 in_multi 66 4K 7K 78643K 1016 0 ether_multi 1 0K 0K 78643K 74 0 mrt 1 0K 0K 78643K 23 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 91 413K 413K 78643K 91 0 exec 0 0K 2K 78643K 3854 0 pfkey data 0 0K 0K 78643K 67 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 546 1090K 1091K 78643K 106962 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 376 0 NDP 18 0K 1K 78643K 355 0 temp 153 4727K 70263K 78643K 220769 0 kqueue 12 18K 26K 78643K 1252 0 SYN cache 2 16K 24K 78643K 3 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 1082 0 1079 11 10 1 3 0 8 0 rtentry 112 928 0 865 4 1 3 4 0 8 0 unpcb 144 43960 0 43941 218 212 6 13 0 8 5 syncache 296 47 0 47 15 15 0 1 0 8 0 tcpqe 32 676 0 676 6 6 0 1 0 8 0 tcpcb 768 8750 0 8745 240 233 7 18 0 8 6 arp 120 143 0 131 1 0 1 1 0 8 0 inpcb 368 19255 0 19246 264 258 6 13 0 8 5 nd6 48 231 0 216 1 0 1 1 0 8 0 pkpcb 40 117 0 117 14 14 0 1 0 8 0 kcovpl 48 65 0 57 1 0 1 1 0 8 0 mppekey 1024 1 0 0 1 0 1 1 0 8 0 ppxss 1256 94 0 92 19 18 1 1 0 8 0 pffrag 232 267 0 264 7 6 1 1 0 482 0 pffrnode 88 258 0 255 7 6 1 1 0 8 0 pffrent 40 695 0 692 7 6 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 pfrktable 1344 15 0 13 1 0 1 1 0 8 0 pfanchor 1280 2 0 1 1 0 1 1 0 8 0 pftag 88 3 0 2 1 0 1 1 0 8 0 pfstitem 24 812 0 775 2 1 1 2 0 8 0 pfstkey 120 812 0 775 8 6 2 7 0 8 0 pfstate 336 812 0 775 25 20 5 19 0 8 0 pfsrctr 152 16 0 16 13 13 0 1 0 8 0 pfrule 1360 26 0 18 2 1 1 2 0 8 0 rttmr 136 3 0 3 1 1 0 1 0 8 0 art_heap8 4096 4 0 3 3 2 1 2 0 8 0 art_heap4 256 4476 0 4159 61 36 25 32 0 8 1 art_table 32 4480 0 4162 5 1 4 5 0 8 0 art_node 16 927 0 870 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 11 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 224 0 208 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 23314 0 21818 94 0 94 94 0 8 0 ffsino 272 23314 0 21818 100 0 100 100 0 8 0 nchpl 144 46775 0 45125 63 0 63 63 0 8 0 rtmask 32 3 0 3 1 1 0 1 0 8 0 uvmvnodes 80 6454 0 0 132 0 132 132 0 8 0 vnodes 216 6454 0 0 359 0 359 359 0 8 0 namei 1024 160406 0 160406 8 7 1 2 0 8 1 percpumem 16 241 0 200 1 0 1 1 0 8 0 vcpupl 2048 342 0 0 43 0 43 43 0 8 0 vmpool 568 374 0 32 28 3 25 25 0 8 0 pfiaddrpl 120 6 0 3 1 0 1 1 0 8 0 kstatmem 264 406 0 370 3 0 3 3 0 8 0 scsiplug 72 13 0 13 3 3 0 1 0 8 0 scxspl 216 143310 0 143310 36 35 1 8 0 8 1 plimitpl 152 2193 0 2178 1 0 1 1 0 8 0 sigapl 424 18400 0 18351 11 5 6 8 0 8 0 futexpl 64 153522 0 153518 6 5 1 1 0 8 0 knotepl 120 1209 0 0 21 1 20 20 0 8 0 kqueuepl 216 3219 0 3211 60 59 1 5 0 8 0 pipepl 320 3259 0 3230 85 82 3 8 0 8 0 fdescpl 496 18361 0 18333 8 4 4 5 0 8 0 filepl 152 140070 0 139818 245 226 19 24 0 8 8 lockfpl 104 6655 0 6653 7 6 1 2 0 8 0 lockfspl 48 1493 0 1491 1 0 1 1 0 8 0 sessionpl 144 83 0 66 1 0 1 1 0 8 0 pgrppl 48 214 0 197 1 0 1 1 0 8 0 ucredpl 104 11913 0 11901 1 0 1 1 0 8 0 zombiepl 144 18354 0 18351 1 0 1 1 0 8 0 processpl 1064 18400 0 18351 5 0 5 5 0 8 0 procpl 672 50941 0 50872 23 15 8 10 0 8 0 srpgc 96 83 0 83 22 22 0 1 0 8 0 sosppl 168 117 0 117 21 21 0 1 0 8 0 sockpl 488 64475 0 64444 1526 1514 12 45 0 8 8 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 16 0 0 2 0 2 2 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 34 0 0 3 1 2 2 0 8 0 mcl8k 8192 43 0 0 4 1 3 3 0 8 0 mcl4k 4096 33 0 0 5 2 3 3 0 8 0 mcl2k2 2112 11 0 0 1 0 1 1 0 8 0 mcl2k 2048 515 0 0 49 12 37 49 0 8 0 mtagpl 96 1046 0 0 18 0 18 18 0 8 0 mbufpl 256 7611 0 0 452 1 451 451 0 8 0 bufpl 288 31656 0 25197 462 0 462 462 0 8 0 anonpl 24 3598596 0 3579826 402 258 144 178 0 186 5 amapchunkpl 152 309477 0 308635 119 82 37 60 0 158 0 amappl16 200 50357 0 49660 210 168 42 50 0 8 1 amappl15 192 4493 0 4487 1 0 1 1 0 8 0 amappl14 184 4124 0 4116 1 0 1 1 0 8 0 amappl13 176 1594 0 1592 1 0 1 1 0 8 0 amappl12 168 2012 0 2004 1 0 1 1 0 8 0 amappl11 160 2199 0 2176 3 2 1 2 0 8 0 amappl10 152 2910 0 2901 1 0 1 1 0 8 0 amappl9 144 2403 0 2399 1 0 1 1 0 8 0 amappl8 136 3610 0 3451 7 1 6 6 0 8 0 amappl7 128 1926 0 1904 1 0 1 1 0 8 0 amappl6 120 2510 0 2484 2 1 1 2 0 8 0 amappl5 112 16707 0 16685 1 0 1 1 0 8 0 amappl4 104 7130 0 7091 5 3 2 2 0 8 0 amappl3 96 56549 0 56503 3 1 2 2 0 8 0 amappl2 88 3273 0 3231 2 0 2 2 0 8 0 amappl1 80 453742 0 453084 26 10 16 20 0 8 0 amappl 88 104940 0 104680 8 1 7 7 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 18735 0 18365 3 0 3 3 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 18735 0 18365 3 0 3 3 0 8 0 vmmpekpl 168 131216 0 131117 5 0 5 5 0 8 0 vmmpepl 168 1792955 0 1789591 450 282 168 180 0 357 6 vmsppl 368 18734 0 18365 36 2 34 34 0 8 0 rwobjpl 56 440473 0 431991 148 24 124 125 0 8 0 pdppl 4096 37477 0 37072 1212 801 411 413 0 8 6 pvpl 32 7049492 0 7029237 656 446 210 311 0 265 9 pmappl 248 18734 0 18365 24 0 24 24 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2851 0 1163 49 0 49 49 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace rc4_keysetup(ffff80002e49de1a,ffff80002e49df2c,0) at rc4_keysetup+0xaf sys/crypto/arc4.c:41 pipex_mppe_init(ffff80002e49dde0,ffffdc60,6c59,ffff800000cdf26c,ffffdc60) at pipex_mppe_init+0x212 sys/net/pipex.c:2319 pipex_init_session(ffff8000212ffea8,ffff800000cdf000) at pipex_init_session+0x5e1 pipex_session_init_mppe_recv sys/net/pipex.c:2327 [inline] pipex_init_session(ffff8000212ffea8,ffff800000cdf000) at pipex_init_session+0x5e1 sys/net/pipex.c:385 pppacioctl(4486337,82907003,ffff800000cdf000,1,ffff80002131c000) at pppacioctl+0x156 pppac_add_session sys/net/if_pppx.c:1315 [inline] pppacioctl(4486337,82907003,ffff800000cdf000,1,ffff80002131c000) at pppacioctl+0x156 sys/net/if_pppx.c:1165 VOP_IOCTL(fffffd807328fc08,82907003,ffff800000cdf000,1,fffffd807f7d7548,ffff80002131c000) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd807a6b7870,82907003,ffff800000cdf000,ffff80002131c000) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002131c000,ffff8000213001f8,ffff800021300240) at sys_ioctl+0x4a2 syscall(ffff8000213002c0) at syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff8000213002c0) at syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfaaa84c4d10, 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 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020dd8ff0) at sched_idle+0x417 sys/kern/kern_sched.c:175 end trace frame: 0x0, count: -5