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 *271347 55990 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(ffffffff821dece5,ffffffff821b27fd,3b7,ffffffff821c2e6e) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000159692b8,4,ffff800015969388,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b5a900,840100,ffff800000b5a958,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b15000,ffff800000b5a900,ffff800015969690,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b15000,ffff800000b5a900,ffff800015969690,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800015969680,ffff800000b15000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800015969680,ffff800000b15000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd802d871c88,8040691a,ffff800015969680,ffff8000ffff8008) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff8008,ffff800015969798,ffff8000159697e0) at sys_ioctl+0x5b9 syscall(ffff800015969860) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,d116ca5010) at Xsyscall+0x128 end of kernel end trace frame: 0xd40efa1600, 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(ffffffff821dece5,ffffffff821b27fd,3b7,ffffffff821c2e6e) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000159692b8,4,ffff800015969388,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b5a900,840100,ffff800000b5a958,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b15000,ffff800000b5a900,ffff800015969690,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b15000,ffff800000b5a900,ffff800015969690,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800015969680,ffff800000b15000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800015969680,ffff800000b15000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd802d871c88,8040691a,ffff800015969680,ffff8000ffff8008) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff8008,ffff800015969798,ffff8000159697e0) at sys_ioctl+0x5b9 syscall(ffff800015969860) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,d116ca5010) at Xsyscall+0x128 end of kernel end trace frame: 0xd40efa1600, count: -12 ddb> show registers rdi 0xffffffff81fe2d67 db_enter+0x17 rsi 0x3f59 __ALIGN_SIZE+0x2f59 rbp 0xffff8000159690d0 rbx 0xffff800015969180 rdx 0x3f5a __ALIGN_SIZE+0x2f5a rcx 0xffff800016988000 rax 0xffff800016988000 r8 0xffff800015969090 r9 0x1 r10 0xffff800000b6f380 r11 0xdd97229b300270fd r12 0x3000000008 r13 0xffff8000159690e0 r14 0x100 r15 0x1 rip 0xffffffff81fe2d68 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000159690c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=271347 stat=onproc flags process=0 proc=4000000 pri=74, usrpri=74, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8770,0xffffffff825a0228 process=0xffff8000148a26d8 user=0xffff800015964000, vmspace=0xfffffd803f013000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 55990 405288 90006 0 2 0 syz-executor.0 *55990 271347 90006 0 7 0x4000000 syz-executor.0 62465 61912 87777 0 3 0x80 nanosleep syz-executor.1 62465 405931 87777 0 3 0x4000080 netio syz-executor.1 62465 418920 87777 0 3 0x4000080 fsleep syz-executor.1 56549 227724 0 0 3 0x14200 acct acct 87777 80176 3185 0 3 0x82 nanosleep syz-executor.1 90006 333476 3185 0 2 0x482 syz-executor.0 51339 228418 1 0 3 0x100083 ttyin getty 35125 142040 0 0 3 0x14200 bored sosplice 3185 243726 85398 0 3 0x82 thrsleep syz-fuzzer 3185 314728 85398 0 2 0x4000482 syz-fuzzer 3185 96802 85398 0 3 0x4000082 thrsleep syz-fuzzer 3185 319341 85398 0 3 0x4000082 thrsleep syz-fuzzer 3185 329753 85398 0 3 0x4000082 thrsleep syz-fuzzer 3185 128542 85398 0 3 0x4000082 kqread syz-fuzzer 3185 357930 85398 0 3 0x4000082 thrsleep syz-fuzzer 3185 275017 85398 0 3 0x4000082 thrsleep syz-fuzzer 85398 114982 20299 0 3 0x10008a pause ksh 20299 205545 64982 0 3 0x92 select sshd 64982 294285 1 0 3 0x80 select sshd 5593 31730 17941 73 3 0x100090 kqread syslogd 17941 269722 1 0 3 0x100082 netio syslogd 33265 389209 1 77 3 0x100090 poll dhclient 89248 245173 1 0 3 0x80 poll dhclient 88578 114559 0 0 2 0x14200 zerothread 41795 302234 0 0 3 0x14200 aiodoned aiodoned 4262 229689 0 0 3 0x14200 syncer update 85120 113348 0 0 3 0x14200 cleaner cleaner 86469 366127 0 0 3 0x14200 reaper reaper 42881 345032 0 0 3 0x14200 pgdaemon pagedaemon 80975 136173 0 0 3 0x14200 bored crynlk 65496 453646 0 0 3 0x14200 bored crypto 29409 22685 0 0 3 0x40014200 acpi0 acpi0 96287 283182 0 0 3 0x14200 bored softnet 71378 86362 0 0 3 0x14200 bored systqmp 953 43361 0 0 3 0x14200 bored systq 82822 3329 0 0 3 0x40014200 bored softclock 29504 84565 0 0 3 0x40014200 idle0 15021 192991 0 0 3 0x14200 bored smr 1 408252 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 9613 7041K 7152K 78643K 27468 0 0 pcb 16 14K 16K 78643K 68207 0 0 rtable 141 13K 13K 78643K 8810 0 0 ifaddr 94 29K 36K 78643K 2822 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 1389 0 0 iov 0 0K 32K 78643K 3087 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1206 76K 77K 78643K 14235 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 422 0 0 VM map 2 0K 0K 78643K 50 0 0 sem 12 0K 1K 78643K 3036 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 29212 0 0 sigio 1 0K 0K 78643K 1440 0 0 proc 50 38K 55K 78643K 6250 0 0 subproc 32 2K 2K 78643K 1612 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 2 0K 0K 78643K 27057 0 0 in_multi 35 2K 2K 78643K 1995 0 0 ether_multi 1 0K 0K 78643K 165 0 0 mrt 1 0K 0K 78643K 141 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 204 901K 901K 78643K 204 0 0 exec 0 0K 1K 78643K 3805 0 0 pfkey data 0 0K 2K 78643K 5 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 184 26K 34K 78643K 69910 0 0 UVM aobj 130 5K 5K 78643K 141 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 3990 0 0 NDP 22 0K 1K 78643K 885 0 0 temp 240 3537K 4180K 78643K 402536 0 0 kqueue 0 0K 0K 78643K 238 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 220 0 212 1 0 1 1 0 8 0 rtpcb 80 1640 0 1638 1 0 1 1 0 8 0 rtentry 112 1203 0 1151 2 0 2 2 0 8 0 unpcb 120 13372 0 13317 23 21 2 3 0 8 0 syncache 264 77 0 77 33 33 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 5519 0 5519 10 10 0 1 0 8 0 tcpcb 544 179074 0 179070 190 188 2 20 0 8 1 ipq 40 51 0 51 27 27 0 1 0 8 0 ipqe 40 153 0 153 27 27 0 1 0 8 0 inpcb 280 258553 0 258540 159 156 3 13 0 8 2 rttmr 72 29 0 29 20 20 0 1 0 8 0 ip6q 72 4 0 4 4 4 0 1 0 8 0 ip6af 40 6 0 6 3 3 0 1 0 8 0 nd6 48 187 0 183 3 2 1 1 0 8 0 pkpcb 40 118 0 118 37 37 0 1 0 8 0 swfcl 56 9 0 0 1 0 1 1 0 8 0 ppxss 1128 404 0 404 95 94 1 1 0 8 1 art_heap8 4096 3 0 2 2 1 1 2 0 8 0 art_heap4 256 5181 0 4894 59 41 18 19 0 8 0 art_table 32 5184 0 4896 3 0 3 3 0 8 0 art_node 16 1151 0 1106 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 3034 0 3024 1 0 1 1 0 8 0 shmpl 112 139 0 11 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 46401 0 44929 49 1 48 48 0 8 0 ffsino 240 46401 0 44929 92 5 87 87 0 8 0 nchpl 144 85986 0 84325 65 0 65 65 0 8 0 uvmvnodes 72 10710 0 0 195 0 195 195 0 8 0 vnodes 208 10710 0 0 564 0 564 564 0 8 0 namei 1024 288366 0 288366 13 12 1 1 0 8 1 vmpool 520 48 0 48 19 19 0 1 0 8 0 scsiplug 64 58 0 58 42 42 0 1 0 8 0 scxspl 192 277032 0 277032 107 106 1 7 0 8 1 plimitpl 152 2211 0 2204 1 0 1 1 0 8 0 sigapl 432 29108 0 29094 2 0 2 2 0 8 0 futexpl 56 1117848 0 1117847 13 12 1 1 0 8 0 knotepl 112 7003 0 6984 18 17 1 3 0 8 0 kqueuepl 104 182378 0 182376 22 21 1 4 0 8 0 pipepl 112 46850 0 46829 79 77 2 2 0 8 1 fdescpl 424 29109 0 29094 2 0 2 2 0 8 0 filepl 120 619562 0 619459 140 135 5 12 0 8 1 lockfpl 104 9564 0 9563 1 0 1 1 0 8 0 lockfspl 48 3090 0 3089 1 0 1 1 0 8 0 sessionpl 112 110 0 100 1 0 1 1 0 8 0 pgrppl 48 312 0 302 1 0 1 1 0 8 0 ucredpl 96 37923 0 37914 2 1 1 2 0 8 0 zombiepl 144 29101 0 29101 3 2 1 1 0 8 1 processpl 864 29132 0 29101 4 0 4 4 0 8 0 procpl 632 64600 0 64559 12 8 4 5 0 8 0 sosppl 128 401 0 401 85 84 1 1 0 8 1 sockpl 384 282073 0 282005 272 263 9 26 0 8 1 mcl64k 65536 4792 0 4792 481 480 1 33 0 8 1 mcl16k 16384 153 0 153 86 85 1 1 0 8 1 mcl12k 12288 542 0 542 83 82 1 1 0 8 1 mcl9k 9216 267 0 267 101 100 1 1 0 8 1 mcl8k 8192 765 0 765 58 57 1 1 0 8 1 mcl4k 4096 4384 0 4384 20 19 1 1 0 8 1 mcl2k2 2112 210 0 210 88 87 1 1 0 8 1 mcl2k 2048 109601 0 109555 36 29 7 20 0 8 0 mtagpl 80 428 0 428 8 8 0 5 0 8 0 mbufpl 256 399661 0 399543 265 252 13 34 0 8 0 bufpl 256 79634 0 68923 670 0 670 670 0 8 0 anonpl 16 2538050 0 2522317 683 606 77 80 0 62 11 amapchunkpl 152 125276 0 125160 237 228 9 19 0 158 4 amappl16 192 145456 0 144567 717 664 53 57 0 8 7 amappl15 184 8285 0 8285 14 14 0 1 0 8 0 amappl14 176 4286 0 4281 2 1 1 1 0 8 0 amappl13 168 365 0 365 13 13 0 1 0 8 0 amappl12 160 2890 0 2887 1 0 1 1 0 8 0 amappl11 152 3101 0 3087 1 0 1 1 0 8 0 amappl10 144 6764 0 6764 13 13 0 1 0 8 0 amappl9 136 5738 0 5731 1 0 1 1 0 8 0 amappl8 128 5246 0 5152 7 3 4 4 0 8 0 amappl7 120 7123 0 7116 1 0 1 1 0 8 0 amappl6 112 2909 0 2882 1 0 1 1 0 8 0 amappl5 104 3727 0 3716 1 0 1 1 0 8 0 amappl4 96 26762 0 26727 1 0 1 1 0 8 0 amappl3 88 6345 0 6339 1 0 1 1 0 8 0 amappl2 80 231578 0 231493 4 2 2 3 0 8 0 amappl1 72 522643 0 522216 26 16 10 20 0 8 0 amappl 80 66320 0 66279 4 2 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 140 0 11 3 0 3 3 0 8 0 uaddrrnd 24 29157 0 29094 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 29157 0 29094 1 0 1 1 0 8 0 vmmpekpl 168 239422 0 239395 2 0 2 2 0 8 0 vmmpepl 168 3382991 0 3380844 1277 1154 123 132 0 357 21 vmsppl 272 29108 0 29094 11 10 1 2 0 8 0 pdppl 4096 58320 0 58284 6 1 5 6 0 8 0 pvpl 32 7716539 0 7697460 1575 1390 185 293 0 265 28 pmappl 200 29156 0 29142 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1994 0 1182 25 1 24 24 0 8 0