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 *200760 83841 0 0x8000000 0x4000000 0 syz-executor.4 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82922f19) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828dbd6c,ffffffff8288d235,436,ffffffff82851457) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000378615f8,4,ffff8000378616c8,0) at rtrequest+0xb49 sys/net/route.c:1078 rt_ifa_add(ffff800000e66e00,840100,ffff800000e66e58,0) at rt_ifa_add+0x2b3 sys/net/route.c:1273 in_ifinit(ffff800000ddd000,ffff800000e66e00,ffff800000e66e58,1) at in_ifinit+0x368 in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800000ddd000,ffff800000e66e00,ffff800000e66e58,1) at in_ifinit+0x368 sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff800037861930,ffff800000ddd000) at in_ioctl_change_ifaddr+0x67a sys/netinet/in.c:504 ifioctl(fffffd8068912020,8040691a,ffff800037861930,ffff80002a6eb210) at ifioctl+0x104c pru_control sys/sys/protosw.h:378 [inline] ifioctl(fffffd8068912020,8040691a,ffff800037861930,ffff80002a6eb210) at ifioctl+0x104c sys/net/if.c:2449 sys_ioctl(ffff80002a6eb210,ffff800037861b10,ffff800037861a60) at sys_ioctl+0x4a5 syscall(ffff800037861b10) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa4cdfeef1a0, 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(ffffffff82922f19) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828dbd6c,ffffffff8288d235,436,ffffffff82851457) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000378615f8,4,ffff8000378616c8,0) at rtrequest+0xb49 sys/net/route.c:1078 rt_ifa_add(ffff800000e66e00,840100,ffff800000e66e58,0) at rt_ifa_add+0x2b3 sys/net/route.c:1273 in_ifinit(ffff800000ddd000,ffff800000e66e00,ffff800000e66e58,1) at in_ifinit+0x368 in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800000ddd000,ffff800000e66e00,ffff800000e66e58,1) at in_ifinit+0x368 sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff800037861930,ffff800000ddd000) at in_ioctl_change_ifaddr+0x67a sys/netinet/in.c:504 ifioctl(fffffd8068912020,8040691a,ffff800037861930,ffff80002a6eb210) at ifioctl+0x104c pru_control sys/sys/protosw.h:378 [inline] ifioctl(fffffd8068912020,8040691a,ffff800037861930,ffff80002a6eb210) at ifioctl+0x104c sys/net/if.c:2449 sys_ioctl(ffff80002a6eb210,ffff800037861b10,ffff800037861a60) at sys_ioctl+0x4a5 syscall(ffff800037861b10) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa4cdfeef1a0, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800037861420 rbx 0xffff8000006bacf0 rdx 0xffff800000dc9f00 rcx 0 rax 0xffff80002a6eb210 r8 0 r9 0x8080808080808080 r10 0x578b5fc636f8c76 r11 0x2702e217ed19098 r12 0 r13 0x10000 __ALIGN_SIZE+0xf000 r14 0 r15 0x1 rip 0xffffffff8179e97c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800037861410 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.4) tid=200760 pid=83841 tcnt=2 stat=onproc flags process=8000000 proc=4000000 runpri=32, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a67d9d8,0xffff80002a679748 process=0xffff800030381d68 user=0xffff80003785c000, vmspace=0xfffffd807b2cb178 estcpu=34, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 83841 233289 44504 0 2 0x8000000 syz-executor.4 *83841 200760 44504 0 7 0xc000000 syz-executor.4 36034 247122 72035 0 2 0x8000000 syz-executor.2 36034 234108 72035 0 3 0xc000080 ttyout syz-executor.2 36034 161192 72035 0 3 0xc000080 fsleep syz-executor.2 66950 502667 18487 0 2 0x8000000 syz-executor.5 66950 85498 18487 0 3 0xc000080 wsevent_read syz-executor.5 66950 29848 18487 0 3 0xc000080 fsleep syz-executor.5 35723 428005 63944 0 2 0x8000000 syz-executor.7 35723 474645 63944 0 3 0xc000080 fsleep syz-executor.7 44504 394576 73433 0 2 0x8000482 syz-executor.4 63944 160085 73433 0 2 0x8000482 syz-executor.7 6244 254142 1 0 3 0x18100083 ttyin getty 18487 389156 73433 0 2 0x8000482 syz-executor.5 72035 68826 73433 0 2 0x8000482 syz-executor.2 45503 452575 73433 0 2 0x8000482 syz-executor.0 63828 29272 73433 0 2 0x8000002 syz-executor.3 5445 366646 73433 0 2 0x8000482 syz-executor.6 26994 219234 96612 0 3 0x18100082 netio arp 96612 460733 1 0 3 0x810008a sigsusp sh 16180 418151 0 0 3 0x14200 bored sosplice 73433 299106 2319 0 3 0x1a000082 thrsleep syz-fuzzer 73433 52077 2319 0 2 0x1e000482 syz-fuzzer 73433 272220 2319 0 3 0x1e000082 wait syz-fuzzer 73433 235386 2319 0 3 0x1e000082 thrsleep syz-fuzzer 73433 326005 2319 0 3 0x1e000082 wait syz-fuzzer 73433 432642 2319 0 3 0x1e000082 wait syz-fuzzer 73433 51089 2319 0 3 0x1e000082 wait syz-fuzzer 73433 54485 2319 0 3 0x1e000082 thrsleep syz-fuzzer 73433 458216 2319 0 3 0x1e000082 wait syz-fuzzer 73433 100541 2319 0 3 0x1e000082 thrsleep syz-fuzzer 73433 233519 2319 0 3 0x1e000082 wait syz-fuzzer 73433 250672 2319 0 3 0x1e000082 wait syz-fuzzer 73433 463126 2319 0 3 0x1e000082 wait syz-fuzzer 73433 56956 2319 0 3 0x1e000082 kqread syz-fuzzer 73433 10010 2319 0 3 0x1e000082 thrsleep syz-fuzzer 2319 388502 32789 0 3 0x810008a sigsusp ksh 32789 489311 27958 0 3 0x1800009a kqread sshd 27958 9944 1 0 3 0x18000088 kqread sshd 98965 312342 5798 73 3 0x19100090 kqread syslogd 5798 187258 1 0 3 0x18100082 sbwait syslogd 48608 333995 1 0 3 0x18100080 kqread resolvd 6327 278269 95451 77 3 0x18100092 kqread dhcpleased 78915 247677 95451 77 3 0x18100092 kqread dhcpleased 95451 288404 1 0 3 0x18000080 kqread dhcpleased 43864 55811 0 0 3 0x14200 bored smr 86731 140491 0 0 2 0x14200 zerothread 10087 112107 0 0 3 0x14200 aiodoned aiodoned 69723 296533 0 0 3 0x14200 syncer update 49634 216833 0 0 3 0x14200 cleaner cleaner 78632 293216 0 0 3 0x14200 reaper reaper 46247 391878 0 0 3 0x14200 pgdaemon pagedaemon 40911 183650 0 0 3 0x14200 bored viomb 65321 236410 0 0 3 0x40014200 acpi0 acpi0 48351 479935 0 0 3 0x14200 bored softnet3 76256 384692 0 0 3 0x14200 bored softnet2 1540 179883 0 0 3 0x14200 bored softnet1 88906 521569 0 0 3 0x14200 bored softnet0 48391 197086 0 0 3 0x14200 bored systqmp 36827 48877 0 0 3 0x14200 bored systq 91148 365328 0 0 2 0x40014200 softclock 83408 9355 0 0 3 0x40014200 idle0 1 459337 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 10166 6411K 6784K 166960K 11598 0 pcb 18 12K 12K 166960K 107 0 rtable 197 10K 11K 166960K 1134 0 pf 29 8K 9K 166960K 98 0 ifaddr 38 10K 11K 166960K 150 0 ifgroup 50 2K 2K 166960K 179 0 sysctl 3 0K 0K 166960K 3 0 counters 30 17K 17K 166960K 62 0 ioctlops 0 0K 2K 166960K 137 0 iov 0 0K 16K 166960K 47 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1371 86K 86K 166960K 2012 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 22 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 77 0 dirhash 12 2K 2K 166960K 39 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 16 57K 93K 166960K 1220 0 sigio 0 0K 0K 166960K 11 0 proc 58 59K 116K 166960K 1194 0 subproc 117 7K 7K 166960K 416 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 90 0 in_multi 82 6K 7K 166960K 353 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 735 0 pfkey data 0 0K 0K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 285 99K 103K 166960K 11643 0 UVM aobj 41 6K 6K 166960K 45 0 pinsyscall 37 74K 102K 166960K 2942 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 46 0 NDP 11 0K 2K 166960K 101 0 temp 76 6808K 6930K 166960K 25927 0 kqueue 12 18K 28K 166960K 138 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 156 0 151 1 0 1 1 0 8 0 rtentry 112 387 0 300 4 0 4 4 0 8 1 unpcb 144 698 0 685 5 1 4 4 0 8 3 syncache 336 4 0 4 1 1 0 1 0 8 0 sackhl 24 2 0 2 1 0 1 1 0 8 1 tcpqe 32 60 0 60 2 1 1 1 0 8 1 tcpcb 808 425 0 420 11 4 7 7 0 8 6 arp 88 71 0 58 1 0 1 1 0 8 0 ipq 40 3 0 2 1 0 1 1 0 8 0 ipqe 40 3 0 2 1 0 1 1 0 8 0 inpcb 352 1322 0 1310 18 9 9 14 0 8 7 nd6 104 97 0 77 1 0 1 1 0 8 0 pkpcb 40 12 0 12 2 1 1 1 0 8 1 kcovpl 48 32 0 23 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 1462 0 1067 37 8 29 30 0 8 1 art_table 32 1463 0 1067 4 0 4 4 0 8 0 art_node 16 381 0 304 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 16 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 74 0 64 1 0 1 1 0 8 0 shmpl 112 42 0 4 2 0 2 2 0 8 0 dirhash 1024 35 0 18 3 0 3 3 0 8 0 dino2pl 256 3020 0 1512 96 0 96 96 0 8 0 ffsino 240 3020 0 1512 90 0 90 90 0 8 0 nchpl 144 4874 0 4303 66 41 25 66 0 8 1 uvmvnodes 80 3540 0 0 73 0 73 73 0 8 0 vnodes 216 3540 0 0 197 0 197 197 0 8 0 namei 1024 17796 0 17795 4 2 2 2 0 8 1 vcpupl 3904 4 0 0 1 0 1 1 0 8 0 vmpool 664 8 0 4 2 1 1 1 0 8 0 kstatmem 264 86 0 64 2 0 2 2 0 8 0 scsiplug 72 2 0 2 2 1 1 1 0 8 1 scxspl 216 21947 0 21947 9 7 2 8 1 8 2 plimitpl 152 168 0 150 1 0 1 1 0 8 0 sigapl 424 1474 0 1428 7 0 7 7 0 8 0 futexpl 64 15991 0 15988 1 0 1 1 0 8 0 knotepl 120 7942 0 7862 23 11 12 16 0 8 8 kqueuepl 184 261 0 253 1 0 1 1 0 8 0 pipepl 288 298 0 268 3 0 3 3 0 8 0 fdescpl 432 1456 0 1429 5 0 5 5 0 8 1 filepl 120 8438 0 8174 14 1 13 13 0 8 3 lockfpl 104 296 0 292 1 0 1 1 0 8 0 lockfspl 48 120 0 117 1 0 1 1 0 8 0 sessionpl 144 48 0 31 1 0 1 1 0 8 0 pgrppl 48 60 0 43 1 0 1 1 0 8 0 ucredpl 104 891 0 880 1 0 1 1 0 8 0 zombiepl 144 1431 0 1428 2 1 1 1 0 8 0 processpl 1072 1474 0 1428 4 0 4 4 0 8 0 procpl 656 2471 0 2405 8 1 7 7 0 8 0 sosppl 168 7 0 7 2 1 1 1 0 8 1 sockpl 504 2194 0 2164 26 13 13 21 0 8 9 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 90 0 90 2 1 1 1 0 8 1 mcl4k 4096 8 0 8 1 1 0 1 0 8 0 mcl2k 2048 21971 0 21866 46 27 19 40 0 8 1 mtagpl 96 8 0 8 1 0 1 1 0 8 1 mbufpl 256 48596 0 48405 113 89 24 63 0 8 8 bufpl 280 7835 0 1466 456 0 456 456 0 8 0 anonpl 24 333292 0 327442 120 28 92 92 0 188 46 amapchunkpl 152 38455 0 37809 61 12 49 49 0 158 20 amappl16 200 8505 0 8394 44 29 15 19 0 8 8 amappl15 192 11 0 11 1 1 0 1 0 8 0 amappl14 184 233 0 219 2 1 1 2 0 8 0 amappl13 176 10 0 9 1 0 1 1 0 8 0 amappl12 168 2404 0 2375 2 0 2 2 0 8 0 amappl11 160 50 0 40 1 0 1 1 0 8 0 amappl10 152 112 0 102 1 0 1 1 0 8 0 amappl9 144 201 0 201 2 1 1 1 0 8 1 amappl8 136 169 0 138 2 0 2 2 0 8 0 amappl7 128 80 0 65 1 0 1 1 0 8 0 amappl6 120 661 0 645 2 1 1 2 0 8 0 amappl5 112 273 0 261 1 0 1 1 0 8 0 amappl4 104 655 0 623 3 1 2 2 0 8 1 amappl3 96 7489 0 7416 3 0 3 3 0 8 0 amappl2 88 1978 0 1904 4 2 2 4 0 8 0 amappl1 80 14234 0 13724 24 10 14 22 0 8 0 amappl 88 10901 0 10715 6 0 6 6 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 44 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1464 0 1433 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1464 0 1433 1 0 1 1 0 8 0 vmmpekpl 168 15125 0 15070 3 0 3 3 0 8 0 vmmpepl 168 114159 0 112361 122 26 96 110 0 357 9 vmsppl 344 1463 0 1433 5 1 4 4 0 8 0 rwobjpl 24 37882 0 33219 29 0 29 29 0 8 0 pdppl 4096 2934 0 2870 171 101 70 78 0 8 6 pvpl 32 808791 0 796910 490 253 237 351 0 265 124 pmappl 216 1463 0 1433 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 609 0 249 12 0 12 12 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82922f19) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828dbd6c,ffffffff8288d235,436,ffffffff82851457) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000378615f8,4,ffff8000378616c8,0) at rtrequest+0xb49 sys/net/route.c:1078 rt_ifa_add(ffff800000e66e00,840100,ffff800000e66e58,0) at rt_ifa_add+0x2b3 sys/net/route.c:1273 in_ifinit(ffff800000ddd000,ffff800000e66e00,ffff800000e66e58,1) at in_ifinit+0x368 in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800000ddd000,ffff800000e66e00,ffff800000e66e58,1) at in_ifinit+0x368 sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff800037861930,ffff800000ddd000) at in_ioctl_change_ifaddr+0x67a sys/netinet/in.c:504 ifioctl(fffffd8068912020,8040691a,ffff800037861930,ffff80002a6eb210) at ifioctl+0x104c pru_control sys/sys/protosw.h:378 [inline] ifioctl(fffffd8068912020,8040691a,ffff800037861930,ffff80002a6eb210) at ifioctl+0x104c sys/net/if.c:2449 sys_ioctl(ffff80002a6eb210,ffff800037861b10,ffff800037861a60) at sys_ioctl+0x4a5 syscall(ffff800037861b10) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa4cdfeef1a0, 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(ffffffff82922f19) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828dbd6c,ffffffff8288d235,436,ffffffff82851457) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000378615f8,4,ffff8000378616c8,0) at rtrequest+0xb49 sys/net/route.c:1078 rt_ifa_add(ffff800000e66e00,840100,ffff800000e66e58,0) at rt_ifa_add+0x2b3 sys/net/route.c:1273 in_ifinit(ffff800000ddd000,ffff800000e66e00,ffff800000e66e58,1) at in_ifinit+0x368 in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800000ddd000,ffff800000e66e00,ffff800000e66e58,1) at in_ifinit+0x368 sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff800037861930,ffff800000ddd000) at in_ioctl_change_ifaddr+0x67a sys/netinet/in.c:504 ifioctl(fffffd8068912020,8040691a,ffff800037861930,ffff80002a6eb210) at ifioctl+0x104c pru_control sys/sys/protosw.h:378 [inline] ifioctl(fffffd8068912020,8040691a,ffff800037861930,ffff80002a6eb210) at ifioctl+0x104c sys/net/if.c:2449 sys_ioctl(ffff80002a6eb210,ffff800037861b10,ffff800037861a60) at sys_ioctl+0x4a5 syscall(ffff800037861b10) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa4cdfeef1a0, count: -11