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 *100929 89209 0 0 0x4000000 0 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(ffffffff821e69a4,ffffffff821b8925,3b7,ffffffff821c8d2c) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000179a8dc8,4,ffff8000179a8e98,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000c59500,840100,ffff800000c59558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000ac1800,ffff800000c59500,ffff800000c59558,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:748 [inline] in_ifinit(ffff800000ac1800,ffff800000c59500,ffff800000c59558,0) at in_ifinit+0x37a sys/netinet/in.c:679 in_ioctl_change_ifaddr(8040691a,ffff8000179a9180,ffff800000ac1800,1) at in_ioctl_change_ifaddr+0x62b sys/netinet/in.c:483 in_ioctl(8040691a,ffff8000179a9180,ffff800000ac1800,1) at in_ioctl+0x205 sys/netinet/in.c:246 ifioctl(fffffd80048f8b10,8040691a,ffff8000179a9180,ffff8000ffff8280) at ifioctl+0xb34 sys/net/if.c:2218 sys_ioctl(ffff8000ffff8280,ffff8000179a9298,ffff8000179a92e0) at sys_ioctl+0x5b9 syscall(ffff8000179a9360) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,539653db010) at Xsyscall+0x128 end of kernel end trace frame: 0x53c27c1a2d0, 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(ffffffff821e69a4,ffffffff821b8925,3b7,ffffffff821c8d2c) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000179a8dc8,4,ffff8000179a8e98,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000c59500,840100,ffff800000c59558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000ac1800,ffff800000c59500,ffff800000c59558,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:748 [inline] in_ifinit(ffff800000ac1800,ffff800000c59500,ffff800000c59558,0) at in_ifinit+0x37a sys/netinet/in.c:679 in_ioctl_change_ifaddr(8040691a,ffff8000179a9180,ffff800000ac1800,1) at in_ioctl_change_ifaddr+0x62b sys/netinet/in.c:483 in_ioctl(8040691a,ffff8000179a9180,ffff800000ac1800,1) at in_ioctl+0x205 sys/netinet/in.c:246 ifioctl(fffffd80048f8b10,8040691a,ffff8000179a9180,ffff8000ffff8280) at ifioctl+0xb34 sys/net/if.c:2218 sys_ioctl(ffff8000ffff8280,ffff8000179a9298,ffff8000179a92e0) at sys_ioctl+0x5b9 syscall(ffff8000179a9360) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,539653db010) at Xsyscall+0x128 end of kernel end trace frame: 0x53c27c1a2d0, count: -12 ddb> show registers rdi 0xffffffff816c6117 db_enter+0x17 rsi 0x8cdd __ALIGN_SIZE+0x7cdd rbp 0xffff8000179a8be0 rbx 0xffff8000179a8c90 rdx 0x8cde __ALIGN_SIZE+0x7cde rcx 0xffff800016b39000 rax 0xffff800016b39000 r8 0xffff8000179a8ba0 r9 0x1 r10 0xffff800000a65f80 r11 0x2ec97f1a1c8ebf5 r12 0x3000000008 r13 0xffff8000179a8bf0 r14 0x100 r15 0x1 rip 0xffffffff816c6118 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000179a8bd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=100929 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff93c8,0xffffffff8255a198 process=0xffff8000ffff6010 user=0xffff8000179a4000, vmspace=0xfffffd803f014000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 89209 192345 72498 0 2 0 syz-executor.0 *89209 100929 72498 0 7 0x4000000 syz-executor.0 95825 499772 98968 0 2 0x482 syz-executor.1 72498 421103 98968 0 2 0x482 syz-executor.0 75004 181570 0 0 3 0x14200 acct acct 2662 513829 1 0 3 0x100083 ttyin getty 73968 220959 0 0 3 0x14200 bored sosplice 98968 331433 53538 0 3 0x82 thrsleep syz-fuzzer 98968 160197 53538 0 2 0x4000482 syz-fuzzer 98968 49565 53538 0 3 0x4000082 thrsleep syz-fuzzer 98968 15027 53538 0 3 0x4000082 thrsleep syz-fuzzer 98968 519004 53538 0 3 0x4000082 thrsleep syz-fuzzer 98968 123148 53538 0 3 0x4000082 kqread syz-fuzzer 98968 343795 53538 0 3 0x4000082 thrsleep syz-fuzzer 98968 268789 53538 0 3 0x4000082 thrsleep syz-fuzzer 98968 469888 53538 0 3 0x4000082 thrsleep syz-fuzzer 53538 347348 14404 0 3 0x10008a pause ksh 14404 433356 23617 0 3 0x92 select sshd 23617 127699 1 0 3 0x80 select sshd 12048 74732 20857 73 3 0x100090 kqread syslogd 20857 329749 1 0 3 0x100082 netio syslogd 78086 197075 0 0 2 0x14200 zerothread 28194 460723 0 0 3 0x14200 aiodoned aiodoned 26946 401804 0 0 3 0x14200 syncer update 27679 43195 0 0 3 0x14200 cleaner cleaner 87010 439455 0 0 3 0x14200 reaper reaper 9007 359132 0 0 3 0x14200 pgdaemon pagedaemon 14453 99070 0 0 3 0x14200 bored crynlk 97964 476318 0 0 3 0x14200 bored crypto 34606 463273 0 0 3 0x40014200 acpi0 acpi0 80222 150458 0 0 3 0x14200 bored softnet 60401 135866 0 0 2 0x14200 systqmp 94381 459412 0 0 3 0x14200 bored systq 66104 353667 0 0 3 0x40014200 bored softclock 95752 1377 0 0 3 0x40014200 idle0 28143 467299 0 0 3 0x14200 bored smr 1 59707 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 6355K 14677K 78643K 66080 0 0 pcb 13 11K 12K 78643K 5680 0 0 rtable 175 16K 18K 78643K 6782 0 0 ifaddr 137 39K 45K 78643K 3525 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 1181 0 0 iov 0 0K 32K 78643K 12206 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1218 76K 77K 78643K 23133 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 298 0 0 VM map 225 56K 56K 78643K 313 0 0 sem 12 0K 0K 78643K 9696 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 23289 0 0 sigio 0 0K 0K 78643K 386 0 0 proc 45 30K 63K 78643K 7392 0 0 subproc 32 2K 2K 78643K 2114 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 2348 0 0 in_multi 45 2K 4K 78643K 2715 0 0 ether_multi 1 0K 0K 78643K 232 0 0 mrt 2 0K 0K 78643K 170 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 4479 0 0 pfkey data 0 0K 4K 78643K 18 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 436 1734K 1744K 78643K 61060 0 0 UVM aobj 130 7K 7K 78643K 140 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 5581 0 0 NDP 23 0K 1K 78643K 1161 0 0 temp 224 3545K 4185K 78643K 632300 0 0 kqueue 0 0K 0K 78643K 378 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 427 0 422 1 0 1 1 0 8 0 rtpcb 80 2542 0 2542 42 41 1 1 0 8 1 rtentry 112 2533 0 2464 4 1 3 3 0 8 0 unpcb 120 14972 0 14951 11 9 2 2 0 8 1 syncache 264 114 0 114 43 43 0 1 0 8 0 sackhl 24 3 0 3 3 3 0 1 0 8 0 tcpqe 32 88 0 88 29 29 0 1 0 8 0 tcpcb 544 12381 0 12377 151 150 1 15 0 8 0 ipq 40 323 0 323 77 77 0 1 0 8 0 ipqe 40 9633 0 9633 77 77 0 1 0 8 0 inpcb 280 32228 0 32223 161 159 2 9 0 8 1 rttmr 72 54 0 53 23 22 1 1 0 8 0 ip6q 72 8 0 8 5 5 0 1 0 8 0 ip6af 40 22 0 22 5 5 0 1 0 8 0 nd6 48 354 0 354 6 5 1 1 0 8 1 pkpcb 40 135 0 135 52 52 0 1 0 8 0 swfcl 56 8 0 0 1 0 1 1 0 8 0 ppxss 1128 448 0 448 77 76 1 1 0 8 1 art_heap8 4096 27 0 23 24 20 4 6 0 8 0 art_heap4 256 10347 0 10048 103 81 22 25 0 8 0 art_table 32 10374 0 10071 6 3 3 4 0 8 0 art_node 16 2510 0 2458 1 0 1 1 0 8 0 sysvmsgpl 40 148 0 129 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 9694 0 9684 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 38007 0 36477 51 1 50 50 0 8 0 ffsino 240 38007 0 36477 91 0 91 91 0 8 0 nchpl 144 83159 0 82626 60 40 20 60 0 8 0 uvmvnodes 72 11054 0 0 201 0 201 201 0 8 0 vnodes 208 11054 0 0 582 0 582 582 0 8 0 namei 1024 300523 0 300523 17 16 1 1 0 8 1 vcpupl 1984 227 0 4 28 0 28 28 0 8 0 vmpool 520 311 0 88 17 2 15 15 0 8 0 scsiplug 64 26 0 26 17 17 0 1 0 8 0 scxspl 192 281246 0 281246 112 109 3 7 0 8 3 plimitpl 152 2106 0 2100 1 0 1 1 0 8 0 sigapl 432 23126 0 23115 2 0 2 2 0 8 0 futexpl 56 919845 0 919845 23 22 1 1 0 8 1 knotepl 112 6834 0 6815 41 39 2 3 0 8 1 kqueuepl 104 15666 0 15664 26 25 1 4 0 8 0 pipepl 112 14660 0 14641 37 35 2 2 0 8 0 fdescpl 424 23127 0 23115 2 0 2 2 0 8 0 filepl 120 240894 0 240809 117 112 5 11 0 8 2 lockfpl 104 12428 0 12428 22 21 1 1 0 8 1 lockfspl 48 4125 0 4125 22 21 1 1 0 8 1 sessionpl 112 164 0 156 1 0 1 1 0 8 0 pgrppl 48 537 0 529 1 0 1 1 0 8 0 ucredpl 96 27479 0 27471 1 0 1 1 0 8 0 zombiepl 144 23143 0 23142 1 0 1 1 0 8 0 processpl 864 23171 0 23142 4 0 4 4 0 8 0 procpl 632 52117 0 52079 12 8 4 5 0 8 0 sosppl 128 399 0 399 76 75 1 1 0 8 1 sockpl 384 50679 0 50653 220 213 7 15 0 8 3 mcl64k 65536 5451 0 5194 394 361 33 47 0 8 0 mcl16k 16384 366 0 366 87 86 1 1 0 8 1 mcl12k 12288 902 0 902 52 52 0 1 0 8 0 mcl9k 9216 382 0 382 83 82 1 1 0 8 1 mcl8k 8192 1508 0 1507 36 35 1 1 0 8 0 mcl4k 4096 3226 0 3224 28 27 1 1 0 8 0 mcl2k2 2112 281 0 281 88 88 0 1 0 8 0 mcl2k 2048 120033 0 119992 59 53 6 13 0 8 0 mtagpl 80 1136 0 1119 18 17 1 2 0 8 0 mbufpl 256 408261 0 407845 826 793 33 60 0 8 3 bufpl 256 104214 0 93081 697 0 697 697 0 8 0 anonpl 16 2811954 0 2786881 662 544 118 150 0 62 5 amapchunkpl 152 130679 0 130503 487 473 14 36 0 158 6 amappl16 192 147204 0 145625 683 598 85 92 0 8 4 amappl15 184 4113 0 4113 18 18 0 1 0 8 0 amappl14 176 6013 0 6009 1 0 1 1 0 8 0 amappl13 168 2979 0 2978 1 0 1 1 0 8 0 amappl12 160 3437 0 3433 1 0 1 1 0 8 0 amappl11 152 2723 0 2719 1 0 1 1 0 8 0 amappl10 144 1525 0 1521 1 0 1 1 0 8 0 amappl9 136 5016 0 5013 1 0 1 1 0 8 0 amappl8 128 4735 0 4632 6 2 4 4 0 8 0 amappl7 120 1980 0 1971 1 0 1 1 0 8 0 amappl6 112 2529 0 2507 1 0 1 1 0 8 0 amappl5 104 4869 0 4861 1 0 1 1 0 8 0 amappl4 96 29376 0 29338 7 5 2 2 0 8 1 amappl3 88 6695 0 6677 1 0 1 1 0 8 0 amappl2 80 181383 0 181301 3 1 2 3 0 8 0 amappl1 72 432874 0 432501 36 28 8 20 0 8 0 amappl 80 54686 0 54537 4 0 4 4 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 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 23438 0 23115 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 23438 0 23115 2 0 2 2 0 8 0 vmmpekpl 168 123955 0 123896 4 1 3 3 0 8 0 vmmpepl 168 2844512 0 2841190 1464 1269 195 195 0 357 38 vmsppl 272 23126 0 23115 6 5 1 2 0 8 0 pdppl 4096 46882 0 46629 44 12 32 33 0 8 0 pvpl 32 8095518 0 8073291 1670 1448 222 399 0 265 15 pmappl 200 23437 0 23203 14 1 13 13 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 2568 0 1641 30 2 28 28 0 8 0