kernel: protection fault trap, code=0 Stopped at sys_semop+0x384: movzwl 0(%rbx),%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(ffff8000fffe3250,ffff8000387f3f70,ffff8000387f3ec0) at sys_semop+0x384 sys/kern/sysv_sem.c:604 syscall(ffff8000387f3f70) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff8000387f3f70) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x378274802d0, count: -3 ddb{0}> show registers rdi 0 rsi 0xfff9 __ALIGN_SIZE+0xeff9 rbp 0xffff8000387f3e90 rbx 0xdeaf4152deaf4152 rdx 0 rcx 0xffff8000fffe3250 rax 0xffffffff837b9ff0 cpu_info_full_primary+0x1ff0 r8 0x7f7fffffc000 r9 0 r10 0x3e7926258630f2e0 r11 0xe3f584d9e49407ef r12 0xfffffff9 r13 0xfffffd806b7c7e70 r14 0xffff8000387f3f70 r15 0 rip 0xffffffff821e3d34 sys_semop+0x384 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff8000387f3da0 ss 0 sys_semop+0x384: movzwl 0(%rbx),%r15d ddb{0}> show proc PROC (syz-executor) tid=402408 pid=91119 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=0xffff8000fffe3780,0xffff8000fffe2568 process=0xffff80003c4949c8 user=0xffff8000387ef000, vmspace=0xfffffd806b9cc200 estcpu=36, cpticks=1, pctcpu=0.0, user=1, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 91119 517963 38306 0 7 0 syz-executor *91119 402408 38306 0 7 0x4000000 syz-executor 91119 232889 38306 0 2 0x4000000 syz-executor 91119 90868 38306 0 2 0x4000000 syz-executor 48111 111969 1600 0 2 0 syz-executor 48111 202918 1600 0 3 0x4000080 fsleep syz-executor 27645 199950 7959 0 2 0 syz-executor 27645 264763 7959 0 3 0x4000080 lockf syz-executor 27645 461774 7959 0 3 0x4000080 fsleep syz-executor 39101 151700 94851 0 2 0 syz-executor 39101 274666 94851 0 3 0x4000080 sbwait syz-executor 39101 275441 94851 0 2 0x4000000 syz-executor 39101 95788 94851 0 3 0x4000080 fsleep syz-executor 43767 208946 0 0 3 0x14200 acct acct 53372 516407 49063 0 2 0x2 syz-executor 91563 354158 49063 0 2 0x2 syz-executor 1600 290174 49063 0 3 0x82 nanoslp syz-executor 56014 86738 0 0 3 0x14200 bored sosplice 31331 168036 49063 0 2 0x2 syz-executor 7959 72721 49063 0 3 0x82 nanoslp syz-executor 94851 397330 49063 0 3 0x82 nanoslp syz-executor 38306 85222 49063 0 3 0x82 nanoslp syz-executor 69016 206789 49063 0 3 0x82 wait syz-executor 49063 290554 17053 0 2 0x3 syz-executor 17053 339621 53319 0 3 0x10008a sigsusp ksh 53319 176633 53557 0 3 0x98 kqread sshd-session 53557 192879 13894 0 3 0x92 kqread sshd-session 79251 459836 1 0 3 0x100083 ttyin getty 13894 381717 1 0 3 0x88 kqread sshd 12565 241030 95868 74 3 0x1100092 bpf pflogd 95868 390796 1 0 3 0x80 sbwait pflogd 60979 407729 89311 73 3 0x1100090 kqread syslogd 89311 455101 1 0 3 0x100082 sbwait syslogd 92879 335968 1 0 3 0x100080 kqread resolvd 65357 209564 63230 77 3 0x100092 kqread dhcpleased 38731 332521 63230 77 3 0x100092 kqread dhcpleased 63230 179047 1 0 3 0x80 kqread dhcpleased 17749 389510 0 0 3 0x14200 bored smr 90442 493254 0 0 2 0x14200 zerothread 65389 316627 0 0 3 0x14200 aiodoned aiodoned 39163 276332 0 0 3 0x14200 syncer update 85308 348178 0 0 3 0x14200 cleaner cleaner 95247 440417 0 0 3 0x14200 reaper reaper 71358 345863 0 0 3 0x14200 pgdaemon pagedaemon 32722 322656 0 0 3 0x14200 bored viomb 51499 294566 0 0 3 0x40014200 acpi0 acpi0 55489 449996 0 0 3 0x40014200 idle1 84815 151 0 0 3 0x14200 bored softnet1 10608 451100 0 0 3 0x14200 bored softnet0 50790 51570 0 0 3 0x14200 bored systqmp 94388 487710 0 0 3 0x14200 bored systq 19869 434036 0 0 3 0x14200 tmoslp softclockmp 3343 174343 0 0 3 0x40014200 tmoslp softclock 89428 382676 0 0 3 0x40014200 idle0 1 289662 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 91119 (syz-executor) thread 0xffff8000fffe3250 (402408) Process 91119 (syz-executor) thread 0xffff8000fffe2558 (232889) Process 53372 (syz-executor) thread 0xffff8000fffe9778 (516407) Process 31331 (syz-executor) thread 0xffff80002a2707e0 (168036) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10238 11064K 11794K 166960K 12494 0 pcb 17 13K 14K 166960K 307 0 rtable 213 10K 10K 166960K 495 0 pf 37 18K 67485K 166960K 224 0 ifaddr 39 6K 8K 166960K 100 0 ifgroup 55 2K 2K 166960K 163 0 sysctl 4 1K 9K 166960K 15 0 counters 68 36K 37K 166960K 188 0 ioctlops 0 0K 4K 166960K 1708 0 iov 0 0K 32K 166960K 144 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1427 90K 90K 166960K 2275 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 16 0 VM map 2 1K 1K 166960K 2 0 sem 12 1K 1K 166960K 37 0 dirhash 12 2K 2K 166960K 30 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 240K 166960K 1257 0 sigio 0 0K 0K 166960K 27 0 proc 73 115K 196K 166960K 740 0 subproc 72 4K 4K 166960K 99 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 126 0 in_multi 86 6K 7K 166960K 180 0 ether_multi 1 0K 0K 166960K 17 0 mrt 1 0K 0K 166960K 7 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 673 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 237 159K 175K 166960K 13071 0 UVM aobj 31 4K 4K 166960K 36 0 pinsyscall 41 82K 104K 166960K 2422 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 81 0 NDP 12 0K 1K 166960K 72 0 temp 81 8656K 8904K 166960K 65675 0 kqueue 14 22K 31K 166960K 260 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 26 0 0 1 0 1 1 0 8 0 rtpcb 120 125 0 122 1 0 1 1 0 8 0 rtentry 176 153 0 70 5 0 5 5 0 8 0 unpcb 144 630 0 611 3 2 1 2 0 8 0 syncache 336 14 0 14 3 2 1 1 0 8 1 tcpqe 32 3 0 3 2 2 0 1 0 8 0 tcpcb 736 579 0 573 17 9 8 8 0 8 7 arp 136 18 0 8 1 0 1 1 0 8 0 inpcb 328 1496 0 1486 13 6 7 8 0 8 5 nd6 152 30 0 10 1 0 1 1 0 8 0 pkpcb 40 17 0 17 3 2 1 1 0 8 1 kcovpl 48 11 0 3 1 0 1 1 0 8 0 ppxss 1192 48 0 48 2 1 1 1 0 8 1 pppxif 1504 3 0 3 2 1 1 1 0 8 1 pfstscr 40 5 0 5 2 2 0 1 0 8 0 pffrag 232 5 0 1 1 0 1 1 0 482 0 pffrnode 88 5 0 1 1 0 1 1 0 8 0 pffrent 40 75 0 71 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 6 0 6 1 1 0 1 0 8 0 pfanchor 1288 1 0 1 1 1 0 1 0 8 0 pftag 88 2 0 2 1 1 0 1 0 8 0 pfstitem 24 82 0 21 1 0 1 1 0 8 0 pfstkey 128 89 0 28 2 0 2 2 0 8 0 pfstate 384 86 0 26 6 0 6 6 0 8 0 pfrule 1344 25 0 20 2 1 1 2 0 8 0 rttmr 136 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 683 0 303 32 7 25 29 0 8 0 art_table 40 686 0 303 5 0 5 5 0 8 0 art_node 32 151 0 77 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 8 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 31 0 22 1 0 1 1 0 8 0 shmpl 112 33 0 5 1 0 1 1 0 8 0 dirhash 1024 29 0 12 3 0 3 3 0 8 0 dino2pl 256 3677 0 2166 95 0 95 95 0 8 0 ffsino 296 3677 0 2166 117 0 117 117 0 8 0 nchpl 144 5350 0 3652 64 0 64 64 0 8 0 rtmask 32 12 0 12 2 1 1 1 0 8 1 vnodes 216 4233 0 0 236 0 236 236 0 8 0 namei 1024 18559 0 18558 4 2 2 2 0 8 1 percpumem 16 109 0 60 1 0 1 1 0 8 0 pfiaddrpl 120 1 0 1 1 1 0 1 0 8 0 kstatmem 264 104 0 76 3 0 3 3 0 8 0 scsiplug 72 6 0 6 2 1 1 1 0 8 1 scxspl 216 37905 0 37905 10 9 1 8 1 8 1 plimitpl 152 353 0 335 1 0 1 1 0 8 0 sigapl 424 1543 0 1495 7 1 6 7 0 8 0 knotepl 120 557 0 0 17 0 17 17 0 8 0 kqueuepl 224 488 0 477 4 3 1 3 0 8 0 pipepl 344 307 0 280 9 6 3 9 0 8 0 fdescpl 528 1512 0 1482 3 0 3 3 0 8 0 filepl 160 9259 0 9032 23 9 14 19 0 8 3 lockfpl 104 345 0 341 1 0 1 1 0 8 0 lockfspl 48 138 0 135 1 0 1 1 0 8 0 sessionpl 144 32 0 23 1 0 1 1 0 8 0 pgrppl 48 94 0 77 1 0 1 1 0 8 0 ucredpl 104 1396 0 1383 1 0 1 1 0 8 0 zombiepl 144 1638 0 1636 1 0 1 1 0 8 0 processpl 1232 1543 0 1495 6 1 5 5 0 8 0 procpl 664 3417 0 3360 7 1 6 7 0 8 0 sosppl 168 4 0 4 2 2 0 1 0 8 0 sockpl 752 2340 0 2308 18 7 11 12 0 8 6 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 109 0 0 14 0 14 14 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 43 0 0 6 0 6 6 0 8 0 mtagpl 96 33 0 0 1 0 1 1 0 8 0 mbufpl 256 1153 0 0 72 0 72 72 0 8 0 bufpl 280 15943 0 9800 440 0 440 440 0 8 0 anonpl 32 12681 0 0 103 0 103 103 0 246 0 amapchunkpl 152 44014 0 43538 37 6 31 31 0 158 10 amappl16 200 6380 0 6346 51 36 15 31 0 8 7 amappl15 192 26 0 26 2 1 1 1 0 8 1 amappl14 184 150 0 138 1 0 1 1 0 8 0 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 2213 0 2182 3 1 2 2 0 8 0 amappl11 160 52 0 38 1 0 1 1 0 8 0 amappl10 152 7 0 7 1 1 0 1 0 8 0 amappl9 144 256 0 255 2 1 1 1 0 8 0 amappl8 136 23 0 20 1 0 1 1 0 8 0 amappl7 128 123 0 109 1 0 1 1 0 8 0 amappl6 120 224 0 221 1 0 1 1 0 8 0 amappl5 112 152 0 143 1 0 1 1 0 8 0 amappl4 104 325 0 306 1 0 1 1 0 8 0 amappl3 96 7622 0 7527 4 1 3 3 0 8 0 amappl2 88 1798 0 1720 2 0 2 2 0 8 0 amappl1 80 14366 0 13778 14 0 14 14 0 8 0 amappl 88 12112 0 11949 5 0 5 5 0 92 0 uvmvnodes 80 4233 0 0 87 0 87 87 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 257 0 257 3 2 1 1 0 8 1 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 35 0 5 1 0 1 1 0 8 0 uaddrrnd 24 1512 0 1482 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1512 0 1482 1 0 1 1 0 8 0 vmmpekpl 168 13890 0 13840 3 0 3 3 0 8 0 vmmpepl 168 103176 0 101246 117 13 104 113 0 357 4 vmsppl 488 1511 0 1482 5 0 5 5 0 8 0 rwobjpl 80 34401 0 29205 110 0 110 110 0 8 2 pdppl 4096 3032 0 2964 112 40 72 88 0 8 4 pvpl 32 20790 0 0 168 0 168 168 0 265 0 pmappl 256 1511 0 1482 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 372 0 62 9 0 9 9 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_semop(ffff8000fffe3250,ffff8000387f3f70,ffff8000387f3ec0) at sys_semop+0x384 sys/kern/sysv_sem.c:604 syscall(ffff8000387f3f70) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff8000387f3f70) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x378274802d0, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff8000299edff0) 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: 0x721963d92270, count: -3