panic: kernel diagnostic asspearntiico:n k e"rnretl- >rdita_gifnostic 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 448886 44587 0 0 0x4000000 0 syz-executor.1 * 71812 63164 0 0 0x4000000 1 syz-executor.0 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(ffffffff82206683,ffffffff821f523c,2b2,ffffffff821d491b) 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 kernel diagnostic assertion "rt->rt_ifa->ifa_ifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 848 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(ffffffff82206683,ffffffff821f523c,2b2,ffffffff821d491b) 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 0xffff800021b897c0 rbx 0xffff800021b89870 rdx 0xffff800020abf8c8 rcx 0 rax 0 r8 0xffffffff81ba769f kprintf+0x16f r9 0x1 r10 0x25 r11 0x55750ba322a92527 r12 0x3000000008 r13 0xffff800021b897d0 r14 0x104 r15 0x1 rip 0xffffffff810273e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b897b0 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=71812 stat=onproc flags process=0 proc=4000000 pri=75, usrpri=75, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe018,0xffff800020abea08 process=0xffff800020a4b888 user=0xffff800021b84000, vmspace=0xfffffd807f00b170 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 44587 83908 57012 0 2 0 syz-executor.1 44587 448886 57012 0 7 0x4000000 syz-executor.1 63164 475867 89388 0 2 0 syz-executor.0 *63164 71812 89388 0 7 0x4000000 syz-executor.0 57012 1871 98058 0 3 0x82 nanosleep syz-executor.1 89388 324884 98058 0 3 0x82 nanosleep syz-executor.0 92509 462396 1 0 3 0x100083 ttyin getty 78337 483904 0 0 3 0x14200 acct acct 1406 521128 0 0 3 0x14200 bored sosplice 98058 186808 79699 0 3 0x82 thrsleep syz-fuzzer 98058 95382 79699 0 3 0x4000082 nanosleep syz-fuzzer 98058 303135 79699 0 3 0x4000082 thrsleep syz-fuzzer 98058 276197 79699 0 3 0x4000082 thrsleep syz-fuzzer 98058 472004 79699 0 3 0x4000082 thrsleep syz-fuzzer 98058 485779 79699 0 3 0x4000082 thrsleep syz-fuzzer 98058 421359 79699 0 3 0x4000082 thrsleep syz-fuzzer 98058 200827 79699 0 3 0x4000082 thrsleep syz-fuzzer 98058 245022 79699 0 3 0x4000082 thrsleep syz-fuzzer 98058 143007 79699 0 3 0x4000082 kqread syz-fuzzer 79699 481426 33734 0 3 0x10008a pause ksh 33734 5974 58036 0 3 0x92 select sshd 58036 121363 1 0 3 0x80 select sshd 84035 520113 78159 74 3 0x100092 bpf pflogd 78159 465221 1 0 3 0x80 netio pflogd 20114 391349 57369 73 3 0x100090 kqread syslogd 57369 35675 1 0 3 0x100082 netio syslogd 89854 9622 1 77 3 0x100090 poll dhclient 86776 234420 1 0 3 0x80 poll dhclient 22070 94288 0 0 2 0x14200 zerothread 61239 8931 0 0 3 0x14200 aiodoned aiodoned 59494 71994 0 0 3 0x14200 syncer update 5391 323382 0 0 3 0x14200 cleaner cleaner 90572 370205 0 0 3 0x14200 reaper reaper 87255 332236 0 0 3 0x14200 pgdaemon pagedaemon 14832 16976 0 0 3 0x14200 bored crynlk 87464 509705 0 0 3 0x14200 bored crypto 43854 110669 0 0 3 0x40014200 acpi0 acpi0 52738 287132 0 0 3 0x40014200 idle1 26502 495161 0 0 3 0x14200 bored softnet 50877 278223 0 0 3 0x14200 bored systqmp 14121 414693 0 0 3 0x14200 bored systq 56472 435434 0 0 3 0x40014200 bored softclock 43289 232695 0 0 3 0x40014200 idle0 42713 99205 0 0 3 0x14200 bored smr 1 152971 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 44587 (syz-executor.1) thread 0xffff800020abe9f8 (448886) exclusive rwlock netlock r = 0 (0xffffffff824c1198) #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 = 1 (0xffffffff82624d88) #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 9563 7191K 8091K 78643K 13105 0 0 pcb 13 13K 15K 78643K 232 0 0 rtable 121 13K 13K 78643K 949 0 0 ifaddr 74 15K 15K 78643K 278 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1532 0 0 iov 0 0K 24K 78643K 237 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1224 77K 77K 78643K 2206 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 15 0 0 VM map 8 4K 4K 78643K 12 0 0 sem 12 0K 0K 78643K 191 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1145 0 0 sigio 0 0K 0K 78643K 12 0 0 proc 61 63K 95K 78643K 892 0 0 subproc 32 2K 2K 78643K 189 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 74 0 0 in_multi 36 2K 2K 78643K 179 0 0 ether_multi 1 0K 0K 78643K 10 0 0 mrt 0 0K 0K 78643K 13 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 431 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 116 71K 72K 78643K 4936 0 0 UVM aobj 45 4K 4K 78643K 45 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 208 0 0 NDP 16 0K 1K 78643K 88 0 0 temp 200 3564K 4204K 78643K 38186 0 0 kqueue 0 0K 0K 78643K 5 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 27 0 20 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 89 0 87 1 0 1 1 0 8 0 rtentry 112 172 0 126 2 0 2 2 0 8 0 unpcb 120 390 0 380 2 1 1 2 0 8 0 syncache 264 6 0 6 3 3 0 1 0 8 0 tcpqe 32 6200 0 6200 3 3 0 1 0 8 0 tcpcb 544 579 0 574 12 7 5 12 0 8 4 inpcb 280 3133 0 3123 22 17 5 13 0 8 4 rttmr 72 5 0 5 2 2 0 1 0 8 0 nd6 48 26 0 22 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 28 0 28 2 2 0 1 0 8 0 pffrag 232 19 0 19 5 4 1 1 0 482 1 pffrnode 88 19 0 19 5 4 1 1 0 8 1 pffrent 40 296 0 296 5 4 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 91 0 42 1 0 1 1 0 8 0 pfstkey 112 91 0 42 2 0 2 2 0 8 0 pfstate 328 91 0 42 5 0 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 740 0 519 17 3 14 15 0 8 0 art_table 32 741 0 519 2 0 2 2 0 8 0 art_node 16 169 0 127 1 0 1 1 0 8 0 sysvmsgpl 40 54 0 24 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 187 0 177 1 0 1 1 0 8 0 shmpl 112 43 0 0 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3270 0 1863 46 0 46 46 0 8 0 ffsino 272 3270 0 1863 95 0 95 95 0 8 0 nchpl 144 5067 0 3460 61 0 61 61 0 8 0 uvmvnodes 72 4031 0 0 74 0 74 74 0 8 0 vnodes 208 4031 0 0 213 0 213 213 0 8 0 namei 1024 15954 0 15954 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 552 10 0 4 1 0 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 16168 0 16168 13 12 1 7 0 8 1 plimitpl 152 105 0 97 1 0 1 1 0 8 0 sigapl 432 1319 0 1303 4 1 3 3 0 8 1 futexpl 56 21306 0 21306 1 0 1 1 0 8 1 knotepl 112 345 0 326 1 0 1 1 0 8 0 kqueuepl 104 388 0 386 4 3 1 4 0 8 0 pipepl 112 862 0 843 4 3 1 2 0 8 0 fdescpl 488 1320 0 1303 3 0 3 3 0 8 0 filepl 152 10716 0 10612 27 18 9 14 0 8 5 lockfpl 104 378 0 377 1 0 1 1 0 8 0 lockfspl 48 126 0 125 1 0 1 1 0 8 0 sessionpl 112 28 0 17 1 0 1 1 0 8 0 pgrppl 48 38 0 27 1 0 1 1 0 8 0 ucredpl 96 956 0 946 1 0 1 1 0 8 0 zombiepl 144 1303 0 1303 3 2 1 1 0 8 1 processpl 896 1337 0 1303 5 0 5 5 0 8 1 procpl 632 3727 0 3682 6 1 5 5 0 8 1 srpgc 64 10 0 10 2 2 0 1 0 8 0 sosppl 128 15 0 15 4 4 0 1 0 8 0 sockpl 384 3679 0 3657 35 29 6 21 0 8 3 mcl64k 65536 16 0 0 2 0 2 2 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 12 0 0 2 0 2 2 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 195 0 0 23 0 23 23 0 8 0 mtagpl 80 22 0 0 1 0 1 1 0 8 0 mbufpl 256 334 0 0 19 1 18 18 0 8 0 bufpl 256 11879 0 4831 441 0 441 441 0 8 0 anonpl 16 163022 0 147049 95 22 73 88 0 124 0 amapchunkpl 152 9133 0 9022 23 16 7 12 0 158 0 amappl16 192 6417 0 5402 84 22 62 62 0 8 11 amappl15 184 560 0 558 4 3 1 1 0 8 0 amappl14 176 81 0 79 1 0 1 1 0 8 0 amappl13 168 197 0 197 3 2 1 1 0 8 1 amappl12 160 41 0 36 1 0 1 1 0 8 0 amappl11 152 516 0 500 1 0 1 1 0 8 0 amappl10 144 15 0 10 1 0 1 1 0 8 0 amappl9 136 757 0 750 1 0 1 1 0 8 0 amappl8 128 290 0 254 2 0 2 2 0 8 0 amappl7 120 94 0 86 1 0 1 1 0 8 0 amappl6 112 509 0 494 1 0 1 1 0 8 0 amappl5 104 227 0 211 1 0 1 1 0 8 0 amappl4 96 2132 0 2102 1 0 1 1 0 8 0 amappl3 88 165 0 159 1 0 1 1 0 8 0 amappl2 80 9384 0 9304 3 1 2 3 0 8 0 amappl1 72 39719 0 39264 26 16 10 20 0 8 0 amappl 80 4132 0 4090 3 1 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 44 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1330 0 1303 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1330 0 1303 1 0 1 1 0 8 0 vmmpekpl 168 14668 0 14631 3 0 3 3 0 8 0 vmmpepl 168 174763 0 172489 174 38 136 137 0 357 37 vmsppl 368 1319 0 1303 2 0 2 2 0 8 0 pdppl 4096 2667 0 2620 10 3 7 7 0 8 1 pvpl 32 457581 0 438345 227 41 186 209 0 265 14 pmappl 232 1329 0 1307 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 636 0 18 18 0 18 18 0 8 0