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 *376536 2997 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(ffffffff821de6c9,ffffffff821afc2c,3b7,ffffffff821c01b9) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff80001779a5e8,0,ffff80001779a558,0) at rtrequest+0xbf1 sys/net/route.c:951 rtm_output(ffff800000ac8400,ffff80001779a690,ffff80001779a5e8,0,0) at rtm_output+0x62f sys/net/rtsock.c:901 route_output(fffffd80306a6100,fffffd802f04de08,0,0) at route_output+0x7d9 sys/net/rtsock.c:819 route_usrreq(fffffd802f04de08,9,fffffd80306a6100,0,0,ffff800014f338c8) at route_usrreq+0x363 sys/net/rtsock.c:275 sosend(fffffd802f04de08,0,ffff80001779a890,0,0,80) at sosend+0x63d sys/kern/uipc_socket.c:524 sendit(ffff800014f338c8,3,ffff80001779a970,0,ffff80001779aa50) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800014f338c8,ffff80001779aa08,ffff80001779aa50) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff80001779aad0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd8,0,6,eb9a01580e0) at Xsyscall+0x128 end of kernel end trace frame: 0xebbf4a3c460, 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(ffffffff821de6c9,ffffffff821afc2c,3b7,ffffffff821c01b9) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff80001779a5e8,0,ffff80001779a558,0) at rtrequest+0xbf1 sys/net/route.c:951 rtm_output(ffff800000ac8400,ffff80001779a690,ffff80001779a5e8,0,0) at rtm_output+0x62f sys/net/rtsock.c:901 route_output(fffffd80306a6100,fffffd802f04de08,0,0) at route_output+0x7d9 sys/net/rtsock.c:819 route_usrreq(fffffd802f04de08,9,fffffd80306a6100,0,0,ffff800014f338c8) at route_usrreq+0x363 sys/net/rtsock.c:275 sosend(fffffd802f04de08,0,ffff80001779a890,0,0,80) at sosend+0x63d sys/kern/uipc_socket.c:524 sendit(ffff800014f338c8,3,ffff80001779a970,0,ffff80001779aa50) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800014f338c8,ffff80001779aa08,ffff80001779aa50) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff80001779aad0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd8,0,6,eb9a01580e0) at Xsyscall+0x128 end of kernel end trace frame: 0xebbf4a3c460, count: -12 ddb> show registers rdi 0xffffffff82053ff7 db_enter+0x17 rsi 0x3f6d __ALIGN_SIZE+0x2f6d rbp 0xffff80001779a360 rbx 0xffff80001779a410 rdx 0x3f6e __ALIGN_SIZE+0x2f6e rcx 0xffff800014b0b000 rax 0xffff800014b0b000 r8 0xffff80001779a320 r9 0x1 r10 0xffff800000a62f40 r11 0xbad40b60821d7551 r12 0x3000000008 r13 0xffff80001779a370 r14 0x100 r15 0x1 rip 0xffffffff82053ff8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001779a350 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=376536 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800014f32ee8,0xffffffff82554ec0 process=0xffff8000148a2d98 user=0xffff800017795000, vmspace=0xfffffd803f013220 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 2997 201847 98367 0 2 0 syz-executor.1 2997 25416 98367 0 3 0x4000080 piperd syz-executor.1 * 2997 376536 98367 0 7 0x4000000 syz-executor.1 66196 450024 91294 0 3 0x80 nanosleep syz-executor.0 66196 285627 91294 0 3 0x4000080 pipewr syz-executor.0 66196 366446 91294 0 3 0x4000080 fsleep syz-executor.0 98367 228339 315 0 3 0x82 nanosleep syz-executor.1 91294 94723 315 0 3 0x82 nanosleep syz-executor.0 53449 93936 1 0 3 0x100083 ttyin getty 78716 449530 0 0 3 0x14200 acct acct 80078 138859 0 0 3 0x14200 bored sosplice 315 355924 20498 0 3 0x82 thrsleep syz-fuzzer 315 5854 20498 0 3 0x4000082 thrsleep syz-fuzzer 315 366932 20498 0 3 0x4000082 thrsleep syz-fuzzer 315 220551 20498 0 3 0x4000082 thrsleep syz-fuzzer 315 369310 20498 0 3 0x4000082 thrsleep syz-fuzzer 315 263964 20498 0 3 0x4000082 kqread syz-fuzzer 315 333220 20498 0 3 0x4000082 thrsleep syz-fuzzer 20498 170459 4069 0 3 0x10008a pause ksh 4069 417380 57000 0 3 0x92 select sshd 57000 235735 1 0 3 0x80 select sshd 28381 273115 53091 73 3 0x100090 kqread syslogd 53091 297096 1 0 3 0x100082 netio syslogd 6385 183864 1 77 3 0x100090 poll dhclient 57547 365709 1 0 3 0x80 poll dhclient 711 9899 0 0 2 0x14200 zerothread 16054 511188 0 0 3 0x14200 aiodoned aiodoned 66314 477889 0 0 3 0x14200 syncer update 30792 188002 0 0 3 0x14200 cleaner cleaner 20470 230468 0 0 3 0x14200 reaper reaper 90189 459311 0 0 3 0x14200 pgdaemon pagedaemon 86395 214487 0 0 3 0x14200 bored crynlk 48477 135776 0 0 3 0x14200 bored crypto 63583 107703 0 0 3 0x40014200 acpi0 acpi0 18413 341197 0 0 3 0x14200 bored softnet 1176 351144 0 0 3 0x14200 bored systqmp 94297 363433 0 0 3 0x14200 bored systq 49288 9507 0 0 3 0x40014200 bored softclock 24416 391041 0 0 3 0x40014200 idle0 90408 35936 0 0 3 0x14200 bored smr 1 377474 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 9530 6364K 6795K 78643K 15618 0 0 pcb 13 10K 12K 78643K 342 0 0 rtable 118 4K 4K 78643K 883 0 0 ifaddr 69 16K 17K 78643K 315 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 110 0 0 iov 0 0K 24K 78643K 1111 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1206 76K 77K 78643K 3178 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 20 0 0 VM map 2 0K 0K 78643K 8 0 0 sem 12 0K 1K 78643K 296 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 2170 0 0 sigio 0 0K 0K 78643K 22 0 0 proc 49 38K 63K 78643K 767 0 0 subproc 32 2K 2K 78643K 136 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 240 0 0 in_multi 34 2K 2K 78643K 146 0 0 ether_multi 1 0K 0K 78643K 6 0 0 mrt 0 0K 0K 78643K 6 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 453 0 0 pfkey data 0 0K 4K 78643K 2 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 101 21K 30K 78643K 7589 0 0 UVM aobj 111 4K 4K 78643K 115 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 275 0 0 NDP 14 0K 0K 78643K 91 0 0 temp 184 3535K 3607K 78643K 35125 0 0 kqueue 0 0K 0K 78643K 11 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 21 0 13 1 0 1 1 0 8 0 rtpcb 80 1101 0 1098 2 1 1 2 0 8 0 rtentry 112 119 0 72 2 0 2 2 0 8 0 unpcb 120 1190 0 1180 2 1 1 2 0 8 0 syncache 264 8 0 8 3 3 0 1 0 8 0 tcpqe 32 6556 0 6556 1 1 0 1 0 8 0 tcpcb 544 506 0 502 1 0 1 1 0 8 0 ipq 40 6 0 6 3 3 0 1 0 8 0 ipqe 40 10 0 10 3 3 0 1 0 8 0 inpcb 280 1742 0 1735 17 16 1 13 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 16 0 12 1 0 1 1 0 8 0 pkpcb 40 10 0 10 3 3 0 1 0 8 0 ppxss 1128 43 0 43 13 12 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 504 0 273 17 2 15 15 0 8 0 art_table 32 505 0 273 2 0 2 2 0 8 0 art_node 16 111 0 69 1 0 1 1 0 8 0 sysvmsgpl 40 27 0 19 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 294 0 284 1 0 1 1 0 8 0 shmpl 112 113 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5017 0 3639 46 0 46 46 0 8 0 ffsino 240 5017 0 3639 83 0 83 83 0 8 0 nchpl 144 8778 0 7162 61 0 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 28647 0 28647 3 2 1 1 0 8 1 vmpool 520 6 0 6 3 3 0 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 25320 0 25320 19 18 1 7 0 8 1 plimitpl 152 218 0 211 1 0 1 1 0 8 0 sigapl 432 2324 0 2310 2 0 2 2 0 8 0 futexpl 56 55889 0 55888 1 0 1 1 0 8 0 knotepl 112 619 0 600 4 3 1 3 0 8 0 kqueuepl 104 580 0 578 1 0 1 1 0 8 0 pipepl 112 4840 0 4817 20 18 2 2 0 8 1 fdescpl 424 2325 0 2310 2 0 2 2 0 8 0 filepl 120 21356 0 21256 25 21 4 11 0 8 0 lockfpl 104 2263 0 2262 1 0 1 1 0 8 0 lockfspl 48 592 0 591 1 0 1 1 0 8 0 sessionpl 112 24 0 14 1 0 1 1 0 8 0 pgrppl 48 54 0 44 1 0 1 1 0 8 0 ucredpl 96 2866 0 2859 1 0 1 1 0 8 0 zombiepl 144 2310 0 2310 3 2 1 1 0 8 1 processpl 864 2341 0 2310 4 0 4 4 0 8 0 procpl 632 6522 0 6481 17 12 5 5 0 8 1 sosppl 128 12 0 12 5 5 0 1 0 8 0 sockpl 384 4066 0 4046 56 51 5 21 0 8 2 mcl64k 65536 98 0 98 22 22 0 1 0 8 0 mcl16k 16384 17 0 17 15 15 0 1 0 8 0 mcl12k 12288 48 0 48 16 15 1 1 0 8 1 mcl9k 9216 30 0 30 17 16 1 1 0 8 1 mcl8k 8192 68 0 68 18 17 1 1 0 8 1 mcl4k 4096 182 0 182 6 5 1 1 0 8 1 mcl2k2 2112 10 0 10 10 10 0 1 0 8 0 mcl2k 2048 60417 0 60380 29 23 6 16 0 8 0 mtagpl 80 147 0 113 3 2 1 2 0 8 0 mbufpl 256 111773 0 111633 26 14 12 14 0 8 0 bufpl 256 11538 0 6554 312 0 312 312 0 8 0 anonpl 16 247223 0 232715 186 122 64 77 0 62 0 amapchunkpl 152 14024 0 13911 52 40 12 18 0 158 5 amappl16 192 12427 0 11565 135 91 44 55 0 8 0 amappl15 184 808 0 808 1 1 0 1 0 8 0 amappl14 176 425 0 421 2 1 1 1 0 8 0 amappl13 168 186 0 186 3 3 0 1 0 8 0 amappl12 160 8 0 5 1 0 1 1 0 8 0 amappl11 152 479 0 467 1 0 1 1 0 8 0 amappl10 144 12 0 11 1 0 1 1 0 8 0 amappl9 136 747 0 738 1 0 1 1 0 8 0 amappl8 128 315 0 288 1 0 1 1 0 8 0 amappl7 120 70 0 64 1 0 1 1 0 8 0 amappl6 112 488 0 476 1 0 1 1 0 8 0 amappl5 104 215 0 206 1 0 1 1 0 8 0 amappl4 96 2451 0 2423 1 0 1 1 0 8 0 amappl3 88 415 0 410 1 0 1 1 0 8 0 amappl2 80 18466 0 18391 4 2 2 3 0 8 0 amappl1 72 54646 0 54221 28 19 9 20 0 8 0 amappl 80 6828 0 6788 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 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 114 0 4 2 0 2 2 0 8 0 uaddrrnd 24 2331 0 2310 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2331 0 2310 1 0 1 1 0 8 0 vmmpekpl 168 29110 0 29083 2 0 2 2 0 8 0 vmmpepl 168 286722 0 284706 327 236 91 120 0 357 2 vmsppl 272 2324 0 2310 5 4 1 2 0 8 0 pdppl 4096 4668 0 4632 6 1 5 6 0 8 0 pvpl 32 652615 0 634960 391 243 148 184 0 265 1 pmappl 200 2330 0 2316 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 549 0 107 13 0 13 13 0 8 0