kernel: protection fault trap, code=0 Stopped at sys_semop+0x45b: movzwl 0(%rax),%r15d ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace sys_semop(ffff8000ffffc008,ffff8000320ae3c0,ffff8000320ae310) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff8000320ae3c0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff8000320ae3c0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb6fef31b880, count: -3 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff8000320ae2e0 rbx 0 rdx 0 rcx 0xffff8000ffffc008 rax 0xdeafbeaddeafbead r8 0x7f7fffffc000 r9 0 r10 0x538b3470a616bc92 r11 0x888520076dc7f49d r12 0xffff8000014be104 r13 0 r14 0xffff8000320ae3c0 r15 0 rip 0xffffffff8150e52b sys_semop+0x45b cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff8000320ae1c0 ss 0x10 sys_semop+0x45b: movzwl 0(%rax),%r15d ddb{0}> show proc PROC (syz-executor) tid=428531 pid=29610 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffffc298,0xffff8000368bc7e8 process=0xffff80003c4f4260 user=0xffff8000320a9000, vmspace=0xfffffd806be421e0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 24895 487599 77301 0 2 0 syz-executor 29610 359039 79686 0 7 0 syz-executor *29610 428531 79686 0 7 0x4000000 syz-executor 29610 379466 79686 0 2 0x4000000 syz-executor 29610 7733 79686 0 2 0x4000000 syz-executor 77059 100450 73158 0 2 0 syz-executor 77059 328697 73158 0 3 0x4000080 sbwait syz-executor 99082 151096 7865 0 2 0x1000000 syz-executor 99082 9413 7865 0 3 0x5000080 fsleep syz-executor 76683 199310 48616 60928 3 0x90 nanoslp syz-executor 76683 449165 48616 60928 3 0x4000090 kqpoll syz-executor 76683 314618 48616 60928 3 0x4000090 kqpoll syz-executor 93100 217657 0 0 3 0x14200 acct acct 73158 137475 3643 0 3 0x82 nanoslp syz-executor 7865 344241 3643 0 3 0x82 nanoslp syz-executor 81468 319405 1 0 3 0x100083 ttyin getty 22006 315796 0 0 3 0x14200 bored sosplice 83087 497231 26902 0 3 0x100082 sbwait arp 26902 207877 22862 0 3 0x10008a sigsusp sh 77301 500240 3643 0 3 0x82 nanoslp syz-executor 46891 400759 3643 0 3 0x82 nanoslp syz-executor 79686 212532 3643 0 3 0x82 nanoslp syz-executor 22862 453651 3643 0 3 0x82 wait syz-executor 48616 312566 3643 0 3 0x82 nanoslp syz-executor 24969 181675 3643 0 3 0x82 wait syz-executor 3643 460607 33361 0 2 0x2 syz-executor 33361 471665 50852 0 3 0x10008a sigsusp ksh 50852 213599 87149 0 3 0x98 kqread sshd-session 87149 119799 93508 0 3 0x92 kqread sshd-session 93508 219536 1 0 3 0x88 kqread sshd 99861 328373 6680 74 3 0x1100092 bpf pflogd 6680 361027 1 0 3 0x80 sbwait pflogd 95098 158146 21168 73 3 0x1100090 kqread syslogd 21168 107115 1 0 3 0x100082 sbwait syslogd 66729 353840 1 0 3 0x100080 kqread resolvd 38350 264447 26820 77 3 0x100092 kqread dhcpleased 5701 348389 26820 77 3 0x100092 kqread dhcpleased 26820 425432 1 0 3 0x80 kqread dhcpleased 9365 19380 0 0 3 0x14200 bored smr 44137 482278 0 0 2 0x14200 zerothread 21722 373323 0 0 3 0x14200 aiodoned aiodoned 18168 231194 0 0 3 0x14200 syncer update 60384 200629 0 0 3 0x14200 cleaner cleaner 58433 509412 0 0 3 0x14200 reaper reaper 54077 50250 0 0 3 0x14200 pgdaemon pagedaemon 45857 45359 0 0 3 0x14200 bored viomb 49560 191739 0 0 3 0x40014200 acpi0 acpi0 56415 522019 0 0 3 0x40014200 idle1 46206 121068 0 0 3 0x14200 bored softnet3 97345 251619 0 0 3 0x14200 bored softnet2 52739 227340 0 0 3 0x14200 bored softnet1 63448 327501 0 0 2 0x14200 softnet0 22845 375479 0 0 3 0x14200 bored systqmp 88367 64817 0 0 3 0x14200 bored systq 1291 186582 0 0 3 0x14200 tmoslp softclockmp 19592 376647 0 0 3 0x40014200 tmoslp softclock 28663 370657 0 0 3 0x40014200 idle0 1 420375 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 29610 (syz-executor) thread 0xffff8000ffffc008 (428531) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff838b9d58) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 __mp_acquire_count+0x58 #2 mi_switch+0x4b7 sys/kern/sched_bsd.c:441 #3 yield+0x6a sys/kern/sched_bsd.c:320 #4 malloc+0xe5 sys/kern/kern_malloc.c:174 #5 sys_semop+0x234 sys/kern/sysv_sem.c:564 #6 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 Process 29610 (syz-executor) thread 0xffff8000368bc7d8 (379466) exclusive rwlock futex r = 0 (0xffffffff838574f8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_do_enter_write+0x3ea sys/kern/kern_rwlock.c:316 #2 sys_futex+0x69 sys/kern/sys_futex.c:98 #3 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #3 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577 #4 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10201 11038K 11612K 166960K 13378 0 pcb 17 12K 12K 166960K 177 0 rtable 194 7K 8K 166960K 533 0 pf 37 18K 19K 166960K 124 0 ifaddr 37 6K 7K 166960K 89 0 ifgroup 56 2K 2K 166960K 143 0 sysctl 3 1K 1K 166960K 4 0 counters 64 36K 37K 166960K 128 0 ioctlops 0 0K 4K 166960K 1728 0 iov 0 0K 16K 166960K 60 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1484 93K 94K 166960K 2634 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 32 0 VM map 2 1K 1K 166960K 2 0 sem 20 17K 17K 166960K 45 0 dirhash 12 2K 2K 166960K 36 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 19 69K 97K 166960K 1188 0 sigio 0 0K 0K 166960K 20 0 proc 72 91K 128K 166960K 729 0 subproc 72 4K 4K 166960K 101 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 131 0 in_multi 75 5K 6K 166960K 170 0 ether_multi 1 0K 0K 166960K 3 0 mrt 2 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 516 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 238 73K 87K 166960K 12884 0 UVM aobj 46 2K 2K 166960K 50 0 pinsyscall 45 90K 110K 166960K 2348 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 58 0 NDP 12 0K 1K 166960K 59 0 temp 77 8644K 8709K 166960K 45295 0 kqueue 13 20K 28K 166960K 206 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 134 0 130 2 1 1 2 0 8 0 rtentry 168 165 0 80 5 0 5 5 0 8 0 unpcb 144 640 0 621 5 1 4 4 0 8 3 syncache 336 5 0 5 2 2 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 240 0 231 3 1 2 2 0 8 1 arp 120 28 0 10 1 0 1 1 0 8 0 inpcb 376 940 0 925 6 3 3 5 0 8 1 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 136 38 0 18 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 1 1 1 0 8 1 kcovpl 48 11 0 3 1 0 1 1 0 8 0 ppxss 1168 17 0 17 3 2 1 1 0 8 1 pppxif 1472 6 0 6 3 2 1 1 0 8 1 pfstscr 40 3 0 3 2 1 1 1 0 8 1 pffrag 232 4 0 2 1 0 1 1 0 482 0 pffrnode 88 3 0 1 1 0 1 1 0 8 0 pffrent 40 10 0 8 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 pftag 88 3 0 0 1 0 1 1 0 8 0 pfqueue 320 1 0 1 1 1 0 1 0 8 0 pfstitem 24 97 0 31 1 0 1 1 0 8 0 pfstkey 128 100 0 34 3 0 3 3 0 8 0 pfstate 376 97 0 31 7 0 7 7 0 8 0 pfrule 1344 27 0 20 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 688 0 327 29 3 26 27 0 8 0 art_table 32 689 0 327 4 0 4 4 0 8 0 art_node 16 161 0 85 1 0 1 1 0 8 0 sysvmsgpl 40 25 0 10 1 0 1 1 0 8 0 semupl 112 3 0 3 2 1 1 1 0 8 1 semapl 112 39 0 22 1 0 1 1 0 8 0 shmpl 112 47 0 4 2 0 2 2 0 8 0 dirhash 1024 33 0 16 3 0 3 3 0 8 0 dino2pl 256 3556 0 2054 95 0 95 95 0 8 0 ffsino 280 3556 0 2054 109 0 109 109 0 8 0 nchpl 144 5207 0 3507 64 0 64 64 0 8 0 rtmask 32 1 0 1 1 1 0 1 0 8 0 uvmvnodes 80 4495 0 0 92 0 92 92 0 8 0 vnodes 216 4495 0 0 250 0 250 250 0 8 0 namei 1024 18960 0 18960 2 1 1 2 0 8 1 percpumem 16 78 0 32 1 0 1 1 0 8 0 kstatmem 264 72 0 48 2 0 2 2 0 8 0 scsiplug 72 6 0 6 5 5 0 1 0 8 0 scxspl 216 18444 0 18444 11 10 1 8 1 8 1 plimitpl 152 220 0 203 1 0 1 1 0 8 0 sigapl 424 1488 0 1435 8 1 7 7 0 8 0 futexpl 64 16096 0 16094 1 0 1 1 0 8 0 knotepl 120 386 0 0 12 0 12 12 0 8 0 kqueuepl 216 371 0 360 4 1 3 3 0 8 2 pipepl 328 258 0 231 8 0 8 8 0 8 5 fdescpl 504 1465 0 1432 6 1 5 6 0 8 0 filepl 152 8891 0 8666 22 4 18 18 0 8 6 lockfpl 104 332 0 330 1 0 1 1 0 8 0 lockfspl 48 138 0 136 1 0 1 1 0 8 0 sessionpl 144 28 0 19 1 0 1 1 0 8 0 pgrppl 48 110 0 93 1 0 1 1 0 8 0 ucredpl 104 1329 0 1315 1 0 1 1 0 8 0 zombiepl 144 1889 0 1887 2 1 1 1 0 8 0 processpl 1168 1488 0 1435 5 0 5 5 0 8 0 procpl 656 3295 0 3235 6 0 6 6 0 8 0 srpgc 96 11 0 11 3 2 1 1 0 8 1 sosppl 168 9 0 9 2 1 1 1 0 8 1 sockpl 688 1733 0 1696 15 6 9 9 0 8 4 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 116 0 0 15 0 15 15 0 8 0 mcl2k 2048 48 0 0 6 0 6 6 0 8 0 mtagpl 96 22 0 0 1 0 1 1 0 8 0 mbufpl 256 402 0 0 25 0 25 25 0 8 0 bufpl 280 6779 0 624 440 0 440 440 0 8 0 anonpl 24 215865 0 211761 61 10 51 51 0 184 14 amapchunkpl 152 41347 0 40801 34 7 27 29 0 158 2 amappl16 200 4648 0 4617 32 18 14 15 0 8 8 amappl15 192 34 0 34 1 1 0 1 0 8 0 amappl14 184 117 0 104 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 1 0 1 0 8 0 amappl12 168 2167 0 2132 4 2 2 3 0 8 0 amappl11 160 53 0 39 1 0 1 1 0 8 0 amappl10 152 5 0 4 2 1 1 1 0 8 0 amappl9 144 251 0 251 1 1 0 1 0 8 0 amappl8 136 37 0 34 1 0 1 1 0 8 0 amappl7 128 113 0 100 1 0 1 1 0 8 0 amappl6 120 208 0 203 1 0 1 1 0 8 0 amappl5 112 138 0 128 1 0 1 1 0 8 0 amappl4 104 352 0 331 1 0 1 1 0 8 0 amappl3 96 8385 0 8266 4 0 4 4 0 8 0 amappl2 88 696 0 631 2 0 2 2 0 8 0 amappl1 80 11335 0 10737 16 2 14 15 0 8 0 amappl 88 12424 0 12245 5 0 5 5 0 92 0 dma4096 4096 2 0 2 2 2 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 255 0 255 3 3 0 1 0 8 0 dma64 64 7 0 7 2 1 1 1 0 8 1 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 49 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1465 0 1432 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1465 0 1432 1 0 1 1 0 8 0 vmmpekpl 168 12865 0 12809 3 0 3 3 0 8 0 vmmpepl 168 94837 0 92892 104 7 97 97 0 357 5 vmsppl 456 1464 0 1432 5 0 5 5 0 8 0 rwobjpl 64 31459 0 25933 90 0 90 90 0 8 0 pdppl 4096 2937 0 2864 119 44 75 87 0 8 2 pvpl 32 16245 0 0 131 0 131 131 0 265 0 pmappl 248 1464 0 1432 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 321 0 57 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_semop(ffff8000ffffc008,ffff8000320ae3c0,ffff8000320ae310) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff8000320ae3c0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff8000320ae3c0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb6fef31b880, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800029aabff0) 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 end of kernel end trace frame: 0x73bb8071b530, count: -3