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(ffff80003c47ed28,ffff80003c47d390,ffff80003c47d2e0) at sys_semop+0x384 sys/kern/sysv_sem.c:604 syscall(ffff80003c47d390) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c47d390) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x687cea218a0, count: -3 ddb{0}> show registers rdi 0 rsi 0xfff9 __ALIGN_SIZE+0xeff9 rbp 0xffff80003c47d2b0 rbx 0xdeaf4152deaf4152 rdx 0xffff80000002a680 rcx 0xffff80003c47ed28 rax 0xffffffff8381aff0 cpu_info_full_primary+0x1ff0 r8 0x7f7fffffc000 r9 0 r10 0xffaa9b71e8860886 r11 0x48bdd72514b54570 r12 0xfffffff9 r13 0xfffffd805e03fc40 r14 0xffff80003c47d390 r15 0 rip 0xffffffff818b0114 sys_semop+0x384 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff80003c47d1c0 ss 0x10 sys_semop+0x384: movzwl 0(%rbx),%r15d ddb{0}> show proc PROC (syz-executor) tid=519172 pid=11148 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=84, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c47ea90,0xffff80003c47fa30 process=0xffff800038827aa0 user=0xffff80003c478000, vmspace=0xfffffd805c3ba5e0 estcpu=34, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 78612 53530 49586 0 2 0 syz-executor 78612 113080 49586 0 3 0x4000080 fsleep syz-executor 33013 74168 21107 0 2 0 syz-executor 33013 458661 21107 0 3 0x4000080 fsleep syz-executor 37827 147531 38961 0 2 0 syz-executor 37827 476344 38961 0 3 0x4000080 fsleep syz-executor 14821 138920 49115 0 2 0 syz-executor 14821 365833 49115 0 3 0x4000080 fsleep syz-executor 14821 68183 49115 0 3 0x4000080 fsleep syz-executor 14821 209512 49115 0 3 0x4000080 fsleep syz-executor 11223 268548 20790 0 3 0x80 nanoslp syz-executor 11223 276811 20790 0 2 0x4000000 syz-executor 11223 485039 20790 0 3 0x4000080 fsleep syz-executor 11223 51142 20790 0 3 0x4000080 fsleep syz-executor 11148 160787 79641 0 3 0x80 nanoslp syz-executor *11148 519172 79641 0 7 0x4000000 syz-executor 11148 419848 79641 0 3 0x4000080 fsleep syz-executor 11148 251485 79641 0 3 0x4000080 fsleep syz-executor 70257 498665 1 0 3 0x100083 ttyin getty 49586 213227 26471 0 3 0x82 nanoslp syz-executor 60960 171941 26471 0 3 0x82 wait syz-executor 39942 311740 26471 0 3 0x82 nanoslp syz-executor 48458 476622 0 0 3 0x14200 bored sosplice 20790 410978 26471 0 3 0x82 nanoslp syz-executor 38961 172670 26471 0 3 0x82 nanoslp syz-executor 49115 346322 26471 0 3 0x82 nanoslp syz-executor 79641 181771 26471 0 3 0x82 nanoslp syz-executor 21107 102609 26471 0 3 0x82 nanoslp syz-executor 26471 494252 64366 0 3 0x82 kqread syz-executor 64366 13566 4678 0 3 0x10008a sigsusp ksh 4678 410132 44462 0 3 0x98 kqread sshd-session 44462 23311 61862 0 3 0x92 kqread sshd-session 61862 453648 1 0 3 0x88 kqread sshd 17364 425667 82922 74 3 0x1100092 bpf pflogd 82922 152885 1 0 3 0x80 sbwait pflogd 10350 48428 64061 73 3 0x1100090 kqread syslogd 64061 477286 1 0 3 0x100082 sbwait syslogd 66964 141474 1 0 3 0x100080 kqread resolvd 18284 78552 3833 77 3 0x100092 kqread dhcpleased 27269 265040 3833 77 3 0x100092 kqread dhcpleased 3833 229570 1 0 3 0x80 kqread dhcpleased 36583 128896 0 0 3 0x14200 bored smr 89230 462822 0 0 2 0x14200 zerothread 38770 185424 0 0 3 0x14200 aiodoned aiodoned 22062 349706 0 0 3 0x14200 syncer update 77344 59732 0 0 3 0x14200 cleaner cleaner 53961 63059 0 0 3 0x14200 reaper reaper 19334 26849 0 0 3 0x14200 pgdaemon pagedaemon 94582 45514 0 0 3 0x14200 bored viomb 92850 393408 0 0 3 0x40014200 acpi0 acpi0 99754 517824 0 0 7 0x40014200 idle1 28056 81620 0 0 3 0x14200 bored softnet7 58722 150386 0 0 3 0x14200 bored softnet6 44492 322284 0 0 3 0x14200 bored softnet5 80352 38029 0 0 3 0x14200 bored softnet4 78108 220740 0 0 3 0x14200 bored softnet3 1017 156152 0 0 3 0x14200 bored softnet2 28431 152520 0 0 3 0x14200 bored softnet1 85418 52769 0 0 3 0x14200 bored softnet0 33696 450492 0 0 3 0x14200 bored systqmp 11376 519251 0 0 3 0x14200 bored systq 33569 262635 0 0 3 0x14200 tmoslp softclockmp 8104 249913 0 0 3 0x40014200 tmoslp softclock 62224 445956 0 0 3 0x40014200 idle0 1 416525 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 11148 (syz-executor) thread 0xffff80003c47ed28 (519172) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83892980) #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:174 #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:748 #5 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10266 11065K 11732K 166960K 13927 0 pcb 18 18K 23K 166960K 743 0 rtable 223 13K 14K 166960K 771 0 pf 50 20K 84K 166960K 264 0 ifaddr 42 7K 8K 166960K 174 0 ifgroup 76 3K 3K 166960K 310 0 sysctl 4 1K 9K 166960K 15 0 counters 78 38K 38K 166960K 334 0 ioctlops 0 0K 4K 166960K 2005 0 iov 0 0K 24K 166960K 139 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1517 95K 96K 166960K 3638 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 42 0 VM map 2 1K 1K 166960K 2 0 sem 12 1K 1K 166960K 127 0 dirhash 12 2K 2K 166960K 57 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 236K 166960K 2411 0 sigio 0 0K 0K 166960K 47 0 proc 72 115K 180K 166960K 905 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 0 0K 0K 166960K 399 0 in_multi 72 5K 7K 166960K 257 0 ether_multi 1 0K 0K 166960K 37 0 mrt 1 0K 0K 166960K 22 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 265 1182K 1182K 166960K 265 0 exec 0 0K 1K 166960K 856 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 10 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 267 178K 191K 166960K 24006 0 UVM aobj 11 2K 2K 166960K 11 0 pinsyscall 43 86K 105K 166960K 3573 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 1K 166960K 175 0 NDP 16 0K 2K 166960K 124 0 temp 81 8652K 8901K 166960K 109520 0 kqueue 14 22K 33K 166960K 457 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 375 0 372 5 4 1 3 0 8 0 rtentry 176 219 0 142 5 0 5 5 0 8 0 unpcb 144 1726 0 1709 11 10 1 7 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpqe 32 6 0 6 1 1 0 1 0 8 0 tcpcb 736 1033 0 1029 34 30 4 7 0 8 3 arp 128 24 0 12 1 0 1 1 0 8 0 inpcb 328 3311 0 3301 48 44 4 18 0 8 2 nd6 144 54 0 30 2 0 2 2 0 8 0 pkpcb 40 95 0 95 8 8 0 1 0 8 0 kcovpl 48 11 0 3 1 0 1 1 0 8 0 mppekey 1024 5 0 5 1 1 0 1 0 8 0 ppxss 1192 108 0 106 3 2 1 1 0 8 0 pppxif 1504 7 0 7 6 6 0 1 0 8 0 pffrag 232 22 0 14 1 0 1 1 0 482 0 pffrnode 88 22 0 14 1 0 1 1 0 8 0 pffrent 40 63 0 54 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 3 0 3 3 2 1 1 0 8 1 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 220 0 161 1 0 1 1 0 8 0 pfstkey 128 220 0 161 3 0 3 3 0 8 0 pfstate 384 219 0 161 8 0 8 8 0 8 0 pfrule 1344 26 0 20 2 1 1 2 0 8 0 rttmr 136 6 0 6 3 3 0 1 0 8 0 art_heap8 4096 4 0 1 4 1 3 3 0 8 0 art_heap4 256 1338 0 879 42 10 32 34 0 8 0 art_table 40 1342 0 880 6 0 6 6 0 8 0 art_node 32 219 0 155 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 3 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 120 0 111 1 0 1 1 0 8 0 shmpl 112 8 0 0 1 0 1 1 0 8 0 dirhash 1024 47 0 30 3 0 3 3 0 8 0 dino2pl 256 6220 0 4709 96 0 96 96 0 8 0 ffsino 296 6220 0 4709 117 0 117 117 0 8 0 nchpl 144 9722 0 8034 65 1 64 64 0 8 0 rtmask 32 19 0 18 7 6 1 1 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 36450 0 36450 6 5 1 3 0 8 1 percpumem 16 182 0 128 1 0 1 1 0 8 0 kstatmem 264 206 0 168 3 0 3 3 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 12 0 12 6 6 0 1 0 8 0 scxspl 216 57768 0 57768 10 9 1 8 1 8 1 plimitpl 152 808 0 790 2 1 1 2 0 8 0 sigapl 424 2725 0 2670 9 1 8 9 0 8 0 knotepl 120 649 0 0 17 0 17 17 0 8 0 kqueuepl 224 1148 0 1137 18 17 1 7 0 8 0 pipepl 344 488 0 461 13 10 3 6 0 8 0 fdescpl 528 2677 0 2645 3 0 3 3 0 8 0 filepl 160 21421 0 21198 45 32 13 21 0 8 2 lockfpl 104 1254 0 1252 4 3 1 2 0 8 0 lockfspl 48 486 0 484 1 0 1 1 0 8 0 sessionpl 144 27 0 18 1 0 1 1 0 8 0 pgrppl 48 77 0 60 1 0 1 1 0 8 0 ucredpl 104 3235 0 3219 1 0 1 1 0 8 0 zombiepl 144 4094 0 4092 1 0 1 1 0 8 0 processpl 1248 2725 0 2670 6 1 5 6 0 8 0 procpl 664 6672 0 6605 8 1 7 8 0 8 0 sosppl 168 28 0 28 5 4 1 1 0 8 1 sockpl 752 5600 0 5569 72 64 8 23 0 8 4 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 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 117 0 0 15 0 15 15 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 64 0 0 7 0 7 7 0 8 0 mtagpl 96 116 0 0 3 0 3 3 0 8 0 mbufpl 256 1293 0 0 78 0 78 78 0 8 0 bufpl 280 24483 0 18340 440 0 440 440 0 8 0 anonpl 32 14544 0 0 118 0 118 118 0 246 0 amapchunkpl 152 82958 0 82327 69 42 27 32 0 158 2 amappl16 200 9417 0 9350 102 86 16 37 0 8 6 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 135 0 123 1 0 1 1 0 8 0 amappl13 176 2 0 2 2 2 0 1 0 8 0 amappl12 168 3381 0 3349 4 2 2 3 0 8 0 amappl11 160 55 0 40 1 0 1 1 0 8 0 amappl10 152 6 0 6 2 2 0 1 0 8 0 amappl9 144 255 0 255 1 1 0 1 0 8 0 amappl8 136 27 0 24 1 0 1 1 0 8 0 amappl7 128 120 0 107 1 0 1 1 0 8 0 amappl6 120 210 0 206 1 0 1 1 0 8 0 amappl5 112 140 0 130 1 0 1 1 0 8 0 amappl4 104 303 0 282 1 0 1 1 0 8 0 amappl3 96 17039 0 16912 6 2 4 4 0 8 0 amappl2 88 705 0 640 2 0 2 2 0 8 0 amappl1 80 18098 0 17488 15 0 15 15 0 8 0 amappl 88 22878 0 22687 5 0 5 5 0 92 0 dma16384 16384 1 0 1 1 1 0 1 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 dma512 512 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 258 0 258 6 6 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 10 0 0 1 0 1 1 0 8 0 uaddrrnd 24 2677 0 2645 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2677 0 2645 1 0 1 1 0 8 0 vmmpekpl 168 22570 0 22522 4 1 3 4 0 8 0 vmmpepl 168 171700 0 169564 166 62 104 119 0 357 6 vmsppl 488 2676 0 2645 6 1 5 5 0 8 0 rwobjpl 80 50935 0 43984 155 8 147 152 0 8 1 pdppl 4096 5362 0 5290 122 50 72 86 0 8 0 pvpl 32 21450 0 0 173 0 173 173 0 265 0 pmappl 256 2676 0 2645 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 420 0 102 10 0 10 10 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_semop(ffff80003c47ed28,ffff80003c47d390,ffff80003c47d2e0) at sys_semop+0x384 sys/kern/sysv_sem.c:604 syscall(ffff80003c47d390) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c47d390) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x687cea218a0, 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 acpicpu_idle() at acpicpu_idle+0x457 sys/dev/acpi/acpicpu_x86.c:1224 sched_idle(ffff8000299edff0) at sched_idle+0x391 sys/kern/kern_sched.c:191 end trace frame: 0x0, count: -5