panic: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 1078 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *381639 76489 0 0x8000000 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82928b25) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828e24e4,ffffffff8288e184,436,ffffffff82851fe9) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff800030f86e38,4,ffff800030f86f08,0) at rtrequest+0xb49 sys/net/route.c:1078 rt_ifa_add(ffff800000e7bc00,840100,ffff800000e7bc58,0) at rt_ifa_add+0x2b3 sys/net/route.c:1273 in_ifinit(ffff800000dd8800,ffff800000e7bc00,ffff800030f87180,1) at in_ifinit+0x368 in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800000dd8800,ffff800000e7bc00,ffff800030f87180,1) at in_ifinit+0x368 sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff800030f87170,ffff800000dd8800) at in_ioctl_change_ifaddr+0x67a sys/netinet/in.c:504 ifioctl(fffffd805cfd0600,8040691a,ffff800030f87170,ffff80002a6dc028) at ifioctl+0x104c pru_control sys/sys/protosw.h:377 [inline] ifioctl(fffffd805cfd0600,8040691a,ffff800030f87170,ffff80002a6dc028) at ifioctl+0x104c sys/net/if.c:2449 sys_ioctl(ffff80002a6dc028,ffff800030f87350,ffff800030f872a0) at sys_ioctl+0x4a5 syscall(ffff800030f87350) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd7a78f7bd90, 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 1078 ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82928b25) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828e24e4,ffffffff8288e184,436,ffffffff82851fe9) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff800030f86e38,4,ffff800030f86f08,0) at rtrequest+0xb49 sys/net/route.c:1078 rt_ifa_add(ffff800000e7bc00,840100,ffff800000e7bc58,0) at rt_ifa_add+0x2b3 sys/net/route.c:1273 in_ifinit(ffff800000dd8800,ffff800000e7bc00,ffff800030f87180,1) at in_ifinit+0x368 in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800000dd8800,ffff800000e7bc00,ffff800030f87180,1) at in_ifinit+0x368 sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff800030f87170,ffff800000dd8800) at in_ioctl_change_ifaddr+0x67a sys/netinet/in.c:504 ifioctl(fffffd805cfd0600,8040691a,ffff800030f87170,ffff80002a6dc028) at ifioctl+0x104c pru_control sys/sys/protosw.h:377 [inline] ifioctl(fffffd805cfd0600,8040691a,ffff800030f87170,ffff80002a6dc028) at ifioctl+0x104c sys/net/if.c:2449 sys_ioctl(ffff80002a6dc028,ffff800030f87350,ffff800030f872a0) at sys_ioctl+0x4a5 syscall(ffff800030f87350) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd7a78f7bd90, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800030f86c60 rbx 0xffff80000002e460 rdx 0xffff800000de0c80 rcx 0 rax 0xffff80002a6dc028 r8 0 r9 0x8080808080808080 r10 0xd3be904f8f8aa899 r11 0xdffeac87bd307856 r12 0 r13 0x10000 __ALIGN_SIZE+0xf000 r14 0 r15 0x1 rip 0xffffffff824cc86c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800030f86c50 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) tid=381639 pid=76489 tcnt=2 stat=onproc flags process=8000000 proc=4000000 runpri=32, usrpri=72, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a6dccf8,0xffffffff82dafbb0 process=0xffff8000343bf258 user=0xffff800030f82000, vmspace=0xfffffd80074a2d70 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 76489 519743 57870 0 2 0x8000000 syz-executor.1 *76489 381639 57870 0 7 0xc000000 syz-executor.1 20658 31743 92297 0 2 0x8000000 syz-executor.4 20658 452138 92297 0 3 0xc000080 fsleep syz-executor.4 28718 340890 51576 0 2 0x8000482 syz-executor.0 74855 273940 51490 0 3 0x8000080 nanoslp syz-executor.2 74855 132193 51490 0 3 0xc000080 kqread syz-executor.2 74855 69569 51490 0 3 0xc000080 fsleep syz-executor.2 70382 470479 0 0 3 0x14280 nfsidl nfsio 79885 167421 0 0 3 0x14280 nfsidl nfsio 31498 403027 0 0 3 0x14280 nfsidl nfsio 60674 517262 0 0 3 0x14280 nfsidl nfsio 65127 152188 0 0 3 0x14280 nfsidl nfsio 28587 478849 0 0 3 0x14280 nfsidl nfsio 54699 518693 0 0 3 0x14280 nfsidl nfsio 20038 24910 0 0 3 0x14280 nfsidl nfsio 11527 441289 0 0 3 0x14280 nfsidl nfsio 19001 305213 0 0 3 0x14280 nfsidl nfsio 53038 307085 0 0 3 0x14280 nfsidl nfsio 12062 18360 0 0 3 0x14280 nfsidl nfsio 66468 21814 0 0 3 0x14280 nfsidl nfsio 69763 158981 0 0 3 0x14280 nfsidl nfsio 76822 522904 0 0 3 0x14280 nfsidl nfsio 98527 110674 0 0 3 0x14280 nfsidl nfsio 68611 95417 0 0 3 0x14280 nfsidl nfsio 76675 320823 0 0 3 0x14280 nfsidl nfsio 45862 98389 0 0 3 0x14280 nfsidl nfsio 33984 466370 0 0 3 0x14280 nfsidl nfsio 92297 230644 51576 0 3 0x8000082 nanoslp syz-executor.4 57870 377019 51576 0 2 0x8000482 syz-executor.1 14518 83628 51576 0 2 0x8000002 syz-executor.3 26738 143635 51576 0 3 0x8000082 nanoslp syz-executor.7 29883 360317 51576 0 2 0x8000002 syz-executor.5 67974 325281 0 0 3 0x14200 bored sosplice 51490 97087 51576 0 3 0x8000082 nanoslp syz-executor.2 51576 399597 81906 0 3 0x1a000082 wait syz-fuzzer 51576 295762 81906 0 2 0x1e000482 syz-fuzzer 51576 240724 81906 0 3 0x1e000082 wait syz-fuzzer 51576 347712 81906 0 3 0x1e000082 wait syz-fuzzer 51576 439354 81906 0 3 0x1e000082 thrsleep syz-fuzzer 51576 16206 81906 0 3 0x1e000082 thrsleep syz-fuzzer 51576 72370 81906 0 3 0x1e000082 wait syz-fuzzer 51576 335077 81906 0 3 0x1e000082 wait syz-fuzzer 51576 249822 81906 0 3 0x1e000082 wait syz-fuzzer 51576 285460 81906 0 3 0x1e000082 thrsleep syz-fuzzer 51576 15632 81906 0 3 0x1e000082 wait syz-fuzzer 51576 482004 81906 0 3 0x1e000082 kqread syz-fuzzer 51576 112252 81906 0 3 0x1e000082 wait syz-fuzzer 51576 487755 81906 0 3 0x1e000082 thrsleep syz-fuzzer 81906 222242 76138 0 3 0x810008a sigsusp ksh 76138 425495 97200 0 3 0x1800009a kqread sshd 24012 72369 1 0 3 0x18100083 ttyin getty 97200 107299 1 0 3 0x18000088 kqread sshd 30200 363595 12583 73 3 0x19100090 kqread syslogd 12583 228411 1 0 3 0x18100082 sbwait syslogd 33337 522547 1 0 3 0x18100080 kqread resolvd 61883 260402 53762 77 3 0x18100092 kqread dhcpleased 65479 423140 53762 77 3 0x18100092 kqread dhcpleased 53762 488959 1 0 3 0x18000080 kqread dhcpleased 34145 354731 0 0 3 0x14200 bored smr 67591 55712 0 0 2 0x14200 zerothread 46856 94285 0 0 3 0x14200 aiodoned aiodoned 4600 234432 0 0 3 0x14200 syncer update 29199 186186 0 0 3 0x14200 cleaner cleaner 42152 222191 0 0 3 0x14200 reaper reaper 17202 222786 0 0 3 0x14200 pgdaemon pagedaemon 89652 430952 0 0 3 0x14200 bored viomb 58774 161878 0 0 3 0x40014200 acpi0 acpi0 68871 137827 0 0 3 0x14200 bored softnet3 96884 259301 0 0 3 0x14200 bored softnet2 57844 390106 0 0 3 0x14200 bored softnet1 93889 11970 0 0 3 0x14200 bored softnet0 47862 339705 0 0 3 0x14200 bored systqmp 43482 465806 0 0 3 0x14200 bored systq 11935 65678 0 0 2 0x40014200 softclock 48857 220236 0 0 3 0x40014200 idle0 1 57561 0 0 3 0x8000082 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 10165 6407K 7051K 166960K 12723 0 pcb 16 10K 10K 166960K 65 0 rtable 201 6K 7K 166960K 974 0 pf 26 8K 9K 166960K 78 0 ifaddr 37 10K 12K 166960K 124 0 ifgroup 53 2K 2K 166960K 157 0 sysctl 3 0K 0K 166960K 3 0 counters 28 17K 17K 166960K 51 0 ioctlops 0 0K 2K 166960K 83 0 iov 0 0K 28K 166960K 50 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1373 86K 87K 166960K 2066 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 17 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 82 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 13 45K 73K 166960K 1104 0 sigio 0 0K 0K 166960K 33 0 proc 58 59K 83K 166960K 936 0 subproc 104 6K 6K 166960K 275 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 111 0 in_multi 77 5K 7K 166960K 260 0 ether_multi 2 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 0 0K 1K 166960K 552 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 271 95K 104K 166960K 10897 0 UVM aobj 30 2K 4K 166960K 34 0 pinsyscall 33 66K 100K 166960K 2572 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 54 0 NDP 11 0K 2K 166960K 74 0 temp 74 6804K 6868K 166960K 38756 0 kqueue 15 20K 24K 166960K 91 0 SYN cache 2 104K 112K 166960K 3 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 250 0 247 3 0 3 3 0 8 2 rtentry 112 287 0 195 4 0 4 4 0 8 1 unpcb 144 538 0 525 2 0 2 2 0 8 1 syncache 336 14 0 14 1 0 1 1 0 8 1 tcpqe 32 72 0 72 1 0 1 1 0 8 1 tcpcb 808 211 0 198 2 0 2 2 0 8 0 arp 88 54 0 39 1 0 1 1 0 8 0 ipq 40 1 0 1 1 0 1 1 0 8 1 ipqe 40 1 0 1 1 0 1 1 0 8 1 inpcb 360 780 0 763 3 0 3 3 0 8 1 nd6 104 64 0 46 1 0 1 1 0 8 0 pkpcb 40 5 0 5 1 0 1 1 0 8 1 kcovpl 48 21 0 13 1 0 1 1 0 8 0 ppxss 1072 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1096 0 714 30 4 26 30 0 8 2 art_table 32 1097 0 714 4 0 4 4 0 8 0 art_node 16 274 0 191 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 5 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 75 0 65 1 0 1 1 0 8 0 shmpl 112 31 0 4 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2796 0 1279 96 0 96 96 0 8 0 ffsino 240 2796 0 1279 90 0 90 90 0 8 0 nchpl 144 4230 0 2502 67 0 67 67 0 8 1 uvmvnodes 80 3470 0 0 71 0 71 71 0 8 0 vnodes 216 3470 0 0 193 0 193 193 0 8 0 namei 1024 14425 0 14424 2 0 2 2 0 8 1 vcpupl 2048 3 0 0 1 0 1 1 0 8 0 vmpool 664 8 0 5 1 0 1 1 0 8 0 kstatmem 264 64 0 46 2 0 2 2 0 8 0 scxspl 216 14483 0 14483 8 0 8 8 1 8 8 plimitpl 152 122 0 106 1 0 1 1 0 8 0 sigapl 424 1416 0 1353 8 0 8 8 0 8 0 futexpl 64 11575 0 11573 1 0 1 1 0 8 0 knotepl 120 10557 0 10475 10 0 10 10 0 8 6 kqueuepl 184 149 0 139 1 0 1 1 0 8 0 pipepl 288 246 0 219 3 0 3 3 0 8 0 fdescpl 432 1359 0 1335 4 0 4 4 0 8 0 filepl 120 6253 0 6015 10 0 10 10 0 8 1 lockfpl 104 293 0 291 1 0 1 1 0 8 0 lockfspl 48 136 0 134 1 0 1 1 0 8 0 sessionpl 144 36 0 20 1 0 1 1 0 8 0 pgrppl 48 46 0 30 1 0 1 1 0 8 0 ucredpl 104 660 0 649 1 0 1 1 0 8 0 zombiepl 144 1356 0 1353 1 0 1 1 0 8 0 processpl 1072 1416 0 1353 5 0 5 5 0 8 0 procpl 656 2309 0 2229 9 0 9 9 0 8 1 sosppl 168 20 0 20 1 0 1 1 0 8 1 sockpl 488 1579 0 1546 12 0 12 12 0 8 6 mcl64k 65536 30 0 30 1 0 1 1 0 8 1 mcl16k 16384 19 0 19 1 0 1 1 0 8 1 mcl12k 12288 60 0 60 1 0 1 1 0 8 1 mcl9k 9216 9 0 9 1 0 1 1 0 8 1 mcl8k 8192 57 0 57 1 0 1 1 0 8 1 mcl4k 4096 162 0 162 1 0 1 1 0 8 1 mcl2k2 2112 6 0 6 1 0 1 1 0 8 1 mcl2k 2048 22003 0 21960 29 16 13 29 0 8 7 mtagpl 96 131 0 100 2 0 2 2 0 8 1 mbufpl 256 57892 0 57730 555 531 24 551 0 8 8 bufpl 280 6091 0 187 422 0 422 422 0 8 0 anonpl 24 272412 0 267005 58 0 58 58 0 188 20 amapchunkpl 152 35649 0 35055 43 0 43 43 0 158 15 amappl16 200 6775 0 6686 22 8 14 18 0 8 8 amappl15 192 24 0 23 1 0 1 1 0 8 0 amappl14 184 216 0 201 2 0 2 2 0 8 1 amappl13 176 15 0 15 1 0 1 1 0 8 1 amappl12 168 2178 0 2152 2 0 2 2 0 8 0 amappl11 160 51 0 41 1 0 1 1 0 8 0 amappl10 152 102 0 89 1 0 1 1 0 8 0 amappl9 144 160 0 159 1 0 1 1 0 8 0 amappl8 136 186 0 137 2 0 2 2 0 8 0 amappl7 128 63 0 50 1 0 1 1 0 8 0 amappl6 120 529 0 514 2 0 2 2 0 8 1 amappl5 112 281 0 269 1 0 1 1 0 8 0 amappl4 104 620 0 588 2 0 2 2 0 8 1 amappl3 96 7282 0 7215 3 0 3 3 0 8 0 amappl2 88 1871 0 1801 3 0 3 3 0 8 1 amappl1 80 13728 0 13246 22 3 19 22 0 8 8 amappl 88 10202 0 10032 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 33 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1367 0 1340 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1367 0 1340 1 0 1 1 0 8 0 vmmpekpl 168 13641 0 13572 4 0 4 4 0 8 0 vmmpepl 168 103295 0 101618 110 0 110 110 0 357 20 vmsppl 344 1366 0 1340 3 0 3 3 0 8 0 rwobjpl 24 34666 0 30145 28 0 28 28 0 8 0 pdppl 4096 2740 0 2683 133 68 65 68 0 8 8 pvpl 32 669321 0 658499 358 22 336 358 0 265 238 pmappl 216 1366 0 1340 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 953 0 619 25 4 21 25 0 8 8 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82928b25) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828e24e4,ffffffff8288e184,436,ffffffff82851fe9) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff800030f86e38,4,ffff800030f86f08,0) at rtrequest+0xb49 sys/net/route.c:1078 rt_ifa_add(ffff800000e7bc00,840100,ffff800000e7bc58,0) at rt_ifa_add+0x2b3 sys/net/route.c:1273 in_ifinit(ffff800000dd8800,ffff800000e7bc00,ffff800030f87180,1) at in_ifinit+0x368 in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800000dd8800,ffff800000e7bc00,ffff800030f87180,1) at in_ifinit+0x368 sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff800030f87170,ffff800000dd8800) at in_ioctl_change_ifaddr+0x67a sys/netinet/in.c:504 ifioctl(fffffd805cfd0600,8040691a,ffff800030f87170,ffff80002a6dc028) at ifioctl+0x104c pru_control sys/sys/protosw.h:377 [inline] ifioctl(fffffd805cfd0600,8040691a,ffff800030f87170,ffff80002a6dc028) at ifioctl+0x104c sys/net/if.c:2449 sys_ioctl(ffff80002a6dc028,ffff800030f87350,ffff800030f872a0) at sys_ioctl+0x4a5 syscall(ffff800030f87350) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd7a78f7bd90, count: -11 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82928b25) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828e24e4,ffffffff8288e184,436,ffffffff82851fe9) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff800030f86e38,4,ffff800030f86f08,0) at rtrequest+0xb49 sys/net/route.c:1078 rt_ifa_add(ffff800000e7bc00,840100,ffff800000e7bc58,0) at rt_ifa_add+0x2b3 sys/net/route.c:1273 in_ifinit(ffff800000dd8800,ffff800000e7bc00,ffff800030f87180,1) at in_ifinit+0x368 in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800000dd8800,ffff800000e7bc00,ffff800030f87180,1) at in_ifinit+0x368 sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff800030f87170,ffff800000dd8800) at in_ioctl_change_ifaddr+0x67a sys/netinet/in.c:504 ifioctl(fffffd805cfd0600,8040691a,ffff800030f87170,ffff80002a6dc028) at ifioctl+0x104c pru_control sys/sys/protosw.h:377 [inline] ifioctl(fffffd805cfd0600,8040691a,ffff800030f87170,ffff80002a6dc028) at ifioctl+0x104c sys/net/if.c:2449 sys_ioctl(ffff80002a6dc028,ffff800030f87350,ffff800030f872a0) at sys_ioctl+0x4a5 syscall(ffff800030f87350) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd7a78f7bd90, count: -11