panic: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 951 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *491566 85528 0 0 0x4000000 0 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(ffffffff821de71e,ffffffff821afdcd,3b7,ffffffff821c0334) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff80001694bef8,0,ffff80001694be68,0) at rtrequest+0xbf1 sys/net/route.c:951 rtm_output(ffff800000aca800,ffff80001694bfa0,ffff80001694bef8,0,0) at rtm_output+0x62f sys/net/rtsock.c:901 route_output(fffffd8036f1ab00,fffffd802621b7b8,0,0) at route_output+0x7d9 sys/net/rtsock.c:819 route_usrreq(fffffd802621b7b8,9,fffffd8036f1ab00,0,0,ffff8000ffff3160) at route_usrreq+0x363 sys/net/rtsock.c:275 sosend(fffffd802621b7b8,0,ffff80001694c1a0,0,0,80) at sosend+0x63d sys/kern/uipc_socket.c:524 sendit(ffff8000ffff3160,3,ffff80001694c280,0,ffff80001694c360) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff3160,ffff80001694c318,ffff80001694c360) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff80001694c3e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd8,0,6,ee33bef3010) at Xsyscall+0x128 end of kernel end trace frame: 0xee63b1af4b0, count: 3 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 951 ddb> 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(ffffffff821de71e,ffffffff821afdcd,3b7,ffffffff821c0334) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff80001694bef8,0,ffff80001694be68,0) at rtrequest+0xbf1 sys/net/route.c:951 rtm_output(ffff800000aca800,ffff80001694bfa0,ffff80001694bef8,0,0) at rtm_output+0x62f sys/net/rtsock.c:901 route_output(fffffd8036f1ab00,fffffd802621b7b8,0,0) at route_output+0x7d9 sys/net/rtsock.c:819 route_usrreq(fffffd802621b7b8,9,fffffd8036f1ab00,0,0,ffff8000ffff3160) at route_usrreq+0x363 sys/net/rtsock.c:275 sosend(fffffd802621b7b8,0,ffff80001694c1a0,0,0,80) at sosend+0x63d sys/kern/uipc_socket.c:524 sendit(ffff8000ffff3160,3,ffff80001694c280,0,ffff80001694c360) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff3160,ffff80001694c318,ffff80001694c360) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff80001694c3e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd8,0,6,ee33bef3010) at Xsyscall+0x128 end of kernel end trace frame: 0xee63b1af4b0, count: -12 ddb> show registers rdi 0xffffffff81073db7 db_enter+0x17 rsi 0x3f4c __ALIGN_SIZE+0x2f4c rbp 0xffff80001694bc70 rbx 0xffff80001694bd20 rdx 0x3f4d __ALIGN_SIZE+0x2f4d rcx 0xffff800014b0b000 rax 0xffff800014b0b000 r8 0xffff80001694bc30 r9 0x1 r10 0xffff800000a6b100 r11 0x67b8e157c1bae79f r12 0x3000000008 r13 0xffff80001694bc80 r14 0x100 r15 0x1 rip 0xffffffff81073db8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001694bc60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=491566 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2c70,0xffffffff82588aa8 process=0xffff8000148a2378 user=0xffff800016947000, vmspace=0xfffffd803f014330 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 85528 88330 98204 0 2 0 syz-executor.1 *85528 491566 98204 0 7 0x4000000 syz-executor.1 13590 69703 52038 0 2 0x2 syz-executor.0 98204 29989 52038 0 2 0x482 syz-executor.1 92000 398058 0 0 3 0x14200 acct acct 2644 325285 0 0 3 0x14200 bored sosplice 52038 485105 52256 0 3 0x82 thrsleep syz-fuzzer 52038 128881 52256 0 3 0x4000082 nanosleep syz-fuzzer 52038 421336 52256 0 3 0x4000082 thrsleep syz-fuzzer 52038 174300 52256 0 3 0x4000082 kqread syz-fuzzer 52038 12454 52256 0 3 0x4000082 thrsleep syz-fuzzer 52038 58608 52256 0 3 0x4000082 thrsleep syz-fuzzer 52038 389773 52256 0 3 0x4000082 thrsleep syz-fuzzer 52038 418021 52256 0 3 0x4000082 thrsleep syz-fuzzer 52256 231841 16650 0 3 0x10008a pause ksh 16650 244127 92606 0 3 0x92 select sshd 40235 475275 1 0 3 0x100083 ttyin getty 92606 442090 1 0 3 0x80 select sshd 62881 393838 479 73 3 0x100090 kqread syslogd 479 267160 1 0 3 0x100082 netio syslogd 89188 421420 1 77 3 0x100090 poll dhclient 17130 363588 1 0 3 0x80 poll dhclient 5968 206452 0 0 2 0x14200 zerothread 33984 389627 0 0 3 0x14200 aiodoned aiodoned 38786 35154 0 0 3 0x14200 syncer update 42777 90217 0 0 3 0x14200 cleaner cleaner 89574 224584 0 0 3 0x14200 reaper reaper 90607 503620 0 0 3 0x14200 pgdaemon pagedaemon 90866 337246 0 0 3 0x14200 bored crynlk 85224 458185 0 0 3 0x14200 bored crypto 74496 508362 0 0 3 0x40014200 acpi0 acpi0 29170 260853 0 0 3 0x14200 bored softnet 47953 279213 0 0 3 0x14200 bored systqmp 30477 163634 0 0 3 0x14200 bored systq 3416 255373 0 0 2 0x40014200 softclock 83274 342606 0 0 3 0x40014200 idle0 20331 175638 0 0 3 0x14200 bored smr 1 324640 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9605 6390K 8298K 78643K 55861 0 0 pcb 13 10K 12K 78643K 1757 0 0 rtable 119 9K 9K 78643K 4114 0 0 ifaddr 91 24K 28K 78643K 1435 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 492 0 0 iov 0 0K 32K 78643K 1457 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1208 76K 77K 78643K 15063 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 179 0 0 VM map 2 0K 0K 78643K 12 0 0 sem 12 0K 1K 78643K 3898 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 13617 0 0 sigio 0 0K 0K 78643K 195 0 0 proc 50 38K 63K 78643K 3012 0 0 subproc 32 2K 2K 78643K 633 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 1426 0 0 in_multi 24 1K 2K 78643K 841 0 0 ether_multi 1 0K 0K 78643K 68 0 0 mrt 0 0K 0K 78643K 64 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 162 715K 715K 78643K 162 0 0 exec 0 0K 1K 78643K 1937 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 128 23K 32K 78643K 32805 0 0 UVM aobj 130 4K 4K 78643K 133 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 4394 0 0 NDP 22 0K 0K 78643K 436 0 0 temp 240 3537K 3665K 78643K 273618 0 0 kqueue 0 0K 0K 78643K 97 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 80 0 73 1 0 1 1 0 8 0 rtpcb 80 894 0 891 1 0 1 1 0 8 0 rtentry 112 462 0 421 2 0 2 2 0 8 0 unpcb 120 5579 0 5548 7 5 2 2 0 8 0 syncache 264 24 0 24 12 12 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 4286 0 4286 5 5 0 1 0 8 0 tcpcb 544 6622 0 6618 22 21 1 3 0 8 0 ipq 40 27 0 27 13 13 0 1 0 8 0 ipqe 40 56 0 56 13 13 0 1 0 8 0 inpcb 280 16670 0 16662 52 50 2 13 0 8 1 rttmr 72 18 0 18 13 13 0 1 0 8 0 ip6q 72 2 0 1 2 1 1 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 48 71 0 69 1 0 1 1 0 8 0 pkpcb 40 72 0 72 22 22 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 229 0 229 42 42 0 1 0 8 0 art_heap8 4096 3 0 2 3 2 1 3 0 8 0 art_heap4 256 1960 0 1745 33 16 17 17 0 8 1 art_table 32 1963 0 1747 4 1 3 3 0 8 0 art_node 16 442 0 405 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 3896 0 3886 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 22221 0 20813 46 0 46 46 0 8 0 ffsino 240 22221 0 20813 84 0 84 84 0 8 0 nchpl 144 45625 0 43975 62 0 62 62 0 8 0 uvmvnodes 72 9052 0 0 165 0 165 165 0 8 0 vnodes 208 9052 0 0 477 0 477 477 0 8 0 namei 1024 158695 0 158695 5 4 1 1 0 8 1 vmpool 520 10 0 10 5 5 0 1 0 8 0 scsiplug 64 17 0 17 11 11 0 1 0 8 0 scxspl 192 126467 0 126467 35 33 2 7 0 8 2 plimitpl 152 1087 0 1079 1 0 1 1 0 8 0 sigapl 432 13683 0 13670 2 0 2 2 0 8 0 futexpl 56 364402 0 364402 4 3 1 1 0 8 1 knotepl 112 3447 0 3428 9 8 1 2 0 8 0 kqueuepl 104 3881 0 3879 1 0 1 1 0 8 0 pipepl 112 7304 0 7285 32 31 1 2 0 8 0 fdescpl 424 13684 0 13670 2 0 2 2 0 8 0 filepl 120 113715 0 113619 38 34 4 11 0 8 0 lockfpl 104 4112 0 4111 1 0 1 1 0 8 0 lockfspl 48 1330 0 1329 1 0 1 1 0 8 0 sessionpl 112 52 0 42 1 0 1 1 0 8 0 pgrppl 48 189 0 179 1 0 1 1 0 8 0 ucredpl 96 19905 0 19896 1 0 1 1 0 8 0 zombiepl 144 13678 0 13678 3 2 1 1 0 8 1 processpl 864 13708 0 13678 4 0 4 4 0 8 0 procpl 632 30255 0 30217 4 0 4 4 0 8 0 sosppl 128 144 0 144 41 40 1 1 0 8 1 sockpl 384 23548 0 23507 75 69 6 22 0 8 1 mcl64k 65536 1178 0 1178 105 104 1 33 0 8 1 mcl16k 16384 113 0 113 47 46 1 1 0 8 1 mcl12k 12288 285 0 285 36 35 1 1 0 8 1 mcl9k 9216 137 0 137 47 46 1 1 0 8 1 mcl8k 8192 449 0 449 22 21 1 1 0 8 1 mcl4k 4096 1252 0 1252 5 4 1 1 0 8 1 mcl2k2 2112 135 0 135 41 40 1 1 0 8 1 mcl2k 2048 80083 0 80039 44 38 6 12 0 8 0 mtagpl 80 681 0 681 8 8 0 5 0 8 0 mbufpl 256 216235 0 216148 97 87 10 34 0 8 1 bufpl 256 41844 0 32792 567 0 567 567 0 8 0 anonpl 16 1248282 0 1233459 407 343 64 78 0 62 1 amapchunkpl 152 58485 0 58368 109 103 6 19 0 158 0 amappl16 192 70923 0 70080 449 403 46 55 0 8 3 amappl15 184 3308 0 3308 11 10 1 1 0 8 1 amappl14 176 818 0 812 2 1 1 1 0 8 0 amappl13 168 2425 0 2423 6 5 1 1 0 8 0 amappl12 160 2027 0 2027 5 5 0 1 0 8 0 amappl11 152 2544 0 2533 1 0 1 1 0 8 0 amappl10 144 1458 0 1456 1 0 1 1 0 8 0 amappl9 136 2450 0 2442 1 0 1 1 0 8 0 amappl8 128 2063 0 2014 2 0 2 2 0 8 0 amappl7 120 1629 0 1622 1 0 1 1 0 8 0 amappl6 112 2484 0 2472 1 0 1 1 0 8 0 amappl5 104 2539 0 2529 1 0 1 1 0 8 0 amappl4 96 13378 0 13345 1 0 1 1 0 8 0 amappl3 88 1949 0 1943 1 0 1 1 0 8 0 amappl2 80 111162 0 111094 4 2 2 3 0 8 0 amappl1 72 245246 0 244838 28 19 9 20 0 8 0 amappl 80 31076 0 31038 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 dma64 64 259 0 259 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 132 0 3 3 0 3 3 0 8 0 uaddrrnd 24 13694 0 13670 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 13694 0 13670 1 0 1 1 0 8 0 vmmpekpl 168 80120 0 80095 2 0 2 2 0 8 0 vmmpepl 168 1595352 0 1593425 651 531 120 122 0 357 24 vmsppl 272 13683 0 13670 4 3 1 2 0 8 0 pdppl 4096 27394 0 27360 6 1 5 6 0 8 0 pvpl 32 3611025 0 3593080 804 636 168 280 0 265 17 pmappl 200 13693 0 13680 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1049 0 349 21 0 21 21 0 8 0