panic: attempt to execute user address 0x0 in suppanic: kernel diagnostic assertion "!_kernel_lock_held()" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_fork.c", line 690 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 247093 4755 0 0 0x4000000 0 syz-executor.1 * 18042 4755 0 0 0x4000000 1 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82207482,ffffffff821f26fc,2b2,ffffffff821d633d) at __assert+0x2b sys/kern/subr_prf.c:154 proc_trampoline_mp() at proc_trampoline_mp+0x123 end trace frame: 0x0, count: 11 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic attempt to execute user address 0x0 in supervisor mode ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82207482,ffffffff821f26fc,2b2,ffffffff821d633d) at __assert+0x2b sys/kern/subr_prf.c:154 proc_trampoline_mp() at proc_trampoline_mp+0x123 end trace frame: 0x0, count: -4 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800022d71440 rbx 0xffff800022d714f0 rdx 0xffff800020ab0ee8 rcx 0 rax 0 r8 0xffffffff813d3def kprintf+0x16f r9 0x1 r10 0x25 r11 0xbe83584cfb96b162 r12 0x3000000008 r13 0xffff800022d71450 r14 0x104 r15 0x1 rip 0xffffffff81b684c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d71430 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=18042 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0508,0xffffffff82633a68 process=0xffff800020adc380 user=0xffff800022d6c000, vmspace=0xfffffd807f00a8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 4755 404372 51787 0 2 0 syz-executor.1 4755 247093 51787 0 7 0x4000000 syz-executor.1 * 4755 18042 51787 0 7 0x4000000 syz-executor.1 13035 482011 35508 0 2 0 syz-executor.0 13035 279740 35508 0 2 0x4000000 syz-executor.0 13035 194656 35508 0 2 0x4000000 syz-executor.0 35508 193237 14399 0 3 0x82 nanosleep syz-executor.0 51787 452660 14399 0 3 0x82 nanosleep syz-executor.1 94517 146126 0 0 3 0x14200 acct acct 744 492666 1 0 3 0x100083 ttyin getty 814 203878 0 0 3 0x14200 bored sosplice 14399 181931 96672 0 3 0x82 thrsleep syz-fuzzer 14399 493388 96672 0 3 0x4000082 nanosleep syz-fuzzer 14399 211786 96672 0 3 0x4000082 thrsleep syz-fuzzer 14399 267490 96672 0 3 0x4000082 thrsleep syz-fuzzer 14399 417161 96672 0 3 0x4000082 thrsleep syz-fuzzer 14399 291791 96672 0 3 0x4000082 thrsleep syz-fuzzer 14399 242243 96672 0 3 0x4000082 thrsleep syz-fuzzer 14399 230981 96672 0 3 0x4000082 kqread syz-fuzzer 14399 364003 96672 0 3 0x4000082 thrsleep syz-fuzzer 14399 304061 96672 0 3 0x4000082 thrsleep syz-fuzzer 96672 210983 94656 0 3 0x10008a pause ksh 94656 157716 10604 0 3 0x92 select sshd 10604 329718 1 0 3 0x80 select sshd 76532 235098 52967 74 3 0x100092 bpf pflogd 52967 429495 1 0 3 0x80 netio pflogd 91773 323496 24423 73 3 0x100090 kqread syslogd 24423 434970 1 0 3 0x100082 netio syslogd 72149 73676 1 77 3 0x100090 poll dhclient 57627 449459 1 0 3 0x80 poll dhclient 43283 325797 0 0 2 0x14200 zerothread 14148 421344 0 0 3 0x14200 aiodoned aiodoned 43886 260037 0 0 3 0x14200 syncer update 53529 125676 0 0 3 0x14200 cleaner cleaner 38631 185133 0 0 3 0x14200 reaper reaper 86079 348822 0 0 3 0x14200 pgdaemon pagedaemon 96609 475587 0 0 3 0x14200 bored crynlk 40862 284311 0 0 3 0x14200 bored crypto 52085 305937 0 0 3 0x40014200 acpi0 acpi0 81558 56482 0 0 3 0x40014200 idle1 3925 385691 0 0 3 0x14200 bored softnet 9672 337206 0 0 3 0x14200 bored systqmp 67252 22281 0 0 3 0x14200 bored systq 20621 204549 0 0 3 0x40014200 bored softclock 75822 95120 0 0 3 0x40014200 idle0 79714 480909 0 0 3 0x14200 bored smr 1 317324 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 4755 (syz-executor.1) thread 0xffff800020ab09f8 (247093) exclusive rwlock netlock r = 0 (0xffffffff8251ee48) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sys_connect+0x6b sys/kern/uipc_syscalls.c:362 #3 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #3 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #4 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 2 (0xffffffff82653f78) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9678 6524K 14824K 78643K 60656 0 0 pcb 13 12K 14K 78643K 4292 0 0 rtable 154 14K 15K 78643K 15022 0 0 ifaddr 134 43K 52K 78643K 4786 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2200 0 0 iov 0 0K 40K 78643K 4130 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1230 77K 78K 78643K 21296 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 340 0 0 VM map 2 1K 1K 78643K 101 0 0 sem 12 0K 1K 78643K 4085 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 22966 0 0 sigio 0 0K 0K 78643K 219 0 0 proc 62 63K 95K 78643K 8383 0 0 subproc 32 2K 2K 78643K 2350 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 1844 0 0 in_multi 44 2K 3K 78643K 2499 0 0 ether_multi 1 0K 0K 78643K 251 0 0 mrt 10 0K 0K 78643K 167 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 4128 0 0 pfkey data 0 0K 4K 78643K 3 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 169 25K 35K 78643K 80219 0 0 UVM aobj 130 4K 4K 78643K 142 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 5166 0 0 NDP 33 1K 1K 78643K 1516 0 0 temp 306 3567K 4208K 78643K 652441 0 0 kqueue 0 0K 0K 78643K 175 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 501 0 493 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1496 0 1494 1 0 1 1 0 8 0 rtentry 112 2275 0 2217 2 0 2 2 0 8 0 unpcb 120 9551 0 9525 34 32 2 2 0 8 1 syncache 264 79 0 79 38 38 0 1 0 8 0 sackhl 24 7 0 7 6 6 0 1 0 8 0 tcpqe 32 6899 0 6899 6 6 0 1 0 8 0 tcpcb 544 9214 0 9209 85 84 1 13 0 8 0 inpcb 280 26122 0 26110 106 104 2 13 0 8 1 rttmr 72 62 0 61 3 2 1 1 0 8 0 ip6q 72 4 0 4 4 4 0 1 0 8 0 ip6af 40 1 0 1 1 1 0 1 0 8 0 nd6 48 302 0 298 10 9 1 1 0 8 0 pkpcb 40 62 0 62 23 23 0 1 0 8 0 swfcl 56 9 0 0 1 0 1 1 0 8 0 ppxss 1128 762 0 760 46 45 1 1 0 8 0 pffrag 232 442 0 442 69 68 1 1 0 482 1 pffrnode 88 442 0 442 69 68 1 1 0 8 1 pffrent 40 5577 0 5577 69 68 1 1 0 8 1 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 1601 0 1542 1 0 1 1 0 8 0 pfstkey 112 1605 0 1546 4 1 3 3 0 8 0 pfstate 328 1605 0 1544 17 11 6 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 30 0 28 22 20 2 3 0 8 0 art_heap4 256 9185 0 8803 68 44 24 25 0 8 0 art_table 32 9215 0 8831 4 0 4 4 0 8 0 art_node 16 2237 0 2184 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 1 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 4083 0 4073 1 0 1 1 0 8 0 shmpl 112 140 0 12 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 36762 0 35237 50 0 50 50 0 8 0 ffsino 272 36762 0 35237 103 1 102 102 0 8 0 nchpl 144 83035 0 82543 61 40 21 61 0 8 0 uvmvnodes 72 9453 0 0 172 0 172 172 0 8 0 vnodes 208 9453 0 0 498 0 498 498 0 8 0 namei 1024 298216 0 298216 9 8 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 99 0 99 41 41 0 1 0 8 0 scsiplug 64 50 0 50 34 34 0 1 0 8 0 scxspl 192 222987 0 222987 136 135 1 7 0 8 1 plimitpl 152 1948 0 1940 1 0 1 1 0 8 0 sigapl 432 22766 0 22750 3 1 2 3 0 8 0 futexpl 56 451719 0 451719 2 1 1 1 0 8 1 knotepl 112 5503 0 5484 5 4 1 3 0 8 0 kqueuepl 104 6292 0 6290 22 21 1 4 0 8 0 pipepl 112 23260 0 23241 73 72 1 3 0 8 0 fdescpl 488 22767 0 22750 3 0 3 3 0 8 0 filepl 152 207788 0 207685 152 147 5 14 0 8 0 lockfpl 104 7539 0 7538 1 0 1 1 0 8 0 lockfspl 48 2518 0 2517 1 0 1 1 0 8 0 sessionpl 112 158 0 147 1 0 1 1 0 8 0 pgrppl 48 2191 0 2180 1 0 1 1 0 8 0 ucredpl 96 28238 0 28228 1 0 1 1 0 8 0 zombiepl 144 22756 0 22756 7 6 1 1 0 8 1 processpl 896 22790 0 22756 4 0 4 4 0 8 0 procpl 632 72541 0 72494 15 10 5 5 0 8 1 srpgc 64 235 0 235 73 73 0 1 0 8 0 sosppl 128 280 0 280 60 60 0 1 0 8 0 sockpl 384 37546 0 37510 163 158 5 23 0 8 0 mcl64k 65536 1376 0 0 143 82 61 65 0 8 1 mcl16k 16384 41 0 0 5 2 3 3 0 8 0 mcl12k 12288 67 0 0 2 0 2 2 0 8 0 mcl9k 9216 38 0 0 2 1 1 2 0 8 0 mcl8k 8192 41 0 0 5 2 3 3 0 8 0 mcl4k 4096 41 0 0 3 0 3 3 0 8 0 mcl2k2 2112 19 0 0 2 0 2 2 0 8 0 mcl2k 2048 263 0 0 20 11 9 20 0 8 0 mtagpl 80 328 0 0 2 0 2 2 0 8 0 mbufpl 256 1907 0 0 40 4 36 36 0 8 0 bufpl 256 73753 0 63577 637 0 637 637 0 8 0 anonpl 16 2528799 0 2514608 476 391 85 88 0 124 9 amapchunkpl 152 160324 0 160211 206 197 9 19 0 158 2 amappl16 192 119663 0 118672 620 562 58 64 0 8 7 amappl15 184 3492 0 3492 20 20 0 1 0 8 0 amappl14 176 4274 0 4268 2 1 1 1 0 8 0 amappl13 168 2015 0 2014 1 0 1 1 0 8 0 amappl12 160 2615 0 2610 2 1 1 1 0 8 0 amappl11 152 4807 0 4792 1 0 1 1 0 8 0 amappl10 144 3292 0 3283 1 0 1 1 0 8 0 amappl9 136 4535 0 4528 1 0 1 1 0 8 0 amappl8 128 4131 0 4045 5 2 3 3 0 8 0 amappl7 120 3800 0 3791 1 0 1 1 0 8 0 amappl6 112 4704 0 4686 1 0 1 1 0 8 0 amappl5 104 3802 0 3788 1 0 1 1 0 8 0 amappl4 96 23509 0 23467 17 15 2 2 0 8 0 amappl3 88 4342 0 4336 1 0 1 1 0 8 0 amappl2 80 175478 0 175393 4 2 2 3 0 8 0 amappl1 72 517226 0 516765 26 16 10 20 0 8 0 amappl 80 75267 0 75227 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 141 0 12 3 0 3 3 0 8 0 uaddrrnd 24 22866 0 22750 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 22866 0 22750 1 0 1 1 0 8 0 vmmpekpl 168 196977 0 196937 4 2 2 3 0 8 0 vmmpepl 168 2882850 0 2880520 791 653 138 143 0 357 28 vmsppl 368 22766 0 22750 2 0 2 2 0 8 0 pdppl 4096 45739 0 45698 7 1 6 6 0 8 0 pvpl 32 6613608 0 6596065 977 772 205 210 0 265 32 pmappl 232 22865 0 22849 33 32 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1156 0 262 26 0 26 26 0 8 0