last executing test programs: 162.12905ms ago: executing program 0 (id=1): mkdirat(0xffffffffffffff9c, &(0x7f0000000080)='./file1\x00', 0xa7210e10bc3c9def) pipe(&(0x7f00000002c0)={0xffffffffffffffff}) r1 = openat(r0, &(0x7f0000000080)='./file1\x00', 0x0, 0x10a) mmap(&(0x7f0000000000/0x400000)=nil, 0x400000, 0x3, 0x5012, 0xffffffffffffffff, 0x0) fchdir(r1) socketpair$unix(0x1, 0x5, 0x0, &(0x7f0000000040)={0xffffffffffffffff}) getsockopt$sock_cred(r2, 0xffff, 0x1022, &(0x7f0000000280)={0x0, 0x0, 0x0}, &(0x7f0000000140)=0xc) semctl$IPC_SET(0x0, 0x0, 0x1, &(0x7f00000000c0)={{0x0, 0x0, r3}}) sysctl$kern(&(0x7f00000000c0)={0x1, 0x4e}, 0x2, &(0x7f0000000300)="6ff91ecd378a4e588e5f84cf71b59c7af6d5d889fca0b88cb19a14ee0a20de8db3a97d2b3e8c7538ef29d0c651d294979a3a9ab1e2dcf76dc09959f2677341c041790689e64d4f8dc54b31558eed21bc3d3d96b4fdd7725bf491e1e73ce6897693a7db932efd11378ac033cdffae19115c819dd332c88f3c61804661af0749b553005ecbbb145c0ba1a13ebe9e53058afd8a73745be0b6ba4e8ce94a1c93deb35d470a7edba3c2b28bd0e48ff1f0b0cd1cebb06da46ec1bc22affc88d9f7c3cf306a43dbb3570339d4d77de7052a4c7bce4e5ca3ddacd3d22d058ec7e91e2505253e2491e98fa84831a5cbc81fd4af393f3e9a3973252210bfe8bbf5c2f2c6da", &(0x7f0000000240)=0x100, 0x0, 0x0) r4 = semget$private(0x0, 0x7, 0x3c0) r5 = socket(0x2, 0x1, 0x0) shutdown(r5, 0x1) setsockopt$inet_opts(r5, 0x0, 0x0, 0x0, 0x0) pipe2(&(0x7f0000000000)={0xffffffffffffffff}, 0x10000) pipe2(0x0, 0x0) semop(r4, &(0x7f0000000040)=[{0x4, 0x3, 0x1400}, {0x3, 0x2, 0x800}, {0x2, 0x0, 0x1800}], 0x3) sysctl$vfs_ffs(&(0x7f0000000040)={0x7, 0x4, 0x8735c1d74850a673}, 0x3, 0x0, 0x0, 0x0, 0x0) socket(0x18, 0x2, 0x0) r7 = socket(0x2, 0x4001, 0x0) r8 = fcntl$dupfd(r7, 0x2, 0xffffffffffffffff) close(r8) setsockopt$sock_int(r8, 0xffff, 0x1023, 0x0, 0x0) ioctl$TIOCSPGRP(r8, 0x40047477, &(0x7f0000000180)) setsockopt(r6, 0x6, 0x7e8, &(0x7f00000000c0)="dcc308d02dbb61ecdc0966119a37913bf30ed975bc1fba1a35df1c47783e54b27bf177afab5d49d05d8fdf3b72a678a822e058bf7843d6861562fb2d75a489cdc9baa6b58c5bdf92226b0fa471a9af4b44b74f91c57492b13048bddca1308150139778b597ecf8a3db263f756fdaf54e9d8cb14b320a5bfcd0b8832a4ea60c7d43d78cdd240e85c2a75e1e437012a68343809b5f96d4bc3eeb1f0d36adc8fdf131e8efe9189e3ae838b75319da1f8cd0057b6bc367", 0xb5) socket(0x6, 0x8000, 0x1) syz_emit_ethernet(0x113b, &(0x7f0000001380)=ANY=[@ANYBLOB="aaaaaaaaaaaaffffffffffff86dd6014f2fe1105"]) mmap(&(0x7f0000ffd000/0x1000)=nil, 0xfffffffffffffffc, 0x0, 0x10, 0xffffffffffffffff, 0x3) r9 = kqueue() ioctl$FIOGETOWN(r9, 0x4004667b, 0x0) syz_emit_ethernet(0x3e, 0x0) 0s ago: executing program 2 (id=3): setrlimit(0x8, &(0x7f0000000580)={0xa, 0x56}) r0 = syz_open_pts() close(r0) (async) close(r0) r1 = syz_open_pts() ioctl$TIOCSETAW(r1, 0x802c7415, &(0x7f0000000000)={0x29f57362, 0x5fff, 0x1f, 0x3, "0a00000312286e4c7d90ab4ad864d3c3a3f4d3c9", 0x3}) writev(r0, &(0x7f0000000940), 0x0) (async) writev(r0, &(0x7f0000000940), 0x0) kernel console output (not intermixed with test programs): Warning: Permanently added '10.128.1.176' (ED25519) to the list of known hosts. kernel: protection fault trap, code=0 Stopped at sys_semop+0x45b: movzwl 0(%rax),%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(ffff8000fffea538,ffff80003720a3c0,ffff80003720a310) at sys_semop+0x45b syscall(ffff80003720a3c0) at syscall+0xaf8 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc366ebbbb20, count: -3 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003720a2e0 rbx 0 rdx 0 rcx 0xffff8000fffea538 rax 0xdeaf4152deaf4152 r8 0x7f7fffffc000 r9 0xfffffd807f7d31a0 r10 0xb7a30cb05942579b r11 0x41ee598bee1b0827 r12 0xffff80003720a1c4 r13 0 r14 0xffff80003720a3c0 r15 0 rip 0xffffffff828121bb sys_semop+0x45b cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003720a1c0 ss 0x10 sys_semop+0x45b: movzwl 0(%rax),%r15d ddb{1}> show proc PROC (syz-executor) tid=5032 pid=44717 tcnt=4 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=52, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000fffeacd0,0xffff8000fffebc10 process=0xffff8000fffef1f8 user=0xffff800037205000, vmspace=0xfffffd806c0b0dc0 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 44717 63604 21190 32767 7 0x10 syz-executor *44717 5032 21190 32767 7 0x4000010 syz-executor 44717 229286 21190 32767 2 0x4000090 syz-executor 44717 455236 21190 32767 3 0x4000090 fsleep syz-executor 47673 386897 20884 0 2 0x100002 sh 33056 132348 86624 0 2 0x100002 arp 86624 300707 48707 0 3 0x10008a sigsusp sh 95943 424734 54601 32767 2 0x10 syz-executor 95943 308624 54601 32767 3 0x4000090 fsleep syz-executor 95943 496848 54601 32767 3 0x4000090 fsleep syz-executor 84820 215724 99818 0 2 0x100002 arp 18145 30062 159 32767 2 0x10 syz-executor 18145 32211 159 32767 3 0x4000090 fsleep syz-executor 99818 489497 81403 0 3 0x10008a sigsusp sh 28453 259055 11256 32767 2 0x10 syz-executor 28453 299637 11256 32767 3 0x4000090 fsleep syz-executor 48707 224441 82473 0 3 0x80 wait syz-executor 81944 218641 31738 32767 3 0x10 biowait syz-executor 20884 173837 35200 0 3 0x80 wait syz-executor 11256 282935 68653 32767 3 0x90 nanoslp syz-executor 21190 352575 51134 32767 3 0x90 nanoslp syz-executor 81403 302182 44043 0 3 0x80 wait syz-executor 159 513735 42495 32767 3 0x90 nanoslp syz-executor 54601 363462 35366 32767 3 0x90 nanoslp syz-executor 35200 163930 27665 0 3 0x82 wait syz-executor 51134 304638 27665 0 3 0x82 wait syz-executor 35366 76426 27665 0 3 0x82 wait syz-executor 44043 408447 27665 0 3 0x82 wait syz-executor 82473 319777 27665 0 3 0x82 wait syz-executor 42495 355118 27665 0 3 0x82 wait syz-executor 31738 23613 27665 0 3 0x82 wait syz-executor 68653 82474 27665 0 3 0x82 wait syz-executor 27665 143896 79677 0 3 0x82 kqread syz-executor 79677 83515 2514 0 3 0x10008a sigsusp ksh 2514 490609 52016 0 3 0x98 kqread sshd-session 52016 95982 85508 0 3 0x92 kqread sshd-session 48048 115765 1 0 3 0x100083 ttyin getty 85508 320459 1 0 3 0x88 kqread sshd 79084 183463 8902 73 3 0x1100090 kqread syslogd 8902 428832 1 0 3 0x100082 sbwait syslogd 46201 520291 1 0 3 0x100080 kqread resolvd 13156 220411 39055 77 3 0x100092 kqread dhcpleased 48102 514871 39055 77 3 0x100092 kqread dhcpleased 39055 358263 1 0 3 0x80 kqread dhcpleased 65016 74982 0 0 3 0x14200 bored smr 5308 214953 0 0 2 0x14200 zerothread 79158 312748 0 0 3 0x14200 aiodoned aiodoned 52941 129520 0 0 3 0x14200 syncer update 172 323745 0 0 3 0x14200 cleaner cleaner 35812 39811 0 0 3 0x14200 reaper reaper 9570 176341 0 0 3 0x14200 pgdaemon pagedaemon 25694 44735 0 0 3 0x14200 bored viomb 17 486899 0 0 3 0x40014200 acpi0 acpi0 28985 507853 0 0 3 0x40014200 idle1 23161 164229 0 0 3 0x14200 bored softnet3 17743 324955 0 0 3 0x14200 bored softnet2 45782 120615 0 0 3 0x14200 bored softnet1 8674 513006 0 0 3 0x14200 bored softnet0 42736 417915 0 0 3 0x14200 bored systqmp 19226 466158 0 0 3 0x14200 bored systq 65435 445862 0 0 3 0x14200 tmoslp softclockmp 17149 117131 0 0 3 0x40014200 tmoslp softclock 49341 7849 0 0 3 0x40014200 idle0 1 194229 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 44717 (syz-executor) thread 0xffff8000fffea538 (5032) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff835472d8) #0 witness_lock+0x5bb #1 __mp_acquire_count+0x58 #2 mi_switch+0x4b7 #3 sleep_finish+0x21e #4 rw_enter+0x348 #5 vm_map_lock_ln+0x143 #6 uvmfault_lookup+0xe8 #7 uvm_fault_check+0x83e #8 uvm_fault+0x112 #9 kpageflttrap+0x2d0 #10 kerntrap+0x14a #11 alltraps_kern_meltdown+0x7b #12 _copyin+0x57 #13 syscall+0xaf8 #14 Xsyscall+0x128 Process 81944 (syz-executor) thread 0xffff8000ffff4020 (218641) exclusive rrwlock inode r = 0 (0xfffffd806c4ee808) #0 witness_lock+0x5bb #1 rw_enter+0x41b #2 rrw_enter+0xbe #3 VOP_LOCK+0xa6 #4 ufs_ihashins+0x4f #5 ffs_vget+0x187 #6 ffs_inode_alloc+0x283 #7 ufs_mkdir+0x113 #8 VOP_MKDIR+0x102 #9 domkdirat+0x179 #10 syscall+0xaf8 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806c769d68) #0 witness_lock+0x5bb #1 rw_enter+0x41b #2 rrw_enter+0xbe #3 VOP_LOCK+0xa6 #4 vn_lock+0xa4 #5 vfs_lookup+0x109 #6 namei+0x7aa #7 domkdirat+0x8b #8 syscall+0xaf8 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10177 11046K 11059K 166960K 11255 0 pcb 17 12K 12K 166960K 17 0 rtable 188 5K 5K 166960K 278 0 pf 31 16K 16K 166960K 31 0 ifaddr 36 6K 6K 166960K 38 0 ifgroup 50 2K 2K 166960K 50 0 counters 64 36K 36K 166960K 64 0 ioctlops 0 0K 2K 166960K 26 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1364 86K 86K 166960K 1380 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 12 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 27 101K 125K 166960K 135 0 proc 58 79K 127K 166960K 452 0 subproc 104 6K 6K 166960K 104 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 2 0 in_multi 69 5K 5K 166960K 70 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 37 175K 175K 166960K 37 0 exec 0 0K 1K 166960K 323 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 236 73K 73K 166960K 2540 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 50 100K 111K 166960K 1096 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 21 1K 1K 166960K 21 0 temp 34 6810K 6874K 166960K 3492 0 kqueue 13 20K 22K 166960K 23 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 24 0 0 1 0 1 1 0 8 0 rtpcb 120 30 0 25 1 0 1 1 0 8 0 rtentry 112 88 0 1 3 0 3 3 0 8 0 unpcb 144 168 0 148 1 0 1 1 0 8 0 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 808 11 0 4 1 0 1 1 0 8 0 arp 120 16 0 0 1 0 1 1 0 8 0 inpcb 336 61 0 51 1 0 1 1 0 8 0 nd6 136 15 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 331 0 0 21 0 21 21 0 8 0 art_table 32 332 0 0 3 0 3 3 0 8 0 art_node 16 87 0 7 1 0 1 1 0 8 0 semupl 112 1 0 0 1 0 1 1 0 8 0 semapl 112 3 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1544 0 45 94 0 94 94 0 8 0 ffsino 272 1544 0 45 100 0 100 100 0 8 0 nchpl 144 1730 0 57 62 0 62 62 0 8 0 uvmvnodes 80 1657 0 0 34 0 34 34 0 8 0 vnodes 216 1657 0 0 93 0 93 93 0 8 0 namei 1024 4928 0 4927 1 0 1 1 0 8 0 percpumem 16 46 0 0 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 5003 0 5002 4 1 3 3 1 8 2 plimitpl 152 35 0 11 1 0 1 1 0 8 0 sigapl 424 406 0 349 8 0 8 8 0 8 0 futexpl 64 97 0 92 1 0 1 1 0 8 0 knotepl 120 53 0 0 2 0 2 2 0 8 0 kqueuepl 216 21 0 11 1 0 1 1 0 8 0 pipepl 320 102 0 72 3 0 3 3 0 8 0 fdescpl 496 388 0 349 7 1 6 6 0 8 0 filepl 152 1425 0 1172 10 0 10 10 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 21 0 5 1 0 1 1 0 8 0 pgrppl 48 29 0 5 1 0 1 1 0 8 0 ucredpl 104 72 0 56 1 0 1 1 0 8 0 zombiepl 144 349 0 349 1 0 1 1 0 8 1 processpl 1160 406 0 349 5 0 5 5 0 8 0 procpl 648 421 0 357 6 0 6 6 0 8 0 sockpl 664 259 0 223 4 0 4 4 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 145 0 0 19 0 19 19 0 8 0 mcl2k 2048 14 0 0 2 0 2 2 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 150 0 0 10 0 10 10 0 8 0 bufpl 280 2152 0 95 147 0 147 147 0 8 0 anonpl 24 130808 0 127594 24 0 24 24 0 185 4 amapchunkpl 152 8300 0 7820 19 0 19 19 0 158 0 amappl16 200 3506 0 3501 5 0 5 5 0 8 4 amappl15 192 27 0 27 1 0 1 1 0 8 1 amappl14 184 135 0 123 1 0 1 1 0 8 0 amappl13 176 37 0 37 1 0 1 1 0 8 1 amappl12 168 964 0 926 2 0 2 2 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 10 0 10 1 0 1 1 0 8 1 amappl9 144 141 0 141 1 0 1 1 0 8 1 amappl8 136 20 0 17 1 0 1 1 0 8 0 amappl7 128 107 0 95 1 0 1 1 0 8 0 amappl6 120 169 0 165 1 0 1 1 0 8 0 amappl5 112 124 0 116 1 0 1 1 0 8 0 amappl4 104 261 0 248 1 0 1 1 0 8 0 amappl3 96 1576 0 1487 3 0 3 3 0 8 0 amappl2 88 636 0 551 2 0 2 2 0 8 0 amappl1 80 7054 0 6474 13 0 13 13 0 8 0 amappl 88 2228 0 2051 4 0 4 4 0 92 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 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 388 0 349 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 388 0 349 1 0 1 1 0 8 0 vmmpekpl 168 4488 0 4454 2 0 2 2 0 8 0 vmmpepl 168 32223 0 30256 89 0 89 89 0 357 2 vmsppl 440 387 0 349 5 0 5 5 0 8 0 rwobjpl 56 14946 0 12399 37 0 37 37 0 8 0 pdppl 4096 783 0 698 115 18 97 97 0 8 12 pvpl 32 9170 0 0 75 0 75 75 0 265 1 pmappl 248 387 0 349 4 1 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 373 0 20 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff8346aff0) at x86_ipi_db+0x27 x86_ipi_handler() at x86_ipi_handler+0xd9 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 __mp_lock(ffffffff835470d0) at __mp_lock+0x1a3 intr_handler(ffff8000372040a0,ffff800000079f80) at intr_handler+0xe1 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f end of kernel end trace frame: 0x799a3088dfd0, count: -7 ddb{0}> machine ddbcpu 1 Stopped at sys_semop+0x45b: movzwl 0(%rax),%r15d ddb{1}> trace sys_semop(ffff8000fffea538,ffff80003720a3c0,ffff80003720a310) at sys_semop+0x45b syscall(ffff80003720a3c0) at syscall+0xaf8 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc366ebbbb20, count: -3