panic: vop_gepnaeniricc:_ kbeadronpe l Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 157909 8022 32767 0x10 0 1 syz-executor.5 *155483 78084 32767 0x10 0 0 syz-executor.2 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8259ad61) at panic+0x177 sys/kern/subr_prf.c:198 vop_generic_badop(ffff800024770468) at vop_generic_badop+0x1b sys/kern/vfs_default.c:133 VOP_STRATEGY(fffffd8078e4fb08,fffffd8074d2ec90) at VOP_STRATEGY+0x9b sys/kern/vfs_vops.c:628 bwrite(fffffd8074d2ec90) at bwrite+0x1f0 sys/kern/vfs_bio.c:760 VOP_BWRITE(fffffd8074d2ec90) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:640 ufs_mkdir(ffff800024770700) at ufs_mkdir+0x6b4 sys/ufs/ufs/ufs_vnops.c:1236 VOP_MKDIR(fffffd80689931c8,ffff800024770860,ffff800024770890,ffff800024770790) at VOP_MKDIR+0xbf sys/kern/vfs_vops.c:388 domkdirat(ffff8000ffff4d20,ffffff9c,7f7ffffbf130,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:3112 syscall(ffff800024770a10) at syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff800024770a10) at syscall+0x435 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbf1a0, count: 4 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: vop_generic_badop cpu1: kernel diagnostic assertion "!_kernel_lock_held()" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_fork.c", line 676 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8259ad61) at panic+0x177 sys/kern/subr_prf.c:198 vop_generic_badop(ffff800024770468) at vop_generic_badop+0x1b sys/kern/vfs_default.c:133 VOP_STRATEGY(fffffd8078e4fb08,fffffd8074d2ec90) at VOP_STRATEGY+0x9b sys/kern/vfs_vops.c:628 bwrite(fffffd8074d2ec90) at bwrite+0x1f0 sys/kern/vfs_bio.c:760 VOP_BWRITE(fffffd8074d2ec90) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:640 ufs_mkdir(ffff800024770700) at ufs_mkdir+0x6b4 sys/ufs/ufs/ufs_vnops.c:1236 VOP_MKDIR(fffffd80689931c8,ffff800024770860,ffff800024770890,ffff800024770790) at VOP_MKDIR+0xbf sys/kern/vfs_vops.c:388 domkdirat(ffff8000ffff4d20,ffffff9c,7f7ffffbf130,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:3112 syscall(ffff800024770a10) at syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff800024770a10) at syscall+0x435 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbf1a0, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800024770390 rbx 0xffffffff829a6b8f cpu_info_full_primary+0x2b8f rdx 0 rcx 0 rax 0xffff8000ffff4d20 r8 0x101010101010101 r9 0x8080808080808080 r10 0x4ba6b9f0429099af r11 0xeb340da312f219b3 r12 0xffffffff829a6990 cpu_info_full_primary+0x2990 r13 0 r14 0 r15 0x1 rip 0xffffffff813adfe8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024770380 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.2) pid=155483 stat=onproc flags process=10 proc=0 pri=17, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff4000,0xffff8000ffff5510 process=0xffff8000ffff8858 user=0xffff80002476b000, vmspace=0xfffffd807c7b0e68 estcpu=36, cpticks=0, pctcpu=0.1 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 8022 157909 27670 32767 7 0x10 syz-executor.5 16550 324029 93481 32767 2 0x10 syz-executor.1 43086 2097 99417 32767 2 0x10 syz-executor.0 43086 447846 99417 32767 3 0x4000090 fsleep syz-executor.0 19187 209674 45777 32767 2 0x10 syz-executor.4 19187 52210 45777 32767 2 0x4000010 syz-executor.4 19187 33966 45777 32767 2 0x4000010 syz-executor.4 45776 332144 22526 32767 2 0x10 syz-executor.3 45776 29987 22526 32767 3 0x4000090 netio syz-executor.3 45776 164424 22526 32767 3 0x4000090 fsleep syz-executor.3 95481 304170 76373 32767 3 0x90 nanoslp syz-executor.6 95481 381241 76373 32767 3 0x4000090 netio syz-executor.6 95481 29633 76373 32767 3 0x4000090 fsleep syz-executor.6 22526 465788 78780 32767 3 0x90 nanoslp syz-executor.3 78780 204143 81424 0 3 0x82 wait syz-executor.3 45777 185038 80201 32767 3 0x90 nanoslp syz-executor.4 80201 405788 81424 0 3 0x82 wait syz-executor.4 76373 316183 67201 32767 3 0x90 nanoslp syz-executor.6 67201 515465 81424 0 3 0x82 wait syz-executor.6 25628 213979 0 0 3 0x14200 bored sosplice 59709 319123 93895 32767 2 0x10 syz-executor.7 27670 466682 19570 32767 3 0x90 nanoslp syz-executor.5 93895 66170 81424 0 3 0x82 wait syz-executor.7 19570 443180 81424 0 3 0x82 wait syz-executor.5 93481 309148 37415 32767 3 0x90 nanoslp syz-executor.1 *78084 155483 19598 32767 7 0x10 syz-executor.2 37415 112532 81424 0 3 0x82 wait syz-executor.1 19598 275851 81424 0 3 0x82 wait syz-executor.2 99417 327606 99721 32767 3 0x90 nanoslp syz-executor.0 99721 106265 81424 0 3 0x82 wait syz-executor.0 81424 468469 44351 0 3 0x82 wait syz-fuzzer 81424 125157 44351 0 3 0x4000082 nanoslp syz-fuzzer 81424 62980 44351 0 3 0x4000082 thrsleep syz-fuzzer 81424 65005 44351 0 3 0x4000082 wait syz-fuzzer 81424 94354 44351 0 3 0x4000082 wait syz-fuzzer 81424 304612 44351 0 3 0x4000082 wait syz-fuzzer 81424 20336 44351 0 3 0x4000082 thrsleep syz-fuzzer 81424 190691 44351 0 3 0x4000082 wait syz-fuzzer 81424 26785 44351 0 3 0x4000082 thrsleep syz-fuzzer 81424 503826 44351 0 3 0x4000082 wait syz-fuzzer 81424 348607 44351 0 3 0x4000082 wait syz-fuzzer 81424 522933 44351 0 3 0x4000082 thrsleep syz-fuzzer 81424 2335 44351 0 3 0x4000082 wait syz-fuzzer 81424 446104 44351 0 3 0x4000082 kqread syz-fuzzer 81424 436711 44351 0 3 0x4000082 thrsleep syz-fuzzer 81424 461552 44351 0 3 0x4000082 thrsleep syz-fuzzer 44351 43919 21940 0 3 0x10008a sigsusp ksh 21940 183277 81534 0 3 0x9a kqread sshd 27723 171338 1 0 3 0x100083 ttyin getty 81534 369606 1 0 3 0x88 kqread sshd 49069 307383 63624 73 3 0x1100090 kqread syslogd 63624 57662 1 0 3 0x100082 netio syslogd 5772 46798 1 0 3 0x100080 kqread resolvd 92273 465196 65141 77 3 0x100092 kqread dhcpleased 15301 336552 65141 77 3 0x100092 kqread dhcpleased 65141 375480 1 0 3 0x80 kqread dhcpleased 11057 296136 0 0 3 0x14200 bored smr 9018 443590 0 0 2 0x14200 zerothread 65010 360999 0 0 3 0x14200 aiodoned aiodoned 88527 304242 0 0 3 0x14200 syncer update 3134 415597 0 0 3 0x14200 cleaner cleaner 62060 403389 0 0 3 0x14200 reaper reaper 72419 102018 0 0 3 0x14200 pgdaemon pagedaemon 44047 349206 0 0 3 0x14200 bored viomb 59910 124748 0 0 3 0x40014200 acpi0 acpi0 25989 175576 0 0 3 0x40014200 idle1 26017 136332 0 0 3 0x14200 bored softnet 32482 198749 0 0 3 0x14200 bored softnet 64947 219838 0 0 3 0x14200 bored softnet 81432 158038 0 0 3 0x14200 bored softnet 39679 339803 0 0 3 0x14200 bored systqmp 52440 194562 0 0 3 0x14200 bored systq 70140 85960 0 0 3 0x40014200 bored softclock 17521 419322 0 0 3 0x40014200 idle0 1 523627 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 78084 (syz-executor.2) thread 0xffff8000ffff4d20 (155483) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82ba7c30) #0 witness_lock+0x44d #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x3bb sys/kern/sched_bsd.c:415 #3 sleep_finish+0x180 sys/kern/kern_synch.c:417 #4 tsleep+0x12c sys/kern/kern_synch.c:155 #5 biowait+0x91 sys/kern/vfs_bio.c:1268 #6 bwrite+0x21b sys/kern/vfs_bio.c:769 #7 ffs_update+0x27d sys/ufs/ffs/ffs_inode.c:113 #8 ufs_mkdir+0x662 sys/ufs/ufs/ufs_vnops.c:1220 #9 VOP_MKDIR+0xbf sys/kern/vfs_vops.c:388 #10 domkdirat+0x121 sys/kern/vfs_syscalls.c:3112 #11 syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] #11 syscall+0x435 sys/arch/amd64/amd64/trap.c:585 #12 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80684bea30) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:465 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:518 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:564 #5 vget+0x1fc sys/kern/vfs_subr.c:676 #6 ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1324 #8 ffs_inode_alloc+0x1be sys/ufs/ffs/ffs_alloc.c:394 #9 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1150 #10 VOP_MKDIR+0xbf sys/kern/vfs_vops.c:388 #11 domkdirat+0x121 sys/kern/vfs_syscalls.c:3112 #12 syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] #12 syscall+0x435 sys/arch/amd64/amd64/trap.c:585 #13 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80709da1a8) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:465 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:518 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0xd1 sys/kern/vfs_lookup.c:412 #6 namei+0x36a sys/kern/vfs_lookup.c:244 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:3097 #8 syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] #8 syscall+0x435 sys/arch/amd64/amd64/trap.c:585 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10221 6413K 6420K 78643K 11325 0 pcb 13 16K 20K 78643K 19 0 rtable 244 6K 7K 78643K 1153 0 ifaddr 82 16K 16K 78643K 112 0 sysctl 2 0K 2K 78643K 6 0 counters 56 35K 35K 78643K 64 0 ioctlops 0 0K 2K 78643K 178 0 iov 0 0K 24K 78643K 4443 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1271 79K 79K 78643K 4845 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 180 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 645 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 24 89K 125K 78643K 12384 0 sigio 0 0K 0K 78643K 395 0 proc 56 78K 103K 78643K 1328 0 subproc 104 6K 6K 78643K 156 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1515 0 in_multi 99 6K 7K 78643K 342 0 ether_multi 1 0K 0K 78643K 43 0 mrt 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 253 1129K 1129K 78643K 253 0 exec 0 0K 2K 78643K 2809 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 359 88K 5002K 78643K 78553 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 3 0K 0K 78643K 4303 0 NDP 11 0K 2K 78643K 39 0 temp 124 4734K 4862K 78643K 31971 0 kqueue 12 18K 26K 78643K 1150 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 1116 0 1113 11 10 1 3 0 8 0 rtentry 112 176 0 61 4 0 4 4 0 8 0 unpcb 144 15452 0 15435 134 130 4 11 0 8 3 syncache 296 114 0 114 21 21 0 1 0 8 0 tcpqe 32 52 0 52 17 17 0 1 0 8 0 tcpcb 768 5922 0 5916 192 183 9 28 0 8 8 arp 120 28 0 9 1 0 1 1 0 8 0 ipq 40 23 0 23 7 7 0 1 0 8 0 ipqe 40 133 0 133 7 7 0 1 0 8 0 inpcb 368 23249 0 23167 176 165 11 19 0 8 2 nd6 48 55 0 27 1 0 1 1 0 8 0 kcovpl 48 12 0 4 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 746 0 279 37 6 31 31 0 8 1 art_table 32 747 0 279 4 0 4 4 0 8 0 art_node 16 175 0 70 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 2 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 640 0 630 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 19477 0 18018 92 0 92 92 0 8 0 ffsino 272 19477 0 18018 98 0 98 98 0 8 0 nchpl 144 36471 0 34833 63 0 63 63 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 125762 0 125761 6 5 1 2 0 8 0 percpumem 16 44 0 4 1 0 1 1 0 8 0 kstatmem 264 30 0 8 2 0 2 2 0 8 0 scxspl 216 113550 0 113550 50 48 2 8 0 8 2 plimitpl 152 3440 0 3416 24 22 2 2 0 8 1 sigapl 424 12666 0 12613 7 0 7 7 0 8 0 futexpl 64 123886 0 123883 5 4 1 1 0 8 0 knotepl 120 865 0 0 17 2 15 17 0 8 0 kqueuepl 216 4042 0 4034 67 62 5 8 0 8 4 pipepl 320 2301 0 2273 62 59 3 9 0 8 0 fdescpl 496 12648 0 12613 9 4 5 6 0 8 0 filepl 152 104934 0 104624 178 163 15 24 0 8 2 lockfpl 104 2646 0 2644 3 2 1 2 0 8 0 lockfspl 48 684 0 682 1 0 1 1 0 8 0 sessionpl 144 27 0 11 1 0 1 1 0 8 0 pgrppl 48 90 0 74 1 0 1 1 0 8 0 ucredpl 104 19402 0 19384 1 0 1 1 0 8 0 zombiepl 144 12613 0 12613 1 0 1 1 0 8 1 processpl 1064 12666 0 12613 5 1 4 5 0 8 0 procpl 672 38870 0 38795 27 19 8 9 0 8 0 sosppl 168 223 0 223 15 14 1 1 0 8 1 sockpl 488 40385 0 40288 682 668 14 37 0 8 0 mcl64k 65536 37 0 0 4 1 3 3 0 8 0 mcl16k 16384 28 0 0 3 0 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 4 1 3 3 0 8 0 mcl4k 4096 66 0 0 5 0 5 5 0 8 0 mcl2k2 2112 14 0 0 1 0 1 1 0 8 0 mcl2k 2048 295 0 0 26 4 22 26 0 8 0 mtagpl 96 19 0 0 1 0 1 1 0 8 0 mbufpl 256 2325 0 0 112 0 112 112 0 8 0 bufpl 288 25763 0 19432 453 0 453 453 0 8 0 anonpl 24 2565387 0 2552231 210 104 106 118 0 186 1 amapchunkpl 152 1221583 0 1220847 9937 9903 34 5488 0 158 0 amappl16 200 36768 0 36430 156 137 19 36 0 8 0 amappl15 192 126 0 112 1 0 1 1 0 8 0 amappl14 184 780 0 774 1 0 1 1 0 8 0 amappl13 176 115 0 114 1 0 1 1 0 8 0 amappl12 168 1534 0 1528 2 1 1 1 0 8 0 amappl11 160 3874 0 3856 1 0 1 1 0 8 0 amappl10 152 3098 0 3088 1 0 1 1 0 8 0 amappl9 144 3363 0 3352 1 0 1 1 0 8 0 amappl8 136 1807 0 1668 5 0 5 5 0 8 0 amappl7 128 1038 0 1018 1 0 1 1 0 8 0 amappl6 120 2716 0 2689 2 1 1 2 0 8 0 amappl5 112 11683 0 11667 1 0 1 1 0 8 0 amappl4 104 7460 0 7417 2 0 2 2 0 8 0 amappl3 96 41244 0 41182 2 0 2 2 0 8 0 amappl2 88 14905 0 14830 3 1 2 3 0 8 0 amappl1 80 307880 0 307081 22 4 18 21 0 8 0 amappl 88 77242 0 77037 7 1 6 6 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 12648 0 12613 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12648 0 12613 1 0 1 1 0 8 0 vmmpekpl 168 109469 0 109413 3 0 3 3 0 8 0 vmmpepl 168 1257394 0 1254394 272 130 142 150 0 357 1 vmsppl 368 12647 0 12613 4 0 4 4 0 8 0 rwobjpl 56 318975 0 311363 135 26 109 113 0 8 0 pdppl 4096 25303 0 25226 329 248 81 95 0 8 4 pvpl 32 4996614 0 4977154 468 276 192 254 0 265 4 pmappl 248 12647 0 12613 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1356 0 432 27 0 27 27 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8259ad61) at panic+0x177 sys/kern/subr_prf.c:198 vop_generic_badop(ffff800024770468) at vop_generic_badop+0x1b sys/kern/vfs_default.c:133 VOP_STRATEGY(fffffd8078e4fb08,fffffd8074d2ec90) at VOP_STRATEGY+0x9b sys/kern/vfs_vops.c:628 bwrite(fffffd8074d2ec90) at bwrite+0x1f0 sys/kern/vfs_bio.c:760 VOP_BWRITE(fffffd8074d2ec90) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:640 ufs_mkdir(ffff800024770700) at ufs_mkdir+0x6b4 sys/ufs/ufs/ufs_vnops.c:1236 VOP_MKDIR(fffffd80689931c8,ffff800024770860,ffff800024770890,ffff800024770790) at VOP_MKDIR+0xbf sys/kern/vfs_vops.c:388 domkdirat(ffff8000ffff4d20,ffffff9c,7f7ffffbf130,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:3112 syscall(ffff800024770a10) at syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff800024770a10) at syscall+0x435 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbf1a0, count: -11 ddb{0}> machine ddbcpu 1