kernel: protection fault trap, code=0 Stopped at sys_semop+0x352: movzwl 0x8(%rbx),%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(ffff80002a2602b0,ffff80003c41c7a0,ffff80003c41c6f0) at sys_semop+0x352 sys/kern/sysv_sem.c:622 syscall(ffff80003c41c7a0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c41c7a0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x19087f559b0, count: -3 ddb{1}> show registers rdi 0 rsi 0x4003 __ALIGN_SIZE+0x3003 rbp 0xffff80003c41c6c0 rbx 0xdeafbeaddeafbead rdx 0 rcx 0xffff80002a2602b0 rax 0xffff8000299ddff0 r8 0x7f7fffffc000 r9 0x1 r10 0x149e3d11d1cfec0 r11 0x235c8b9a9dca9b92 r12 0x4003 __ALIGN_SIZE+0x3003 r13 0xfffffd80652f99a0 r14 0xffff80003c41c7a0 r15 0x4003 __ALIGN_SIZE+0x3003 rip 0xffffffff81319162 sys_semop+0x352 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c41c5d0 ss 0x10 sys_semop+0x352: movzwl 0x8(%rbx),%r15d ddb{1}> show proc PROC (syz-executor) tid=292656 pid=10266 tcnt=4 stat=onproc flags process=10 proc=4000000 runpri=80, usrpri=80, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a260548,0xffff80002a260a88 process=0xffff8000ffff3038 user=0xffff80003c417000, vmspace=0xfffffd800b063000 estcpu=30, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 16501 457538 2471 0 2 0 syz-executor 16501 491237 2471 0 2 0x4000000 syz-executor 16501 59733 2471 0 3 0x4000080 fsleep syz-executor 10266 312091 94283 60929 2 0x10 syz-executor *10266 292656 94283 60929 7 0x4000010 syz-executor 10266 142712 94283 60929 3 0x4000090 fsleep syz-executor 10266 184164 94283 60929 3 0x4000090 fsleep syz-executor 3479 92143 93420 0 3 0x80 nanoslp syz-executor 3479 371079 93420 0 3 0x4000080 lockf syz-executor 3479 414878 93420 0 3 0x4000080 fsleep syz-executor 75925 143591 13721 0 3 0x80 nanoslp syz-executor 75925 219957 13721 0 3 0x4000080 lockf syz-executor 75925 364765 13721 0 3 0x4000080 lockf syz-executor 75925 214387 13721 0 3 0x4000080 lockf syz-executor 75925 386261 13721 0 3 0x4000080 fsleep syz-executor 57572 392896 36144 0 3 0x80 nanoslp syz-executor 57572 4895 36144 0 3 0x4000080 kqsel syz-executor 57572 252952 36144 0 3 0x4000080 fsleep syz-executor 57572 261872 36144 0 3 0x4000080 fsleep syz-executor 2471 221256 68948 0 3 0x82 nanoslp syz-executor 70752 182545 68948 0 2 0x3 syz-executor 13721 388100 68948 0 3 0x82 nanoslp syz-executor 49043 89707 68948 0 3 0x82 nanoslp syz-executor 94283 306669 68948 0 3 0x82 nanoslp syz-executor 93420 4617 68948 0 3 0x82 nanoslp syz-executor 86687 4218 68948 0 3 0x82 wait syz-executor 36144 478459 68948 0 3 0x82 nanoslp syz-executor 68948 383860 67224 0 3 0x82 kqread syz-executor 67224 142736 9096 0 3 0x10008a sigsusp ksh 9096 435376 98536 0 3 0x98 kqread sshd-session 98536 378866 70333 0 3 0x92 kqread sshd-session 16089 278155 1 0 3 0x100083 ttyopn getty 70333 460942 1 0 3 0x88 kqread sshd 87042 230836 54476 74 3 0x1100092 bpf pflogd 54476 190088 1 0 3 0x80 sbwait pflogd 35883 64431 11998 73 3 0x1100090 kqread syslogd 11998 373635 1 0 3 0x100082 sbwait syslogd 87566 323306 1 0 3 0x100080 kqread resolvd 31788 458833 10309 77 3 0x100092 kqread dhcpleased 71341 39394 10309 77 3 0x100092 kqread dhcpleased 10309 458486 1 0 3 0x80 kqread dhcpleased 13698 156558 0 0 3 0x14200 bored smr 94723 474118 0 0 2 0x14200 zerothread 41511 382261 0 0 3 0x14200 aiodoned aiodoned 73874 418271 0 0 3 0x14200 syncer update 76142 267151 0 0 3 0x14200 cleaner cleaner 39786 60221 0 0 2 0x14200 reaper 3174 128186 0 0 3 0x14200 pgdaemon pagedaemon 93772 101705 0 0 3 0x14200 bored viomb 33280 241084 0 0 3 0x40014200 acpi0 acpi0 5417 170401 0 0 3 0x40014200 idle1 45441 297202 0 0 3 0x14200 bored softnet1 16723 51870 0 0 3 0x14200 bored softnet0 67303 77602 0 0 3 0x14200 bored systqmp 86478 62152 0 0 3 0x14200 bored systq 29888 123513 0 0 3 0x14200 tmoslp softclockmp 9758 299377 0 0 3 0x40014200 tmoslp softclock 57463 124725 0 0 3 0x40014200 idle0 1 28115 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 16501 (syz-executor) thread 0xffff8000fffefa10 (491237) exclusive rrwlock inode r = 0 (0xfffffd806f52cec8) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 rrw_enter+0xc6 sys/kern/kern_rwlock.c:621 #3 VOP_LOCK+0xbd sys/kern/vfs_vops.c:527 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:570 #5 spec_open_clone+0x290 sys/kern/spec_vnops.c:725 #6 spec_open+0x319 sys/kern/spec_vnops.c:148 #7 VOP_OPEN+0x8b sys/kern/vfs_vops.c:138 #8 vn_open+0x6a0 sys/kern/vfs_vnops.c:177 #9 doopenat+0x35b sys/kern/vfs_syscalls.c:1138 #10 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #10 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775 #11 Xsyscall+0x128 Process 10266 (syz-executor) thread 0xffff80002a2602b0 (292656) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83903108) #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 11061 12150K 12365K 166960K 12447 0 pcb 19 12K 20K 166960K 81 0 rtable 222 7K 8K 166960K 363 0 pf 32 17K 18K 166960K 58 0 ifaddr 40 7K 7K 166960K 54 0 ifgroup 51 2K 2K 166960K 67 0 sysctl 1 1K 9K 166960K 5 0 counters 68 36K 37K 166960K 156 0 ioctlops 0 0K 4K 166960K 1550 0 iov 0 0K 12K 166960K 9 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1405 88K 89K 166960K 1599 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 7 0K 0K 166960K 9 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 89K 166960K 300 0 sigio 0 0K 0K 166960K 4 0 proc 72 115K 164K 166960K 548 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 0 0K 0K 166960K 19 0 in_multi 92 6K 7K 166960K 109 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 391 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 243 155K 161K 166960K 4594 0 UVM aobj 9 2K 2K 166960K 9 0 pinsyscall 41 82K 104K 166960K 1427 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 13 0 NDP 11 0K 2K 166960K 34 0 temp 49 8669K 8734K 166960K 15359 0 kqueue 14 22K 28K 166960K 56 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 49 0 46 1 0 1 1 0 8 0 rtentry 176 111 0 12 5 0 5 5 0 8 0 unpcb 144 277 0 256 5 3 2 4 0 8 1 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 43 0 38 1 0 1 1 0 8 0 arp 136 18 0 2 1 0 1 1 0 8 0 inpcb 328 191 0 181 3 1 2 2 0 8 0 nd6 152 24 0 3 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1192 43 0 43 1 0 1 1 0 8 1 pffrag 232 4 0 0 1 0 1 1 0 482 0 pffrnode 88 4 0 0 1 0 1 1 0 8 0 pffrent 40 6 0 2 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 27 0 0 1 0 1 1 0 8 0 pfstkey 128 27 0 0 1 0 1 1 0 8 0 pfstate 448 27 0 0 3 0 3 3 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 452 0 44 29 0 29 29 0 8 2 art_table 40 453 0 44 5 0 5 5 0 8 0 art_node 32 111 0 21 1 0 1 1 0 8 0 sysvmsgpl 40 35 0 5 1 0 1 1 0 8 0 semapl 112 6 0 2 1 0 1 1 0 8 0 shmpl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1937 0 428 96 0 96 96 0 8 0 ffsino 296 1937 0 428 117 0 117 117 0 8 0 nchpl 144 2348 0 647 64 0 64 64 0 8 0 rtmask 32 4 0 4 1 0 1 1 0 8 1 vnodes 216 2153 0 0 120 0 120 120 0 8 0 namei 1024 7295 0 7295 2 1 1 2 0 8 1 percpumem 16 93 0 44 1 0 1 1 0 8 0 kstatmem 264 38 0 14 3 0 3 3 0 8 1 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 7318 0 7318 3 2 1 2 1 8 1 plimitpl 152 117 0 100 1 0 1 1 0 8 0 sigapl 424 609 0 562 7 1 6 7 0 8 0 knotepl 120 512 0 0 16 0 16 16 0 8 0 kqueuepl 224 77 0 66 2 0 2 2 0 8 1 pipepl 344 132 0 105 3 0 3 3 0 8 0 fdescpl 528 593 0 563 3 0 3 3 0 8 0 filepl 160 2770 0 2541 16 3 13 14 0 8 2 lockfpl 104 75 0 66 1 0 1 1 0 8 0 lockfspl 48 30 0 25 1 0 1 1 0 8 0 sessionpl 144 22 0 13 1 0 1 1 0 8 0 pgrppl 48 30 0 13 1 0 1 1 0 8 0 ucredpl 104 336 0 322 1 0 1 1 0 8 0 zombiepl 144 657 0 655 2 1 1 1 0 8 0 processpl 1232 609 0 562 5 1 4 5 0 8 0 procpl 664 928 0 866 6 0 6 6 0 8 0 sosppl 176 1 0 1 1 0 1 1 0 8 1 sockpl 752 552 0 517 15 10 5 14 0 8 1 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 115 0 0 15 0 15 15 0 8 0 mcl2k 2048 26 0 0 4 0 4 4 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 196 0 0 13 0 13 13 0 8 0 bufpl 280 2717 0 130 185 0 185 185 0 8 0 anonpl 32 5519 0 0 45 0 45 45 0 246 0 amapchunkpl 152 13883 0 13401 27 0 27 27 0 158 4 amappl16 200 2153 0 2126 6 3 3 5 0 8 0 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 7 0 7 1 1 0 1 0 8 0 amappl13 176 427 0 426 1 0 1 1 0 8 0 amappl12 168 977 0 936 3 0 3 3 0 8 0 amappl11 160 8 0 8 1 1 0 1 0 8 0 amappl10 152 63 0 49 1 0 1 1 0 8 0 amappl9 144 245 0 245 1 1 0 1 0 8 0 amappl8 136 25 0 23 1 0 1 1 0 8 0 amappl7 128 100 0 99 1 0 1 1 0 8 0 amappl6 120 290 0 275 1 0 1 1 0 8 0 amappl5 112 76 0 66 1 0 1 1 0 8 0 amappl4 104 419 0 388 1 0 1 1 0 8 0 amappl3 96 2347 0 2260 4 1 3 3 0 8 0 amappl2 88 698 0 624 2 0 2 2 0 8 0 amappl1 80 9833 0 9240 15 2 13 15 0 8 0 amappl 88 3828 0 3662 5 0 5 5 0 92 0 uvmvnodes 80 107 0 0 3 0 3 3 0 8 0 dma4096 4096 2 0 2 2 1 1 1 0 8 1 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 254 0 254 2 2 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 8 0 0 1 0 1 1 0 8 0 uaddrrnd 24 593 0 563 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 593 0 563 1 0 1 1 0 8 0 vmmpekpl 168 6697 0 6664 2 0 2 2 0 8 0 vmmpepl 168 45225 0 43350 89 1 88 88 0 357 0 vmsppl 488 592 0 562 5 1 4 5 0 8 0 rwobjpl 80 15596 0 14558 25 2 23 24 0 8 0 pdppl 4096 1193 0 1124 97 26 71 83 0 8 2 pvpl 32 13016 0 0 105 0 105 105 0 265 0 pmappl 256 592 0 562 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 274 0 30 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(ffffffff8380fff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf sys/dev/kcov.c:153 exit1(ffff8000fffefca8,0,0,1) at exit1+0x701 sys/kern/kern_exit.c:260 sys_exit(ffff8000fffefca8,ffff800035fe2620,ffff800035fe2570) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800035fe2620) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800035fe2620) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x755029399580, count: -8 ddb{0}> machine ddbcpu 1 Stopped at sys_semop+0x352: movzwl 0x8(%rbx),%r15d ddb{1}> trace sys_semop(ffff80002a2602b0,ffff80003c41c7a0,ffff80003c41c6f0) at sys_semop+0x352 sys/kern/sysv_sem.c:622 syscall(ffff80003c41c7a0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c41c7a0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x19087f559b0, count: -3