kernel: protection fault trap, code=0 Stopped at sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace sys_semop(ffff80003a3f4d20,ffff80003c427450,ffff80003c4273a0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c427450) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c427450) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x62a9b04620, count: -3 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003c427370 rbx 0xdeadbeefdeadc04b rdx 0xffff80000158e400 rcx 0xffff80003a3f4d20 rax 0xdeadbeefdeadc04b r8 0x7f7fffffc000 r9 0x1 r10 0x5be484483db17153 r11 0xfaa968f45b1dfddd r12 0 r13 0xfffffd80648dcee0 r14 0xffff80003c427450 r15 0 rip 0xffffffff81d12535 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c427280 ss 0x10 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{1}> show proc PROC (syz-executor) tid=262862 pid=49308 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=82, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003a3f4fb8,0xffff80003a3f5cc0 process=0xffff80002a3c1cf8 user=0xffff80003c422000, vmspace=0xfffffd806be93208 estcpu=33, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 49308 288683 97563 0 3 0x80 nanoslp syz-executor *49308 262862 97563 0 7 0x4000000 syz-executor 49308 61458 97563 0 3 0x4000080 fsleep syz-executor 46604 345423 52851 0 2 0x1 syz-executor 46604 494032 52851 0 2 0x4000001 syz-executor 83333 274237 77855 0 7 0 syz-executor 83333 181134 77855 0 3 0x4000080 sbwait syz-executor 83333 31923 77855 0 3 0x4000080 fsleep syz-executor 22409 282347 66804 0 3 0x80 nanoslp syz-executor 22409 511950 66804 0 3 0x4000080 pppxread syz-executor 22409 519025 66804 0 3 0x4000080 fsleep syz-executor 22409 514728 66804 0 3 0x4000080 fsleep syz-executor 71391 60838 99089 0 3 0x80 nanoslp syz-executor 71391 90130 99089 0 3 0x4000080 sbwait syz-executor 71391 310433 99089 0 3 0x4000080 fsleep syz-executor 31952 94796 39032 0 3 0x100082 sbwait arp 39032 125028 24528 0 3 0x10008a sigsusp sh 74304 140861 21832 0 3 0x82 wait syz-executor 97563 484152 21832 0 3 0x82 nanoslp syz-executor 24528 284286 21832 0 3 0x82 wait syz-executor 52851 232794 21832 0 2 0x3 syz-executor 99089 417322 21832 0 3 0x82 nanoslp syz-executor 31750 239672 21832 0 3 0x82 wait syz-executor 66804 479859 21832 0 3 0x82 nanoslp syz-executor 77855 109544 21832 0 3 0x82 nanoslp syz-executor 21832 396294 50880 0 3 0x82 kqread syz-executor 50880 2978 74494 0 3 0x10008a sigsusp ksh 74494 500689 99383 0 3 0x98 kqread sshd-session 99383 251941 16990 0 3 0x92 kqread sshd-session 87453 380550 1 0 3 0x100083 ttyin getty 16990 497354 1 0 3 0x88 kqread sshd 53681 231386 6738 74 3 0x1100092 bpf pflogd 6738 107591 1 0 3 0x80 sbwait pflogd 26715 382435 42232 73 3 0x1100090 kqread syslogd 42232 280854 1 0 3 0x100082 sbwait syslogd 57283 352670 1 0 3 0x100080 kqread resolvd 96094 176469 67729 77 3 0x100092 kqread dhcpleased 39359 76295 67729 77 3 0x100092 kqread dhcpleased 67729 94812 1 0 3 0x80 kqread dhcpleased 12349 362864 0 0 3 0x14200 bored smr 51336 383255 0 0 3 0x14200 pgzero zerothread 63770 382966 0 0 3 0x14200 aiodoned aiodoned 8410 153467 0 0 3 0x14200 syncer update 92492 24267 0 0 3 0x14200 cleaner cleaner 92262 443350 0 0 3 0x14200 reaper reaper 26051 404516 0 0 3 0x14200 pgdaemon pagedaemon 76864 209110 0 0 3 0x14200 bored viomb 25133 208562 0 0 3 0x40014200 acpi0 acpi0 54580 319412 0 0 3 0x40014200 idle1 2913 361037 0 0 3 0x14200 bored softnet1 99266 144875 0 0 3 0x14200 bored softnet0 80881 28235 0 0 3 0x14200 bored systqmp 45107 390382 0 0 3 0x14200 bored systq 14225 387846 0 0 3 0x14200 tmoslp softclockmp 66433 241037 0 0 3 0x40014200 tmoslp softclock 85032 159366 0 0 3 0x40014200 idle0 1 312840 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 49308 (syz-executor) thread 0xffff80003a3f4d20 (262862) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83988340) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 malloc+0xe3 sys/kern/kern_malloc.c:175 #3 sys_semop+0x22f sys/kern/sysv_sem.c:-1 #4 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #4 syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 #5 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11064 12086K 14244K 166960K 12793 0 pcb 18 13K 13K 166960K 100 0 rtable 205 8K 9K 166960K 500 0 pf 31 17K 21K 166960K 102 0 ifaddr 33 5K 7K 166960K 77 0 ifgroup 47 2K 2K 166960K 124 0 sysctl 4 1K 9K 166960K 10 0 counters 66 36K 37K 166960K 144 0 ioctlops 0 0K 4K 166960K 1665 0 iov 1 12K 16K 166960K 20 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1435 90K 91K 166960K 1797 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 5 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 20 0 dirhash 12 2K 2K 166960K 27 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 19 69K 244K 166960K 560 0 sigio 0 0K 0K 166960K 8 0 proc 72 115K 164K 166960K 577 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 63 0 in_multi 67 5K 6K 166960K 126 0 ether_multi 1 0K 0K 166960K 6 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 109 493K 493K 166960K 109 0 exec 0 0K 1K 166960K 405 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 275 184K 198K 166960K 7064 0 UVM aobj 14 6K 6K 166960K 16 0 pinsyscall 45 90K 110K 166960K 1665 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 1K 166960K 41 0 NDP 10 0K 1K 166960K 50 0 temp 87 8694K 8749K 166960K 22922 0 kqueue 13 20K 28K 166960K 100 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 59 0 54 1 0 1 1 0 8 0 rtentry 176 147 0 62 5 0 5 5 0 8 0 unpcb 144 399 0 380 4 3 1 4 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 104 0 99 1 0 1 1 0 8 0 arp 136 17 0 4 1 0 1 1 0 8 0 inpcb 328 428 0 415 5 3 2 4 0 8 0 nd6 152 23 0 6 1 0 1 1 0 8 0 pkpcb 40 3 0 3 3 2 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1192 29 0 29 1 0 1 1 0 8 1 pppxif 1504 7 0 7 1 0 1 1 0 8 1 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 7 0 2 1 0 1 1 0 482 0 pffrnode 88 5 0 1 1 0 1 1 0 8 0 pffrent 40 11 0 6 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 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 2 0 2 1 1 0 1 0 8 0 pfstkey 128 2 0 2 1 1 0 1 0 8 0 pfstate 448 1 0 1 1 1 0 1 0 8 0 pfrule 1360 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 456 0 123 27 3 24 27 0 8 0 art_table 40 459 0 123 5 0 5 5 0 8 0 art_node 32 147 0 70 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 7 3 2 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 15 0 6 1 0 1 1 0 8 0 shmpl 112 10 0 1 1 0 1 1 0 8 0 dirhash 1024 27 0 10 3 0 3 3 0 8 0 dino2pl 256 2429 0 923 96 0 96 96 0 8 0 ffsino 296 2429 0 923 118 1 117 118 0 8 0 nchpl 144 3183 0 1476 64 0 64 64 0 8 0 rtmask 32 3 0 3 2 1 1 1 0 8 1 vnodes 216 2763 0 0 154 0 154 154 0 8 0 namei 1024 10334 0 10334 3 2 1 2 0 8 1 percpumem 16 87 0 39 1 0 1 1 0 8 0 vcpupl 3968 2 0 0 1 0 1 1 0 8 0 vmpool 848 3 0 1 1 0 1 1 0 8 0 kstatmem 264 74 0 52 3 1 2 3 0 8 0 scsiplug 72 2 0 2 2 1 1 1 0 8 1 scxspl 216 15562 0 15562 10 9 1 8 1 8 1 plimitpl 152 180 0 162 1 0 1 1 0 8 0 sigapl 424 858 0 809 7 1 6 7 0 8 0 knotepl 120 552 0 0 17 0 17 17 0 8 0 kqueuepl 224 219 0 210 1 0 1 1 0 8 0 pipepl 344 146 0 119 3 0 3 3 0 8 0 fdescpl 528 840 0 807 3 0 3 3 0 8 0 filepl 160 4400 0 4167 15 4 11 14 0 8 1 lockfpl 104 142 0 138 1 0 1 1 0 8 0 lockfspl 48 55 0 51 1 0 1 1 0 8 0 sessionpl 144 22 0 13 1 0 1 1 0 8 0 pgrppl 48 36 0 19 1 0 1 1 0 8 0 ucredpl 104 548 0 535 1 0 1 1 0 8 0 zombiepl 144 864 0 862 1 0 1 1 0 8 0 processpl 1232 858 0 809 5 1 4 5 0 8 0 procpl 664 1666 0 1607 6 0 6 6 0 8 0 sosppl 176 5 0 5 2 1 1 1 0 8 1 sockpl 752 897 0 860 11 7 4 11 0 8 0 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 113 0 0 15 0 15 15 0 8 0 mcl2k 2048 34 0 0 4 0 4 4 0 8 0 mtagpl 96 36 0 0 1 0 1 1 0 8 0 mbufpl 256 240 0 0 15 0 15 15 0 8 0 bufpl 280 5893 0 129 412 0 412 412 0 8 0 anonpl 32 9605 0 0 78 0 78 78 0 246 0 amapchunkpl 152 23452 0 22698 41 4 37 37 0 158 5 amappl16 200 3269 0 3235 19 13 6 16 0 8 0 amappl15 192 1 0 1 1 1 0 1 0 8 0 amappl14 184 4 0 4 1 1 0 1 0 8 0 amappl13 176 436 0 434 1 0 1 1 0 8 0 amappl12 168 1195 0 1150 3 0 3 3 0 8 0 amappl11 160 4 0 4 1 1 0 1 0 8 0 amappl10 152 51 0 37 1 0 1 1 0 8 0 amappl9 144 258 0 258 1 1 0 1 0 8 0 amappl8 136 24 0 22 1 0 1 1 0 8 0 amappl7 128 122 0 120 1 0 1 1 0 8 0 amappl6 120 273 0 258 1 0 1 1 0 8 0 amappl5 112 82 0 72 1 0 1 1 0 8 0 amappl4 104 420 0 387 1 0 1 1 0 8 0 amappl3 96 3821 0 3714 4 1 3 3 0 8 0 amappl2 88 955 0 876 2 0 2 2 0 8 0 amappl1 80 10753 0 10130 15 0 15 15 0 8 0 amappl 88 6294 0 6104 5 0 5 5 0 92 0 uvmvnodes 80 112 0 0 3 0 3 3 0 8 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 8 0 8 2 2 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 15 0 2 1 0 1 1 0 8 0 uaddrrnd 24 840 0 807 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 840 0 807 1 0 1 1 0 8 0 vmmpekpl 168 8557 0 8524 2 0 2 2 0 8 0 vmmpepl 168 60598 0 58552 102 12 90 100 0 357 0 vmsppl 488 839 0 807 5 0 5 5 0 8 0 rwobjpl 80 19327 0 18194 28 0 28 28 0 8 0 pdppl 4096 1694 0 1618 104 27 77 88 0 8 1 pvpl 32 16753 0 0 137 1 136 136 0 265 0 pmappl 256 842 0 808 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 283 0 37 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff8389eff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83987b40) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83987b40) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x7d76acf39ae0, count: -7 ddb{0}> machine ddbcpu 1 Stopped at sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{1}> trace sys_semop(ffff80003a3f4d20,ffff80003c427450,ffff80003c4273a0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c427450) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c427450) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x62a9b04620, count: -3