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 * 3638 56487 60928 0x10 0x4000000 0 syz-executor.7 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff8275fee9,3b2,ffffffff827780fb) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff80002e8931b0,4,ffff80002e893278,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff8000006cd100,840100,ffff8000006cd158,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800000e39000,ffff8000006cd100,ffff80002e8934e0,1) at in_ifinit+0x35d in_insert_prefix sys/netinet/in.c:796 [inline] in_ifinit(ffff800000e39000,ffff8000006cd100,ffff80002e8934e0,1) at in_ifinit+0x35d sys/netinet/in.c:729 in_ioctl_change_ifaddr(8040691a,ffff80002e8934d0,ffff800000e39000,1) at in_ioctl_change_ifaddr+0x65e sys/netinet/in.c:526 ifioctl(fffffd807c2a4950,8040691a,ffff80002e8934d0,ffff80002e88d0f0) at ifioctl+0x1152 pru_control sys/sys/protosw.h:365 [inline] ifioctl(fffffd807c2a4950,8040691a,ffff80002e8934d0,ffff80002e88d0f0) at ifioctl+0x1152 sys/net/if.c:2345 sys_ioctl(ffff80002e88d0f0,ffff80002e8935e8,ffff80002e893630) at sys_ioctl+0x49e syscall(ffff80002e8936b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x86dd7767300, 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(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff8275fee9,3b2,ffffffff827780fb) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff80002e8931b0,4,ffff80002e893278,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff8000006cd100,840100,ffff8000006cd158,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800000e39000,ffff8000006cd100,ffff80002e8934e0,1) at in_ifinit+0x35d in_insert_prefix sys/netinet/in.c:796 [inline] in_ifinit(ffff800000e39000,ffff8000006cd100,ffff80002e8934e0,1) at in_ifinit+0x35d sys/netinet/in.c:729 in_ioctl_change_ifaddr(8040691a,ffff80002e8934d0,ffff800000e39000,1) at in_ioctl_change_ifaddr+0x65e sys/netinet/in.c:526 ifioctl(fffffd807c2a4950,8040691a,ffff80002e8934d0,ffff80002e88d0f0) at ifioctl+0x1152 pru_control sys/sys/protosw.h:365 [inline] ifioctl(fffffd807c2a4950,8040691a,ffff80002e8934d0,ffff80002e88d0f0) at ifioctl+0x1152 sys/net/if.c:2345 sys_ioctl(ffff80002e88d0f0,ffff80002e8935e8,ffff80002e893630) at sys_ioctl+0x49e syscall(ffff80002e8936b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x86dd7767300, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002e892fe0 rbx 0x10000 __ALIGN_SIZE+0xf000 rdx 0xffff800000cccd00 rcx 0 rax 0xffff80002e88d0f0 r8 0 r9 0x8080808080808080 r10 0xfd20705032f2dfd2 r11 0x84081c53ae2a3bf7 r12 0 r13 0xffff80002e8931b0 r14 0 r15 0x1 rip 0xffffffff81a69eb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e892fd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.7) pid=3638 stat=onproc flags process=10 proc=4000000 pri=32, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff80002e88d3a8,0xffffffff82cf3498 process=0xffff800021702bd0 user=0xffff80002e88e000, vmspace=0xfffffd8069b9bc28 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 56487 73393 39009 60928 2 0x10 syz-executor.7 *56487 3638 39009 60928 7 0x4000010 syz-executor.7 83465 21448 72030 0 2 0 syz-executor.5 83465 163822 72030 0 3 0x4000080 fsleep syz-executor.5 29512 177503 50192 0 2 0 syz-executor.1 29512 15000 50192 0 3 0x4000080 fsleep syz-executor.1 29512 435353 50192 0 3 0x4000080 fsleep syz-executor.1 72030 405088 12992 0 3 0x82 nanoslp syz-executor.5 95170 40269 12992 0 2 0x2 syz-executor.2 47150 96370 12992 0 2 0x2 syz-executor.4 39009 228490 12992 0 3 0x82 nanoslp syz-executor.7 3706 373806 12992 0 3 0x82 piperd syz-executor.6 50192 271792 12992 0 2 0x482 syz-executor.1 29488 342380 0 0 3 0x14200 bored sosplice 12992 409911 54339 0 3 0x82 wait syz-fuzzer 12992 258350 54339 0 2 0x4000482 syz-fuzzer 12992 264938 54339 0 3 0x4000082 thrsleep syz-fuzzer 12992 96477 54339 0 3 0x4000082 thrsleep syz-fuzzer 12992 329605 54339 0 3 0x4000082 wait syz-fuzzer 12992 513819 54339 0 3 0x4000082 wait syz-fuzzer 12992 367603 54339 0 3 0x4000082 thrsleep syz-fuzzer 12992 399850 54339 0 2 0x4000002 syz-fuzzer 12992 206795 54339 0 3 0x4000082 thrsleep syz-fuzzer 12992 486367 54339 0 3 0x4000082 wait syz-fuzzer 12992 340002 54339 0 3 0x4000082 thrsleep syz-fuzzer 12992 429488 54339 0 3 0x4000082 wait syz-fuzzer 12992 191548 54339 0 3 0x4000082 wait syz-fuzzer 12992 257792 54339 0 3 0x4000082 wait syz-fuzzer 12992 123596 54339 0 3 0x4000082 thrsleep syz-fuzzer 54339 464760 38363 0 3 0x10008a sigsusp ksh 38363 31967 99953 0 3 0x9a kqread sshd 68475 519530 1 0 3 0x100083 ttyin getty 99953 319814 1 0 3 0x88 kqread sshd 1564 415875 76499 73 3 0x1100090 kqread syslogd 76499 379336 1 0 3 0x100082 netio syslogd 66962 262237 1 0 3 0x100080 kqread resolvd 95559 244641 37910 77 3 0x100092 kqread dhcpleased 31031 439870 37910 77 3 0x100092 kqread dhcpleased 37910 259242 1 0 3 0x80 kqread dhcpleased 55574 286870 0 0 3 0x14200 bored smr 18763 351054 0 0 2 0x14200 zerothread 22847 171745 0 0 3 0x14200 aiodoned aiodoned 85873 5891 0 0 3 0x14200 syncer update 6656 459389 0 0 3 0x14200 cleaner cleaner 41670 179844 0 0 3 0x14200 reaper reaper 92893 203964 0 0 3 0x14200 pgdaemon pagedaemon 39398 386648 0 0 3 0x14200 bored viomb 82008 368946 0 0 3 0x40014200 acpi0 acpi0 80222 2964 0 0 3 0x14200 bored softnet 71261 312970 0 0 3 0x14200 bored softnet 26138 375979 0 0 3 0x14200 bored softnet 31477 272123 0 0 3 0x14200 bored softnet 54888 364303 0 0 3 0x14200 bored systqmp 89296 291285 0 0 3 0x14200 bored systq 79669 7489 0 0 3 0x40014200 bored softclock 2563 269814 0 0 3 0x40014200 idle0 1 116050 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 10224 6428K 7338K 78643K 25295 0 pcb 15 16K 19K 78643K 1401 0 rtable 206 9K 9K 78643K 2282 0 ifaddr 74 22K 24K 78643K 751 0 sysctl 2 0K 0K 78643K 4 0 counters 26 17K 17K 78643K 479 0 ioctlops 0 0K 4K 78643K 1209 0 iov 0 0K 24K 78643K 692 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1621 101K 102K 78643K 8734 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 56 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 166 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 12 41K 73K 78643K 8350 0 sigio 0 0K 0K 78643K 181 0 proc 67 59K 75K 78643K 1608 0 subproc 91 5K 6K 78643K 559 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 744 0 in_multi 78 5K 6K 78643K 1050 0 ether_multi 1 0K 0K 78643K 31 0 mrt 1 0K 0K 78643K 14 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 247 1102K 1102K 78643K 247 0 exec 0 0K 1K 78643K 1531 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 294 79K 95K 78643K 54678 0 UVM aobj 131 4K 4K 78643K 136 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 158 0 NDP 11 0K 1K 78643K 300 0 temp 120 5769K 39561K 78643K 117354 0 kqueue 13 20K 24K 78643K 518 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 592 0 589 9 8 1 3 0 8 0 rtentry 112 865 0 775 4 1 3 4 0 8 0 unpcb 144 5736 0 5723 78 77 1 6 0 8 0 syncache 296 30 0 30 13 13 0 1 0 8 0 tcpqe 32 657 0 657 7 7 0 2 0 8 0 tcpcb 776 2375 0 2370 111 110 1 11 0 8 0 arp 88 94 0 78 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 336 6592 0 6582 211 204 7 12 0 8 6 nd6 48 205 0 187 1 0 1 1 0 8 0 pkpcb 40 12 0 12 4 4 0 1 0 8 0 kcovpl 48 43 0 36 1 0 1 1 0 8 0 mppekey 1024 108 0 108 9 9 0 1 0 8 0 ppxss 1160 355 0 355 23 23 0 1 0 8 0 pppxif 1360 319 0 319 17 17 0 1 0 8 0 pfstscr 40 134 0 132 1 0 1 1 0 8 0 pfosfp 40 3 0 2 1 0 1 1 0 8 0 pfosfpen 112 3 0 2 1 0 1 1 0 8 0 pfanchor 1280 448 0 441 1 0 1 1 0 8 0 pfstitem 24 134 0 132 1 0 1 1 0 8 0 pfstkey 128 134 0 132 1 0 1 1 0 8 0 pfstate 352 67 0 66 1 0 1 1 0 8 0 rttmr 136 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 4338 0 3961 53 26 27 29 0 8 0 art_table 32 4339 0 3961 4 0 4 4 0 8 0 art_node 16 856 0 780 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 13 2 1 1 1 0 8 0 semupl 112 6 0 6 1 1 0 1 0 8 0 semapl 112 164 0 154 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 11375 0 9937 91 0 91 91 0 8 0 ffsino 240 11375 0 9937 86 0 86 86 0 8 0 nchpl 144 21635 0 20014 63 1 62 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 86151 0 86151 7 6 1 3 0 8 1 vmpool 664 32 0 32 7 7 0 1 0 8 0 kstatmem 264 272 0 250 2 0 2 2 0 8 0 scxspl 216 67966 0 67966 27 26 1 8 0 8 1 plimitpl 152 1809 0 1795 1 0 1 1 0 8 0 sigapl 424 8623 0 8583 8 2 6 8 0 8 0 futexpl 64 94368 0 94365 4 3 1 1 0 8 0 knotepl 120 90542 0 90421 43 37 6 11 0 8 2 kqueuepl 184 1388 0 1379 27 26 1 6 0 8 0 pipepl 288 1889 0 1865 54 51 3 7 0 8 0 fdescpl 432 8558 0 8535 4 0 4 4 0 8 0 filepl 120 61016 0 60801 210 200 10 15 0 8 1 lockfpl 104 2089 0 2087 7 6 1 2 0 8 0 lockfspl 48 732 0 730 1 0 1 1 0 8 0 sessionpl 144 58 0 43 1 0 1 1 0 8 0 pgrppl 48 78 0 63 1 0 1 1 0 8 0 ucredpl 104 11729 0 11717 1 0 1 1 0 8 0 zombiepl 144 8584 0 8583 3 2 1 1 0 8 0 processpl 1008 8623 0 8583 10 3 7 9 0 8 0 procpl 696 22049 0 21991 47 39 8 10 0 8 0 sosppl 168 44 0 44 13 13 0 1 0 8 0 sockpl 456 12938 0 12912 487 475 12 24 0 8 8 mcl64k 65536 207 0 207 52 51 1 1 0 8 1 mcl16k 16384 133 0 133 41 41 0 1 0 8 0 mcl12k 12288 319 0 319 64 63 1 1 0 8 1 mcl9k 9216 70 0 70 33 33 0 1 0 8 0 mcl8k 8192 520 0 519 78 77 1 1 0 8 0 mcl4k 4096 1551 0 1551 70 69 1 1 0 8 1 mcl2k2 2112 34 0 34 23 23 0 1 0 8 0 mcl2k 2048 89169 0 89085 78 66 12 34 0 8 0 mtagpl 96 1319 0 1281 18 16 2 16 0 8 0 mbufpl 256 211530 0 211289 713 688 25 179 0 8 2 bufpl 288 15088 0 8682 458 0 458 458 0 8 0 anonpl 24 1518945 0 1504286 157 47 110 132 0 188 0 amapchunkpl 152 152119 0 151467 102 72 30 40 0 158 0 amappl16 200 10539 0 9983 37 7 30 31 0 8 0 amappl15 192 57 0 56 2 1 1 1 0 8 0 amappl14 184 286 0 274 2 1 1 2 0 8 0 amappl13 176 4 0 4 3 3 0 1 0 8 0 amappl12 168 834 0 830 1 0 1 1 0 8 0 amappl11 160 45 0 34 1 0 1 1 0 8 0 amappl10 152 68 0 60 2 1 1 1 0 8 0 amappl9 144 985 0 984 1 0 1 1 0 8 0 amappl8 136 320 0 251 4 1 3 3 0 8 0 amappl7 128 223 0 199 2 0 2 2 0 8 0 amappl6 120 345 0 334 2 1 1 2 0 8 0 amappl5 112 344 0 336 1 0 1 1 0 8 0 amappl4 104 865 0 840 2 1 1 2 0 8 0 amappl3 96 23923 0 23880 2 0 2 2 0 8 0 amappl2 88 9498 0 9430 3 1 2 3 0 8 0 amappl1 80 192781 0 192126 42 25 17 26 0 8 0 amappl 88 53791 0 53630 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 135 0 5 3 0 3 3 0 8 0 uaddrrnd 24 8590 0 8567 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8590 0 8567 1 0 1 1 0 8 0 vmmpekpl 168 68003 0 67949 3 0 3 3 0 8 0 vmmpepl 168 780925 0 778489 467 333 134 152 0 357 9 vmsppl 344 8589 0 8567 3 0 3 3 0 8 0 rwobjpl 24 200808 0 193153 50 3 47 48 0 8 0 pdppl 4096 17186 0 17134 1225 1163 62 68 0 8 10 pvpl 32 3228518 0 3208650 487 294 193 299 0 265 3 pmappl 216 8589 0 8567 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 3250 0 2470 25 0 25 25 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(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff8275fee9,3b2,ffffffff827780fb) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff80002e8931b0,4,ffff80002e893278,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff8000006cd100,840100,ffff8000006cd158,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800000e39000,ffff8000006cd100,ffff80002e8934e0,1) at in_ifinit+0x35d in_insert_prefix sys/netinet/in.c:796 [inline] in_ifinit(ffff800000e39000,ffff8000006cd100,ffff80002e8934e0,1) at in_ifinit+0x35d sys/netinet/in.c:729 in_ioctl_change_ifaddr(8040691a,ffff80002e8934d0,ffff800000e39000,1) at in_ioctl_change_ifaddr+0x65e sys/netinet/in.c:526 ifioctl(fffffd807c2a4950,8040691a,ffff80002e8934d0,ffff80002e88d0f0) at ifioctl+0x1152 pru_control sys/sys/protosw.h:365 [inline] ifioctl(fffffd807c2a4950,8040691a,ffff80002e8934d0,ffff80002e88d0f0) at ifioctl+0x1152 sys/net/if.c:2345 sys_ioctl(ffff80002e88d0f0,ffff80002e8935e8,ffff80002e893630) at sys_ioctl+0x49e syscall(ffff80002e8936b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x86dd7767300, 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(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff8275fee9,3b2,ffffffff827780fb) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff80002e8931b0,4,ffff80002e893278,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff8000006cd100,840100,ffff8000006cd158,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800000e39000,ffff8000006cd100,ffff80002e8934e0,1) at in_ifinit+0x35d in_insert_prefix sys/netinet/in.c:796 [inline] in_ifinit(ffff800000e39000,ffff8000006cd100,ffff80002e8934e0,1) at in_ifinit+0x35d sys/netinet/in.c:729 in_ioctl_change_ifaddr(8040691a,ffff80002e8934d0,ffff800000e39000,1) at in_ioctl_change_ifaddr+0x65e sys/netinet/in.c:526 ifioctl(fffffd807c2a4950,8040691a,ffff80002e8934d0,ffff80002e88d0f0) at ifioctl+0x1152 pru_control sys/sys/protosw.h:365 [inline] ifioctl(fffffd807c2a4950,8040691a,ffff80002e8934d0,ffff80002e88d0f0) at ifioctl+0x1152 sys/net/if.c:2345 sys_ioctl(ffff80002e88d0f0,ffff80002e8935e8,ffff80002e893630) at sys_ioctl+0x49e syscall(ffff80002e8936b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x86dd7767300, count: -11