kernel: protection fault trap, code=0 Stopped at sys_semop+0x45b: 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(ffff80002a7f0f80,ffff80003c97b780,ffff80003c97b6d0) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003c97b780) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97b780) at syscall+0x97e sys/arch/amd64/amd64/trap.c:742 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa8e1738dda0, count: -3 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003c97b6a0 rbx 0 rdx 0 rcx 0 rax 0xdeadbeefdeadbeef r8 0x7f7fffffc000 r9 0 r10 0xe5f14875d7eaac8c r11 0x74dcb828cc27038a r12 0xffff80000149dd04 r13 0 r14 0xffff80003c97b780 r15 0 rip 0xffffffff81ae9a1b sys_semop+0x45b cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c97b580 ss 0x10 sys_semop+0x45b: movzwl 0(%rax),%r15d ddb> show proc PROC (syz-executor) tid=480546 pid=12031 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=0xffff80002a7c39b8,0xffff80002a7f1740 process=0xffff800037517b00 user=0xffff80003c976000, vmspace=0xfffffd806c2a85b0 estcpu=32, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 12031 249408 86160 0 2 0 syz-executor 12031 257160 86160 0 2 0x4000000 syz-executor *12031 480546 86160 0 7 0x4000000 syz-executor 12031 433651 86160 0 3 0x4000080 fsleep syz-executor 40525 408051 26133 -1 2 0x10 syz-executor 40525 23230 26133 -1 3 0x4000090 fsleep syz-executor 38285 249291 76189 0 2 0 syz-executor 38285 512103 76189 0 3 0x4000080 fsleep syz-executor 15357 499234 81622 0 2 0 syz-executor 15357 336984 81622 0 3 0x4000080 fsleep syz-executor 98995 418063 13453 0 2 0 syz-executor 98995 32039 13453 0 3 0x4000080 fsleep syz-executor 98995 383623 13453 0 3 0x4000080 fsleep syz-executor 84286 24010 35299 0 2 0 syz-executor 84286 42872 35299 0 3 0x4000080 kqsel syz-executor 84286 462573 35299 0 2 0x4000000 syz-executor 22592 141754 0 0 3 0x14200 bored sosplice 35299 428387 33686 0 2 0x3 syz-executor 13453 499104 33686 0 3 0x82 nanoslp syz-executor 86160 490050 33686 0 2 0xc82 syz-executor 10077 137398 33686 0 3 0x82 wait syz-executor 76189 87921 33686 0 3 0x82 nanoslp syz-executor 26133 341106 33686 0 3 0x82 nanoslp syz-executor 75347 95654 33686 0 3 0x82 nanoslp syz-executor 81622 430183 33686 0 3 0x82 nanoslp syz-executor 33686 144228 99043 0 2 0x2 syz-executor 99043 161607 53969 0 3 0x10008a sigsusp ksh 53969 237561 20391 0 3 0x98 kqread sshd-session 20391 495071 1036 0 3 0x92 kqread sshd-session 76247 39944 1 0 3 0x100083 ttyin getty 1036 60805 1 0 3 0x88 kqread sshd 67477 338471 91999 73 3 0x1100090 kqread syslogd 91999 174984 1 0 3 0x100082 sbwait syslogd 99569 507788 1 0 3 0x100080 kqread resolvd 7640 442507 74594 77 3 0x100092 kqread dhcpleased 11190 403745 74594 77 3 0x100092 kqread dhcpleased 74594 270651 1 0 3 0x80 kqread dhcpleased 15791 367768 0 0 3 0x14200 bored smr 34057 472174 0 0 2 0x14200 zerothread 46864 13201 0 0 3 0x14200 aiodoned aiodoned 36016 77407 0 0 3 0x14200 syncer update 73960 314991 0 0 3 0x14200 cleaner cleaner 31797 400269 0 0 3 0x14200 reaper reaper 8751 487434 0 0 3 0x14200 pgdaemon pagedaemon 43155 101683 0 0 3 0x14200 bored viomb 38305 510852 0 0 3 0x40014200 acpi0 acpi0 92640 475796 0 0 3 0x14200 bored softnet3 96857 31719 0 0 3 0x14200 bored softnet2 40495 156361 0 0 3 0x14200 bored softnet1 88260 283856 0 0 3 0x14200 bored softnet0 67602 40512 0 0 3 0x14200 bored systqmp 99543 520729 0 0 3 0x14200 bored systq 6776 264819 0 0 3 0x40014200 tmoslp softclock 74895 495402 0 0 3 0x40014200 idle0 1 87759 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10182 11058K 12369K 166960K 11640 0 pcb 17 12K 12K 166960K 34 0 rtable 229 6K 7K 166960K 365 0 pf 30 12K 13K 166960K 34 0 ifaddr 42 7K 7K 166960K 46 0 ifgroup 50 2K 2K 166960K 52 0 sysctl 4 1K 9K 166960K 8 0 counters 32 17K 17K 166960K 33 0 ioctlops 0 0K 4K 166960K 116 0 iov 0 0K 12K 166960K 38 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1439 91K 91K 166960K 1530 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 4 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 97K 166960K 226 0 sigio 1 0K 0K 166960K 3 0 proc 60 59K 124K 166960K 481 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 21 0 in_multi 95 7K 7K 166960K 109 0 ether_multi 1 0K 0K 166960K 2 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 349 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 151K 171K 166960K 3498 0 UVM aobj 3 2K 4K 166960K 4 0 pinsyscall 39 78K 96K 166960K 1258 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 6 0 NDP 11 0K 2K 166960K 28 0 temp 37 8674K 8739K 166960K 9686 0 kqueue 14 22K 26K 166960K 41 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 45 0 42 1 0 1 1 0 8 0 rtentry 136 113 0 6 4 0 4 4 0 8 0 unpcb 144 64 0 49 1 0 1 1 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 30 0 25 1 0 1 1 0 8 0 arp 88 19 0 0 1 0 1 1 0 8 0 inpcb 328 122 0 113 3 1 2 2 0 8 1 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 104 24 0 2 1 0 1 1 0 8 0 pkpcb 40 33 0 33 1 1 0 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 pfrktable 1344 2 0 2 1 1 0 1 0 8 0 pfrule 1344 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 453 0 16 29 0 29 29 0 8 0 art_table 32 454 0 16 4 0 4 4 0 8 0 art_node 16 112 0 16 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 1 0 1 0 8 0 semapl 112 2 0 1 1 0 1 1 0 8 0 shmpl 112 1 0 1 1 0 1 1 0 8 1 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1707 0 205 95 0 95 95 0 8 0 ffsino 248 1707 0 205 95 0 95 95 0 8 0 nchpl 144 2006 0 325 63 0 63 63 0 8 0 uvmvnodes 80 1935 0 0 40 0 40 40 0 8 0 vnodes 216 1935 0 0 108 0 108 108 0 8 0 namei 1024 6211 0 6211 4 2 2 2 0 8 2 kstatmem 264 24 0 2 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 6586 0 6586 9 1 8 8 1 8 8 plimitpl 152 38 0 22 1 0 1 1 0 8 0 sigapl 424 507 0 460 7 1 6 7 0 8 0 knotepl 120 6044 0 5996 2 0 2 2 0 8 0 kqueuepl 184 50 0 38 1 0 1 1 0 8 0 pipepl 296 109 0 81 3 0 3 3 0 8 0 fdescpl 440 490 0 460 5 1 4 5 0 8 0 filepl 120 1903 0 1683 9 2 7 9 0 8 0 lockfpl 104 41 0 37 1 0 1 1 0 8 0 lockfspl 48 21 0 17 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 29 0 13 1 0 1 1 0 8 0 ucredpl 104 158 0 145 1 0 1 1 0 8 0 zombiepl 144 492 0 489 1 0 1 1 0 8 0 processpl 1160 507 0 460 4 0 4 4 0 8 0 procpl 656 666 0 608 7 1 6 6 0 8 1 sosppl 168 1 0 1 1 0 1 1 0 8 1 sockpl 528 268 0 241 6 3 3 5 0 8 1 mcl64k 65536 10 0 10 2 1 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 5 0 5 1 1 0 1 0 8 0 mcl4k 4096 2542 0 2487 16 8 8 15 0 8 0 mcl2k 2048 414 0 413 2 1 1 2 0 8 0 mtagpl 96 6 0 4 1 0 1 1 0 8 0 mbufpl 256 5150 0 4987 12 0 12 12 0 8 0 bufpl 280 2400 0 118 163 0 163 163 0 8 0 anonpl 24 61533 0 58390 21 1 20 21 0 187 0 amapchunkpl 152 9896 0 9384 32 11 21 32 0 158 1 amappl16 200 331 0 304 2 0 2 2 0 8 0 amappl15 192 25 0 25 1 1 0 1 0 8 0 amappl14 184 121 0 111 1 0 1 1 0 8 0 amappl13 176 2 0 2 1 1 0 1 0 8 0 amappl12 168 1096 0 1066 3 1 2 3 0 8 0 amappl11 160 67 0 57 1 0 1 1 0 8 0 amappl10 152 3 0 3 1 1 0 1 0 8 0 amappl9 144 254 0 254 1 1 0 1 0 8 0 amappl8 136 16 0 15 1 0 1 1 0 8 0 amappl7 128 92 0 81 1 0 1 1 0 8 0 amappl6 120 168 0 165 1 0 1 1 0 8 0 amappl5 112 108 0 102 1 0 1 1 0 8 0 amappl4 104 277 0 263 1 0 1 1 0 8 0 amappl3 96 1787 0 1672 3 0 3 3 0 8 0 amappl2 88 609 0 555 2 0 2 2 0 8 0 amappl1 80 8239 0 7691 13 1 12 13 0 8 0 amappl 88 2847 0 2674 5 0 5 5 0 92 1 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 3 0 1 1 0 1 1 0 8 0 uaddrrnd 24 490 0 460 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 490 0 460 1 0 1 1 0 8 0 vmmpekpl 168 5534 0 5502 2 0 2 2 0 8 0 vmmpepl 168 35780 0 33899 84 1 83 83 0 357 1 vmsppl 360 489 0 460 4 1 3 4 0 8 0 rwobjpl 32 13132 0 10352 23 0 23 23 0 8 0 pdppl 4096 986 0 920 100 34 66 82 0 8 0 pvpl 32 194357 0 185022 86 1 85 85 0 265 6 pmappl 216 489 0 460 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 271 0 51 8 0 8 8 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_semop(ffff80002a7f0f80,ffff80003c97b780,ffff80003c97b6d0) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003c97b780) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97b780) at syscall+0x97e sys/arch/amd64/amd64/trap.c:742 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa8e1738dda0, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_semop(ffff80002a7f0f80,ffff80003c97b780,ffff80003c97b6d0) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003c97b780) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97b780) at syscall+0x97e sys/arch/amd64/amd64/trap.c:742 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa8e1738dda0, count: -3