kernel: protection fault trap, code=0 Stopped at sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> trace sys_semop(ffff80003c9114e0,ffff8000380e7a60,ffff8000380e79b0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:619 syscall(ffff8000380e7a60) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000380e7a60) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xae32ce2f7c0, count: -3 ddb> show registers rdi 0 rsi 0 rbp 0xffff8000380e7990 rbx 0xdeaf4152deaf4152 rdx 0 rcx 0 rax 0xdeaf4152deaf4152 r8 0x7f7fffffc000 r9 0xfffffd8007ffd618 r10 0x56b8059a8a6aca41 r11 0x6329478ea12eeef6 r12 0 r13 0xfffffd806cacfd90 r14 0xffff8000380e7a60 r15 0 rip 0xffffffff81d9dea5 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff8000380e78a0 ss 0x10 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb> show proc PROC (syz-executor) tid=17030 pid=54901 tcnt=4 stat=onproc flags process=1000 proc=4080000 runpri=4, usrpri=86, slppri=4, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003c990030 scnt=3 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c911778,0xffff80003c911a20 process=0xffff8000380eb618 user=0xffff8000380e2000, vmspace=0xfffffd80745bbb98 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 25711 364736 96523 0 2 0 syz-executor 25711 110465 96523 0 3 0x4000000 getblk syz-executor 9360 98166 78170 0 2 0xc80 syz-executor 9360 279566 78170 0 3 0x4000000 getblk syz-executor 9360 495268 78170 0 3 0x4000080 fsleep syz-executor 54901 153308 51754 0 3 0x3000 suspend syz-executor 54901 380078 51754 0 3 0x4081000 getblk syz-executor *54901 17030 51754 0 7 0x4081000 syz-executor 54901 250466 51754 0 2 0x4081c00 syz-executor 58242 92739 91292 0 3 0x80 nanoslp syz-executor 58242 453359 91292 0 3 0x4000080 kqsel syz-executor 58242 405863 91292 0 3 0x4000080 fsleep syz-executor 58242 497183 91292 0 3 0x4000080 fsleep syz-executor 83154 174009 82253 0 2 0xc80 syz-executor 83154 125641 82253 0 3 0x4000080 sbwait syz-executor 83154 468175 82253 0 3 0x4000080 fsleep syz-executor 84084 130215 0 0 3 0x14200 acct acct 96523 397309 92419 0 2 0xc82 syz-executor 11788 24599 92419 0 3 0x2 getblk syz-executor 96346 63970 92419 0 3 0x2 biowait syz-executor 78170 276745 92419 0 2 0xc82 syz-executor 82253 84793 92419 0 2 0xc82 syz-executor 91292 409666 92419 0 3 0x82 nanoslp syz-executor 51754 400734 92419 0 2 0xc82 syz-executor 16470 77085 92419 0 3 0x2 biowait syz-executor 92419 386743 77791 0 3 0x82 kqread syz-executor 77791 375935 526 0 3 0x10008a sigsusp ksh 526 460824 5514 0 3 0x98 kqread sshd-session 5514 93383 39439 0 3 0x92 kqread sshd-session 90435 98421 1 0 3 0x100083 ttyin getty 39439 499012 1 0 3 0x88 kqread sshd 13568 258751 71771 73 3 0x1100090 kqread syslogd 71771 206623 1 0 3 0x100082 sbwait syslogd 16887 367080 1 0 3 0x100080 kqread resolvd 50570 277743 91211 77 3 0x100092 kqread dhcpleased 36236 52208 91211 77 3 0x100092 kqread dhcpleased 91211 311671 1 0 3 0x80 kqread dhcpleased 67841 181860 0 0 3 0x14200 bored smr 17570 105064 0 0 2 0x14200 zerothread 14758 229443 0 0 3 0x14200 aiodoned aiodoned 97682 507535 0 0 3 0x14200 syncer update 74058 353882 0 0 3 0x14200 cleaner cleaner 18317 392875 0 0 3 0x14200 reaper reaper 23425 209484 0 0 3 0x14200 pgdaemon pagedaemon 20233 194416 0 0 3 0x14200 bored viomb 81778 163267 0 0 3 0x40014200 acpi0 acpi0 28629 128956 0 0 3 0x14200 bored softnet0 91371 479449 0 0 3 0x14200 bored systqmp 4444 336701 0 0 3 0x14200 bored systq 96910 454539 0 0 3 0x40014200 tmoslp softclock 42801 78219 0 0 3 0x40014200 idle0 1 488902 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11033 12103K 12493K 166960K 12241 0 pcb 18 12K 12K 166960K 47 0 rtable 211 5K 6K 166960K 428 0 pf 30 12K 13K 166960K 32 0 ifaddr 42 7K 7K 166960K 47 0 ifgroup 50 2K 2K 166960K 52 0 sysctl 2 1K 9K 166960K 6 0 counters 33 17K 17K 166960K 34 0 ioctlops 0 0K 4K 166960K 49 0 iov 0 0K 12K 166960K 6 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1292 81K 82K 166960K 1524 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 3 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 15 53K 81K 166960K 225 0 sigio 0 0K 0K 166960K 1 0 proc 60 59K 75K 166960K 511 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 1 0K 0K 166960K 11 0 in_multi 98 7K 7K 166960K 107 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 374 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 216 152K 156K 166960K 3709 0 UVM aobj 5 2K 2K 166960K 5 0 pinsyscall 36 72K 90K 166960K 1319 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 11 0K 2K 166960K 28 0 temp 38 9066K 9130K 166960K 4235 0 kqueue 14 22K 26K 166960K 32 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 43 0 40 1 0 1 1 0 8 0 rtentry 136 114 0 17 4 0 4 4 0 8 0 unpcb 144 194 0 179 1 0 1 1 0 8 0 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 736 27 0 21 1 0 1 1 0 8 0 arp 96 18 0 0 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 1 1 0 1 1 0 8 0 inpcb 328 134 0 122 2 0 2 2 0 8 0 nd6 112 26 0 2 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 487 0 57 31 0 31 31 0 8 1 art_table 40 488 0 57 5 0 5 5 0 8 0 art_node 32 114 0 26 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semapl 112 2 0 1 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1744 0 287 92 0 92 92 0 8 0 ffsino 256 1745 0 287 92 0 92 92 0 8 0 nchpl 144 2061 0 371 63 0 63 63 0 8 0 vnodes 216 1871 0 0 104 0 104 104 0 8 0 namei 1024 6351 0 6349 2 0 2 2 0 8 1 kstatmem 264 25 0 2 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 7629 0 7621 8 0 8 8 1 8 6 plimitpl 152 40 0 23 1 0 1 1 0 8 0 sigapl 424 540 0 499 8 0 8 8 0 8 2 knotepl 120 6780 0 6732 10 0 10 10 0 8 7 kqueuepl 184 39 0 29 1 0 1 1 0 8 0 pipepl 304 127 0 100 3 0 3 3 0 8 0 fdescpl 448 506 0 479 4 0 4 4 0 8 0 filepl 120 2160 0 1946 9 0 9 9 0 8 1 lockfpl 104 52 0 50 1 0 1 1 0 8 0 lockfspl 48 24 0 22 1 0 1 1 0 8 0 sessionpl 144 27 0 19 1 0 1 1 0 8 0 pgrppl 48 38 0 22 1 0 1 1 0 8 0 ucredpl 104 276 0 265 1 0 1 1 0 8 0 zombiepl 144 500 0 499 1 0 1 1 0 8 0 processpl 1152 540 0 499 5 0 5 5 0 8 1 procpl 664 667 0 615 7 0 7 7 0 8 2 sockpl 552 376 0 346 4 0 4 4 0 8 1 mcl64k 65536 14 0 13 1 0 1 1 0 8 0 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 5 0 5 1 0 1 1 0 8 1 mcl4k 4096 2615 0 2561 14 0 14 14 0 8 6 mcl2k 2048 218 0 218 3 0 3 3 0 8 3 mtagpl 96 7 0 4 1 0 1 1 0 8 0 mbufpl 256 5080 0 4909 12 0 12 12 0 8 0 bufpl 280 3367 0 102 234 0 234 234 0 8 0 anonpl 24 105965 0 100724 33 0 33 33 0 187 1 amapchunkpl 152 10913 0 10263 25 0 25 25 0 158 0 amappl16 200 1851 0 1782 8 0 8 8 0 8 4 amappl15 192 6 0 6 1 0 1 1 0 8 1 amappl14 184 411 0 410 1 0 1 1 0 8 0 amappl13 176 112 0 102 1 0 1 1 0 8 0 amappl12 168 763 0 737 2 0 2 2 0 8 0 amappl11 160 9 0 8 1 0 1 1 0 8 0 amappl10 152 57 0 47 1 0 1 1 0 8 0 amappl9 144 262 0 262 1 0 1 1 0 8 1 amappl8 136 101 0 98 1 0 1 1 0 8 0 amappl7 128 142 0 131 1 0 1 1 0 8 0 amappl6 120 155 0 154 1 0 1 1 0 8 0 amappl5 112 101 0 93 1 0 1 1 0 8 0 amappl4 104 270 0 254 1 0 1 1 0 8 0 amappl3 96 1941 0 1840 3 0 3 3 0 8 0 amappl2 88 504 0 451 2 0 2 2 0 8 0 amappl1 80 9304 0 8759 13 0 13 13 0 8 1 amappl 88 3011 0 2857 4 0 4 4 0 92 0 uvmvnodes 80 101 0 0 3 0 3 3 0 8 0 dma16384 16384 2 0 2 1 0 1 1 0 8 1 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 7 0 7 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 506 0 479 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 506 0 479 1 0 1 1 0 8 0 vmmpekpl 168 5681 0 5652 2 0 2 2 0 8 0 vmmpepl 168 39734 0 38011 83 0 83 83 0 357 4 vmsppl 368 505 0 479 4 0 4 4 0 8 1 rwobjpl 40 14108 0 13118 11 0 11 11 0 8 0 pdppl 4096 1018 0 958 92 26 66 74 0 8 6 pvpl 32 250116 0 239777 104 0 104 104 0 265 20 pmappl 216 505 0 479 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 359 0 26 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_semop(ffff80003c9114e0,ffff8000380e7a60,ffff8000380e79b0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:619 syscall(ffff8000380e7a60) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000380e7a60) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xae32ce2f7c0, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_semop(ffff80003c9114e0,ffff8000380e7a60,ffff8000380e79b0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:619 syscall(ffff8000380e7a60) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000380e7a60) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xae32ce2f7c0, count: -3