panic: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 946 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *329752 45747 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8257f3d0) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff825f343a,ffffffff825b094a,3b2,ffffffff825c6fc9) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff80002e8e7630,4,ffff80002e8e76f8,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff800000c91b00,840100,ffff800000c91b58,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800000bbe800,ffff800000c91b00,ffff80002e8e7960,1) at in_ifinit+0x35d in_insert_prefix sys/netinet/in.c:796 [inline] in_ifinit(ffff800000bbe800,ffff800000c91b00,ffff80002e8e7960,1) at in_ifinit+0x35d sys/netinet/in.c:729 in_ioctl_change_ifaddr(8040691a,ffff80002e8e7950,ffff800000bbe800,1) at in_ioctl_change_ifaddr+0x65e sys/netinet/in.c:526 ifioctl(fffffd807a8a3150,8040691a,ffff80002e8e7950,ffff800029a50550) at ifioctl+0x1152 pru_control sys/sys/protosw.h:365 [inline] ifioctl(fffffd807a8a3150,8040691a,ffff80002e8e7950,ffff800029a50550) at ifioctl+0x1152 sys/net/if.c:2345 sys_ioctl(ffff800029a50550,ffff80002e8e7a68,ffff80002e8e7ab0) at sys_ioctl+0x49e syscall(ffff80002e8e7b30) at syscall+0x446 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x397500ab810, count: 4 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 946 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8257f3d0) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff825f343a,ffffffff825b094a,3b2,ffffffff825c6fc9) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff80002e8e7630,4,ffff80002e8e76f8,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff800000c91b00,840100,ffff800000c91b58,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800000bbe800,ffff800000c91b00,ffff80002e8e7960,1) at in_ifinit+0x35d in_insert_prefix sys/netinet/in.c:796 [inline] in_ifinit(ffff800000bbe800,ffff800000c91b00,ffff80002e8e7960,1) at in_ifinit+0x35d sys/netinet/in.c:729 in_ioctl_change_ifaddr(8040691a,ffff80002e8e7950,ffff800000bbe800,1) at in_ioctl_change_ifaddr+0x65e sys/netinet/in.c:526 ifioctl(fffffd807a8a3150,8040691a,ffff80002e8e7950,ffff800029a50550) at ifioctl+0x1152 pru_control sys/sys/protosw.h:365 [inline] ifioctl(fffffd807a8a3150,8040691a,ffff80002e8e7950,ffff800029a50550) at ifioctl+0x1152 sys/net/if.c:2345 sys_ioctl(ffff800029a50550,ffff80002e8e7a68,ffff80002e8e7ab0) at sys_ioctl+0x49e syscall(ffff80002e8e7b30) at syscall+0x446 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x397500ab810, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002e8e7460 rbx 0x10000 __ALIGN_SIZE+0xf000 rdx 0xffff800000d51ec0 rcx 0 rax 0xffff800029a50550 r8 0 r9 0x8080808080808080 r10 0xa10d74f89d875371 r11 0xa7495202b10b1e2c r12 0 r13 0xffff80002e8e7630 r14 0 r15 0x1 rip 0xffffffff817d30a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e8e7450 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=329752 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800029a51510,0xffffffff82a642a8 process=0xffff8000217a8010 user=0xffff80002e8e2000, vmspace=0xfffffd806bbfb340 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 45747 215996 3035 0 2 0 syz-executor.1 *45747 329752 3035 0 7 0x4000000 syz-executor.1 87634 374409 77460 0 2 0 syz-executor.4 87634 256595 77460 0 3 0x4000080 fsleep syz-executor.4 7124 207302 19262 0 2 0 syz-executor.7 7124 479577 19262 0 3 0x4000080 fsleep syz-executor.7 73700 501043 10614 0 2 0 syz-executor.5 73700 334277 10614 0 3 0x4000080 fsleep syz-executor.5 10307 313476 94396 0 2 0 syz-executor.3 10307 194372 94396 0 3 0x4000080 ttyin syz-executor.3 10307 129778 94396 0 3 0x4000080 fsleep syz-executor.3 81215 405260 43879 0 2 0x480 syz-executor.6 81215 487273 43879 0 3 0x4000080 ttyin syz-executor.6 81215 405782 43879 0 3 0x4000080 fsleep syz-executor.6 86267 229689 62097 0 2 0x2 syz-executor.0 10614 152570 62097 0 2 0x482 syz-executor.5 29014 440880 1 0 3 0x100083 ttyin getty 77460 154770 62097 0 3 0x82 nanoslp syz-executor.4 3035 164490 62097 0 2 0x482 syz-executor.1 9144 68199 0 0 3 0x14200 acct acct 13762 464169 0 0 3 0x14200 bored sosplice 43879 404764 62097 0 2 0x482 syz-executor.6 19262 166288 62097 0 3 0x82 nanoslp syz-executor.7 94396 185502 62097 0 2 0x482 syz-executor.3 62097 148396 40248 0 3 0x82 wait syz-fuzzer 62097 25939 40248 0 2 0x4000482 syz-fuzzer 62097 401859 40248 0 3 0x4000082 thrsleep syz-fuzzer 62097 268766 40248 0 3 0x4000082 thrsleep syz-fuzzer 62097 356296 40248 0 3 0x4000082 wait syz-fuzzer 62097 94653 40248 0 3 0x4000082 thrsleep syz-fuzzer 62097 4302 40248 0 3 0x4000082 wait syz-fuzzer 62097 24982 40248 0 3 0x4000082 thrsleep syz-fuzzer 62097 222432 40248 0 3 0x4000082 wait syz-fuzzer 62097 37417 40248 0 3 0x4000082 wait syz-fuzzer 62097 309134 40248 0 3 0x4000082 wait syz-fuzzer 62097 344389 40248 0 3 0x4000082 wait syz-fuzzer 62097 226480 40248 0 3 0x4000082 kqread syz-fuzzer 62097 19693 40248 0 3 0x4000082 wait syz-fuzzer 62097 244644 40248 0 3 0x4000082 thrsleep syz-fuzzer 40248 44400 87083 0 3 0x10008a sigsusp ksh 87083 381804 15089 0 3 0x9a kqread sshd 15089 491913 1 0 3 0x88 kqread sshd 54039 44099 64938 73 3 0x1100090 kqread syslogd 64938 480368 1 0 3 0x100082 netio syslogd 54130 174984 1 0 3 0x100080 kqread resolvd 2096 265721 56261 77 3 0x100092 kqread dhcpleased 95636 338624 56261 77 3 0x100092 kqread dhcpleased 56261 467148 1 0 3 0x80 kqread dhcpleased 97766 90125 0 0 3 0x14200 bored smr 73092 460103 0 0 2 0x14200 zerothread 91502 124546 0 0 3 0x14200 aiodoned aiodoned 60154 302756 0 0 3 0x14200 syncer update 53673 305920 0 0 3 0x14200 cleaner cleaner 46133 8708 0 0 3 0x14200 reaper reaper 94716 98706 0 0 3 0x14200 pgdaemon pagedaemon 47679 443941 0 0 3 0x14200 bored viomb 23812 401741 0 0 3 0x40014200 acpi0 acpi0 63175 514530 0 0 3 0x14200 bored softnet 96302 84443 0 0 3 0x14200 bored softnet 80944 32675 0 0 3 0x14200 bored softnet 29093 174868 0 0 3 0x14200 bored softnet 41029 392658 0 0 3 0x14200 bored systqmp 59581 91008 0 0 3 0x14200 bored systq 40360 493205 0 0 2 0x40014200 softclock 53357 449809 0 0 3 0x40014200 idle0 1 470658 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 10218 6425K 6738K 78643K 14811 0 pcb 13 14K 17K 78643K 580 0 rtable 212 15K 16K 78643K 1190 0 ifaddr 99 23K 25K 78643K 434 0 counters 27 17K 17K 78643K 126 0 ioctlops 0 0K 2K 78643K 459 0 iov 0 0K 32K 78643K 340 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1432 90K 90K 78643K 6034 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 22 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 509 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 77K 78643K 2635 0 sigio 0 0K 0K 78643K 6 0 proc 58 59K 83K 78643K 1082 0 subproc 104 6K 6K 78643K 325 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 214 0 in_multi 85 5K 6K 78643K 353 0 ether_multi 1 0K 0K 78643K 27 0 mrt 1 0K 0K 78643K 38 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 253 1129K 1129K 78643K 253 0 exec 0 0K 1K 78643K 1010 0 pfkey data 0 0K 0K 78643K 1 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 320 91K 100K 78643K 18659 0 UVM aobj 15 2K 2K 78643K 15 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 94 0 NDP 12 0K 1K 78643K 139 0 temp 128 4686K 5705K 78643K 46126 0 kqueue 13 20K 28K 78643K 256 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 372 0 369 7 6 1 4 0 8 0 rtentry 112 371 0 278 4 0 4 4 0 8 0 unpcb 144 4146 0 4133 46 43 3 10 0 8 2 syncache 296 32 0 32 7 7 0 1 0 8 0 tcpqe 32 80 0 80 5 5 0 1 0 8 0 tcpcb 776 1186 0 1179 55 51 4 11 0 8 3 arp 88 59 0 42 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 5 0 5 1 1 0 1 0 8 0 inpcb 336 3010 0 2998 75 66 9 12 0 8 7 nd6 48 79 0 57 1 0 1 1 0 8 0 pkpcb 40 45 0 45 3 3 0 1 0 8 0 kcovpl 48 25 0 17 1 0 1 1 0 8 0 mppekey 1024 11 0 11 4 3 1 1 0 8 1 ppxss 1160 61 0 61 8 7 1 1 0 8 1 pppxif 1352 21 0 21 6 5 1 1 0 8 1 pfstscr 40 77 0 57 2 1 1 1 0 8 0 pfanchor 1280 456 0 204 27 5 22 27 0 8 0 pfstitem 24 53 0 20 1 0 1 1 0 8 0 pfstkey 128 138 0 115 2 1 1 1 0 8 0 pfstate 352 71 0 53 3 1 2 2 0 8 0 rttmr 136 12 0 12 4 3 1 1 0 8 1 art_heap8 4096 3 0 2 3 2 1 2 0 8 0 art_heap4 256 1393 0 1003 38 10 28 30 0 8 0 art_table 32 1396 0 1005 4 0 4 4 0 8 0 art_node 16 363 0 284 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 3 1 0 1 1 0 8 0 semapl 112 437 0 427 1 0 1 1 0 8 0 shmpl 112 12 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 7575 0 6141 90 0 90 90 0 8 0 ffsino 240 7575 0 6141 85 0 85 85 0 8 0 nchpl 144 11205 0 9571 63 0 63 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 48577 0 48576 4 3 1 2 0 8 0 kstatmem 264 174 0 150 3 0 3 3 0 8 0 scxspl 216 23811 0 23811 13 12 1 8 0 8 1 plimitpl 152 337 0 321 1 0 1 1 0 8 0 sigapl 424 2916 0 2871 8 1 7 8 0 8 0 futexpl 64 28897 0 28892 1 0 1 1 0 8 0 knotepl 120 52838 0 52627 32 21 11 11 0 8 2 kqueuepl 184 602 0 593 12 11 1 4 0 8 0 pipepl 288 676 0 649 19 16 3 7 0 8 0 fdescpl 432 2878 0 2851 4 0 4 4 0 8 0 filepl 120 33987 0 33741 66 53 13 18 0 8 4 lockfpl 104 929 0 927 3 2 1 2 0 8 0 lockfspl 48 236 0 234 1 0 1 1 0 8 0 sessionpl 144 41 0 25 1 0 1 1 0 8 0 pgrppl 48 52 0 36 1 0 1 1 0 8 0 ucredpl 104 13748 0 13736 1 0 1 1 0 8 0 zombiepl 144 2872 0 2871 2 1 1 1 0 8 0 processpl 1008 2916 0 2871 11 4 7 9 0 8 0 procpl 672 7211 0 7144 11 3 8 10 0 8 0 sosppl 168 23 0 23 5 5 0 1 0 8 0 sockpl 456 7576 0 7548 218 206 12 38 0 8 7 mcl64k 65536 112 0 112 9 8 1 1 0 8 1 mcl16k 16384 51 0 51 8 7 1 1 0 8 1 mcl12k 12288 106 0 106 12 11 1 1 0 8 1 mcl9k 9216 20 0 20 8 8 0 1 0 8 0 mcl8k 8192 131 0 131 12 11 1 1 0 8 1 mcl4k 4096 338 0 338 4 3 1 1 0 8 1 mcl2k2 2112 29 0 29 9 9 0 1 0 8 0 mcl2k 2048 80590 0 80516 40 29 11 32 0 8 0 mtagpl 96 228 0 65 6 1 5 5 0 8 0 mbufpl 256 156750 0 156400 150 123 27 77 0 8 0 bufpl 288 7936 0 1534 458 0 458 458 0 8 0 anonpl 24 580836 0 562976 116 6 110 110 0 188 1 amapchunkpl 152 53832 0 53092 59 29 30 41 0 158 0 amappl16 200 5415 0 4841 36 5 31 32 0 8 0 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 211 0 199 2 0 2 2 0 8 0 amappl13 176 8 0 7 1 0 1 1 0 8 0 amappl12 168 618 0 611 1 0 1 1 0 8 0 amappl11 160 45 0 35 1 0 1 1 0 8 0 amappl10 152 48 0 39 1 0 1 1 0 8 0 amappl9 144 961 0 960 3 2 1 1 0 8 0 amappl8 136 245 0 182 3 0 3 3 0 8 0 amappl7 128 176 0 154 2 0 2 2 0 8 0 amappl6 120 237 0 226 1 0 1 1 0 8 0 amappl5 112 236 0 227 1 0 1 1 0 8 0 amappl4 104 735 0 707 2 1 1 2 0 8 0 amappl3 96 7665 0 7609 2 0 2 2 0 8 0 amappl2 88 3393 0 3324 3 1 2 3 0 8 0 amappl1 80 66707 0 65980 26 10 16 22 0 8 0 amappl 88 17966 0 17778 5 0 5 5 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 14 0 0 1 0 1 1 0 8 0 uaddrrnd 24 2878 0 2851 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2878 0 2851 1 0 1 1 0 8 0 vmmpekpl 168 27482 0 27429 3 0 3 3 0 8 0 vmmpepl 168 276140 0 273401 227 98 129 152 0 357 5 vmsppl 272 2877 0 2851 4 2 2 3 0 8 0 rwobjpl 24 76849 0 69220 47 0 47 47 0 8 0 pdppl 4096 5762 0 5702 290 226 64 70 0 8 4 pvpl 32 1197965 0 1174897 267 77 190 255 0 265 1 pmappl 216 2877 0 2851 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1299 0 511 24 0 24 24 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8257f3d0) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff825f343a,ffffffff825b094a,3b2,ffffffff825c6fc9) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff80002e8e7630,4,ffff80002e8e76f8,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff800000c91b00,840100,ffff800000c91b58,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800000bbe800,ffff800000c91b00,ffff80002e8e7960,1) at in_ifinit+0x35d in_insert_prefix sys/netinet/in.c:796 [inline] in_ifinit(ffff800000bbe800,ffff800000c91b00,ffff80002e8e7960,1) at in_ifinit+0x35d sys/netinet/in.c:729 in_ioctl_change_ifaddr(8040691a,ffff80002e8e7950,ffff800000bbe800,1) at in_ioctl_change_ifaddr+0x65e sys/netinet/in.c:526 ifioctl(fffffd807a8a3150,8040691a,ffff80002e8e7950,ffff800029a50550) at ifioctl+0x1152 pru_control sys/sys/protosw.h:365 [inline] ifioctl(fffffd807a8a3150,8040691a,ffff80002e8e7950,ffff800029a50550) at ifioctl+0x1152 sys/net/if.c:2345 sys_ioctl(ffff800029a50550,ffff80002e8e7a68,ffff80002e8e7ab0) at sys_ioctl+0x49e syscall(ffff80002e8e7b30) at syscall+0x446 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x397500ab810, count: -11 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8257f3d0) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff825f343a,ffffffff825b094a,3b2,ffffffff825c6fc9) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff80002e8e7630,4,ffff80002e8e76f8,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff800000c91b00,840100,ffff800000c91b58,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800000bbe800,ffff800000c91b00,ffff80002e8e7960,1) at in_ifinit+0x35d in_insert_prefix sys/netinet/in.c:796 [inline] in_ifinit(ffff800000bbe800,ffff800000c91b00,ffff80002e8e7960,1) at in_ifinit+0x35d sys/netinet/in.c:729 in_ioctl_change_ifaddr(8040691a,ffff80002e8e7950,ffff800000bbe800,1) at in_ioctl_change_ifaddr+0x65e sys/netinet/in.c:526 ifioctl(fffffd807a8a3150,8040691a,ffff80002e8e7950,ffff800029a50550) at ifioctl+0x1152 pru_control sys/sys/protosw.h:365 [inline] ifioctl(fffffd807a8a3150,8040691a,ffff80002e8e7950,ffff800029a50550) at ifioctl+0x1152 sys/net/if.c:2345 sys_ioctl(ffff800029a50550,ffff80002e8e7a68,ffff80002e8e7ab0) at sys_ioctl+0x49e syscall(ffff80002e8e7b30) at syscall+0x446 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x397500ab810, count: -11