panic: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 1046 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *113764 18679 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82885ca7) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff82909ce5,ffffffff828c21a0,416,ffffffff828dc0e6) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000377eada8,0,ffff8000377ead18,0) at rtrequest+0xb6e sys/net/route.c:1046 rtm_output(ffff8000006c0500,ffff8000377eae50,ffff8000377eada8,0,0) at rtm_output+0x5f7 sys/net/rtsock.c:959 route_output(fffffd807a99f700,fffffd8068e23030) at route_output+0x6bc sys/net/rtsock.c:864 route_send(fffffd8068e23030,fffffd807a99f700,0,0) at route_send+0x8f sys/net/rtsock.c:340 sosend(fffffd8068e23030,0,ffff8000377eb020,0,0,0) at sosend+0x66d sendit(ffff80002f564800,3,ffff8000377eb120,0,ffff8000377eb1d0) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendto(ffff80002f564800,ffff8000377eb280,ffff8000377eb1d0) at sys_sendto+0x84 sys/kern/uipc_syscalls.c:564 syscall(ffff8000377eb280) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb26e19992c0, 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 *cpu0: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 1046 ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82885ca7) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff82909ce5,ffffffff828c21a0,416,ffffffff828dc0e6) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000377eada8,0,ffff8000377ead18,0) at rtrequest+0xb6e sys/net/route.c:1046 rtm_output(ffff8000006c0500,ffff8000377eae50,ffff8000377eada8,0,0) at rtm_output+0x5f7 sys/net/rtsock.c:959 route_output(fffffd807a99f700,fffffd8068e23030) at route_output+0x6bc sys/net/rtsock.c:864 route_send(fffffd8068e23030,fffffd807a99f700,0,0) at route_send+0x8f sys/net/rtsock.c:340 sosend(fffffd8068e23030,0,ffff8000377eb020,0,0,0) at sosend+0x66d sendit(ffff80002f564800,3,ffff8000377eb120,0,ffff8000377eb1d0) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendto(ffff80002f564800,ffff8000377eb280,ffff8000377eb1d0) at sys_sendto+0x84 sys/kern/uipc_syscalls.c:564 syscall(ffff8000377eb280) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb26e19992c0, count: -12 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000377eab30 rbx 0x10000 __ALIGN_SIZE+0xf000 rdx 0xffff800000e325c0 rcx 0 rax 0xffff80002f564800 r8 0 r9 0x8080808080808080 r10 0x695e7829c9ef309 r11 0xdb480c9ec29f8897 r12 0 r13 0xffff8000377eada8 r14 0 r15 0x1 rip 0xffffffff8207b02c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff8000377eab20 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) tid=113764 pid=18679 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=82, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a63d7f8,0xffffffff82e3c360 process=0xffff8000ffffa188 user=0xffff8000377e6000, vmspace=0xfffffd807f01b9a0 estcpu=32, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 18679 137475 1850 0 2 0 syz-executor.0 *18679 113764 1850 0 7 0x4000000 syz-executor.0 27952 457301 18705 0 2 0 syz-executor.3 27952 84060 18705 0 3 0x4000080 netcon syz-executor.3 14855 362474 13781 0 2 0 syz-executor.1 14855 305105 13781 0 3 0x4000080 fsleep syz-executor.1 67869 290516 73356 0 3 0x80 nanoslp syz-executor.7 67869 491653 73356 0 3 0x4000000 smrbar syz-executor.7 67869 329333 73356 0 3 0x4000080 fsleep syz-executor.7 1850 322368 9462 0 3 0x82 nanoslp syz-executor.0 85572 224610 9462 0 2 0x2 syz-executor.4 18705 518236 9462 0 3 0x82 nanoslp syz-executor.3 73356 161014 9462 0 3 0x82 nanoslp syz-executor.7 71403 332602 0 0 3 0x14280 nfsidl nfsio 69617 98216 0 0 3 0x14280 nfsidl nfsio 16591 443783 0 0 3 0x14280 nfsidl nfsio 45872 256829 0 0 3 0x14280 nfsidl nfsio 66367 438696 0 0 3 0x14280 nfsidl nfsio 9775 384905 0 0 3 0x14280 nfsidl nfsio 60749 222385 0 0 3 0x14280 nfsidl nfsio 17957 202039 0 0 3 0x14280 nfsidl nfsio 41200 361851 0 0 3 0x14280 nfsidl nfsio 80629 16505 0 0 3 0x14280 nfsidl nfsio 11087 493390 0 0 3 0x14280 nfsidl nfsio 52859 42069 0 0 3 0x14280 nfsidl nfsio 79963 486931 0 0 3 0x14280 nfsidl nfsio 60865 81101 0 0 3 0x14280 nfsidl nfsio 9064 42748 0 0 3 0x14280 nfsidl nfsio 30004 300818 0 0 3 0x14280 nfsidl nfsio 20075 523846 0 0 3 0x14280 nfsidl nfsio 48918 285806 0 0 3 0x14280 nfsidl nfsio 43959 379738 0 0 3 0x14280 nfsidl nfsio 19926 191547 0 0 3 0x14280 nfsidl nfsio 72421 247017 0 0 3 0x14200 bored sosplice 38210 365396 9462 0 3 0x82 nanoslp syz-executor.2 621 329180 9462 0 3 0x82 nanoslp syz-executor.6 29706 359744 9462 0 2 0x2 syz-executor.5 13781 155810 9462 0 2 0x482 syz-executor.1 9462 10393 5445 0 3 0x2000082 kqread syz-fuzzer 9462 130838 5445 0 3 0x6000082 nanoslp syz-fuzzer 9462 183430 5445 0 3 0x6000082 thrsleep syz-fuzzer 9462 30619 5445 0 3 0x6000082 wait syz-fuzzer 9462 477172 5445 0 3 0x6000082 wait syz-fuzzer 9462 1154 5445 0 3 0x6000082 wait syz-fuzzer 9462 472748 5445 0 3 0x6000082 thrsleep syz-fuzzer 9462 223518 5445 0 3 0x6000082 wait syz-fuzzer 9462 511961 5445 0 3 0x6000082 thrsleep syz-fuzzer 9462 19279 5445 0 3 0x6000082 thrsleep syz-fuzzer 9462 268203 5445 0 3 0x6000082 wait syz-fuzzer 9462 515362 5445 0 3 0x6000082 wait syz-fuzzer 9462 361196 5445 0 3 0x6000082 wait syz-fuzzer 9462 460642 5445 0 3 0x6000082 wait syz-fuzzer 5445 15041 82124 0 3 0x10008a sigsusp ksh 82124 356333 67424 0 3 0x9a kqread sshd 69728 339088 1 0 3 0x100083 ttyin getty 67424 510523 1 0 3 0x88 kqread sshd 35697 492310 28943 73 3 0x1100090 kqread syslogd 28943 420479 1 0 3 0x100082 netio syslogd 82534 100017 1 0 3 0x100080 kqread resolvd 54633 95750 18078 77 3 0x100092 kqread dhcpleased 91154 15769 18078 77 3 0x100092 kqread dhcpleased 18078 104077 1 0 3 0x80 kqread dhcpleased 12541 198525 0 0 3 0x14200 bored smr 37495 422742 0 0 2 0x14200 zerothread 3416 141363 0 0 3 0x14200 aiodoned aiodoned 53139 360009 0 0 3 0x14200 syncer update 41855 150996 0 0 3 0x14200 cleaner cleaner 43934 300224 0 0 3 0x14200 reaper reaper 27213 109944 0 0 3 0x14200 pgdaemon pagedaemon 33691 76340 0 0 3 0x14200 bored viomb 73989 219553 0 0 3 0x40014200 acpi0 acpi0 67568 357911 0 0 3 0x14200 bored softnet3 86776 353082 0 0 3 0x14200 bored softnet2 8853 127331 0 0 3 0x14200 bored softnet1 43740 310374 0 0 3 0x14200 bored softnet0 75127 240832 0 0 3 0x14200 bored systqmp 61484 287532 0 0 3 0x14200 bored systq 97664 24225 0 0 3 0x40014200 tmoslp softclock 67103 133919 0 0 3 0x40014200 idle0 1 509243 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 devbuf 10183 6471K 7324K 166960K 16048 0 pcb 15 13K 14K 166960K 249 0 rtable 177 13K 15K 166960K 704 0 pf 31 9K 9K 166960K 80 0 ifaddr 38 10K 11K 166960K 95 0 ifgroup 54 2K 2K 166960K 117 0 sysctl 3 0K 0K 166960K 3 0 counters 31 17K 17K 166960K 54 0 ioctlops 0 0K 2K 166960K 54 0 iov 0 0K 32K 166960K 300 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1351 84K 85K 166960K 2769 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 33 0 VM map 2 1K 1K 166960K 2 0 sem 12 1K 1K 166960K 42 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 14 49K 73K 166960K 2304 0 sigio 0 0K 0K 166960K 165 0 proc 60 67K 75K 166960K 681 0 subproc 104 6K 6K 166960K 156 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 82 0 in_multi 71 5K 7K 166960K 191 0 ether_multi 1 0K 0K 166960K 4 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 715 0 pfkey data 0 0K 1K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 323 88K 102K 166960K 23273 0 UVM aobj 117 3K 3K 166960K 117 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 54 0 NDP 12 0K 1K 166960K 63 0 temp 74 6764K 7396K 166960K 38441 0 kqueue 12 18K 24K 166960K 200 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 160 0 156 2 0 2 2 0 8 1 rtentry 112 191 0 113 4 1 3 4 0 8 0 unpcb 144 1911 0 1893 11 5 6 6 0 8 5 syncache 336 22 0 22 3 2 1 1 0 8 1 tcpqe 32 175 0 175 2 2 0 1 0 8 0 tcpcb 808 550 0 544 10 5 5 8 0 8 4 arp 88 29 0 20 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 2 0 2 1 1 0 1 0 8 0 inpcb 360 1591 0 1580 13 5 8 8 0 8 7 nd6 104 40 0 24 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 kcovpl 48 12 0 4 1 0 1 1 0 8 0 ppxss 1072 16 0 16 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 778 0 406 30 6 24 29 0 8 0 art_table 32 779 0 406 5 1 4 4 0 8 0 art_node 16 181 0 112 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 6 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 40 0 30 1 0 1 1 0 8 0 shmpl 112 114 0 0 4 0 4 4 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 4577 0 3126 91 0 91 91 0 8 0 ffsino 240 4577 0 3126 86 0 86 86 0 8 0 nchpl 144 7807 0 6159 63 0 63 63 0 8 0 uvmvnodes 80 5657 0 0 116 0 116 116 0 8 0 vnodes 216 5657 0 0 315 0 315 315 0 8 0 namei 1024 26011 0 26010 5 4 1 2 0 8 0 kstatmem 264 70 0 46 2 0 2 2 0 8 0 scxspl 216 24563 0 24563 12 9 3 8 1 8 3 plimitpl 152 206 0 191 1 0 1 1 0 8 0 sigapl 424 2676 0 2612 8 0 8 8 0 8 0 futexpl 64 20340 0 20338 1 0 1 1 0 8 0 knotepl 120 22899 0 22816 4 0 4 4 0 8 0 kqueuepl 184 414 0 406 7 3 4 4 0 8 3 pipepl 288 426 0 398 9 4 5 7 0 8 2 fdescpl 432 2578 0 2552 5 1 4 4 0 8 0 filepl 120 14840 0 14595 22 7 15 15 0 8 7 lockfpl 104 455 0 453 1 0 1 1 0 8 0 lockfspl 48 178 0 176 1 0 1 1 0 8 0 sessionpl 144 27 0 11 1 0 1 1 0 8 0 pgrppl 48 70 0 54 1 0 1 1 0 8 0 ucredpl 104 2600 0 2590 1 0 1 1 0 8 0 zombiepl 144 2614 0 2612 1 0 1 1 0 8 0 processpl 1072 2676 0 2612 5 0 5 5 0 8 0 procpl 680 5960 0 5878 11 2 9 9 0 8 1 sosppl 168 18 0 18 1 1 0 1 0 8 0 sockpl 488 3670 0 3637 88 77 11 28 0 8 6 mcl64k 65536 64 0 64 3 2 1 1 0 8 1 mcl16k 16384 36 0 36 3 2 1 1 0 8 1 mcl12k 12288 95 0 95 3 2 1 1 0 8 1 mcl9k 9216 40 0 40 2 1 1 1 0 8 1 mcl8k 8192 164 0 164 3 2 1 1 0 8 1 mcl4k 4096 226 0 225 3 2 1 1 0 8 0 mcl2k2 2112 23 0 22 2 1 1 1 0 8 0 mcl2k 2048 74404 0 74355 32 20 12 26 0 8 3 mtagpl 96 503 0 434 8 3 5 7 0 8 1 mbufpl 256 133500 0 133352 40 9 31 34 0 8 8 bufpl 280 8484 0 2093 457 0 457 457 0 8 0 anonpl 24 398578 0 386120 121 7 114 114 0 188 24 amapchunkpl 152 86961 0 86124 57 18 39 51 0 158 4 amappl16 200 10456 0 10054 50 20 30 36 0 8 8 amappl15 192 37 0 36 1 0 1 1 0 8 0 amappl14 184 170 0 158 2 1 1 2 0 8 0 amappl13 176 16 0 16 2 2 0 1 0 8 0 amappl12 168 3260 0 3233 2 0 2 2 0 8 0 amappl11 160 65 0 54 1 0 1 1 0 8 0 amappl10 152 26 0 18 1 0 1 1 0 8 0 amappl9 144 150 0 149 1 0 1 1 0 8 0 amappl8 136 222 0 165 3 0 3 3 0 8 0 amappl7 128 180 0 161 2 0 2 2 0 8 0 amappl6 120 310 0 298 1 0 1 1 0 8 0 amappl5 112 164 0 155 1 0 1 1 0 8 0 amappl4 104 528 0 503 2 1 1 2 0 8 0 amappl3 96 15208 0 15127 4 1 3 3 0 8 0 amappl2 88 3148 0 3073 3 1 2 3 0 8 0 amappl1 80 17527 0 17020 22 10 12 22 0 8 0 amappl 88 22693 0 22473 6 0 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 116 0 0 3 0 3 3 0 8 0 uaddrrnd 24 2578 0 2552 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2578 0 2552 1 0 1 1 0 8 0 vmmpekpl 168 22103 0 22045 3 0 3 3 0 8 0 vmmpepl 168 172503 0 170361 184 58 126 129 0 357 24 vmsppl 352 2577 0 2552 3 0 3 3 0 8 0 rwobjpl 24 53798 0 46626 44 0 44 44 0 8 0 pdppl 4096 5162 0 5104 158 96 62 68 0 8 4 pvpl 32 934553 0 916603 393 191 202 335 0 265 35 pmappl 216 2577 0 2552 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 494 0 158 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82885ca7) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff82909ce5,ffffffff828c21a0,416,ffffffff828dc0e6) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000377eada8,0,ffff8000377ead18,0) at rtrequest+0xb6e sys/net/route.c:1046 rtm_output(ffff8000006c0500,ffff8000377eae50,ffff8000377eada8,0,0) at rtm_output+0x5f7 sys/net/rtsock.c:959 route_output(fffffd807a99f700,fffffd8068e23030) at route_output+0x6bc sys/net/rtsock.c:864 route_send(fffffd8068e23030,fffffd807a99f700,0,0) at route_send+0x8f sys/net/rtsock.c:340 sosend(fffffd8068e23030,0,ffff8000377eb020,0,0,0) at sosend+0x66d sendit(ffff80002f564800,3,ffff8000377eb120,0,ffff8000377eb1d0) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendto(ffff80002f564800,ffff8000377eb280,ffff8000377eb1d0) at sys_sendto+0x84 sys/kern/uipc_syscalls.c:564 syscall(ffff8000377eb280) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb26e19992c0, count: -12 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82885ca7) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff82909ce5,ffffffff828c21a0,416,ffffffff828dc0e6) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000377eada8,0,ffff8000377ead18,0) at rtrequest+0xb6e sys/net/route.c:1046 rtm_output(ffff8000006c0500,ffff8000377eae50,ffff8000377eada8,0,0) at rtm_output+0x5f7 sys/net/rtsock.c:959 route_output(fffffd807a99f700,fffffd8068e23030) at route_output+0x6bc sys/net/rtsock.c:864 route_send(fffffd8068e23030,fffffd807a99f700,0,0) at route_send+0x8f sys/net/rtsock.c:340 sosend(fffffd8068e23030,0,ffff8000377eb020,0,0,0) at sosend+0x66d sendit(ffff80002f564800,3,ffff8000377eb120,0,ffff8000377eb1d0) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendto(ffff80002f564800,ffff8000377eb280,ffff8000377eb1d0) at sys_sendto+0x84 sys/kern/uipc_syscalls.c:564 syscall(ffff8000377eb280) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb26e19992c0, count: -12