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 * 88177 14231 0 0 0x4000000 0 syz-executor.1 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(ffffffff821e101b,ffffffff821b1f23,3b7,ffffffff821c2709) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800015126c68,4,ffff800015126d38,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b0ab00,840100,ffff800000b0ab58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b41800,ffff800000b0ab00,ffff800015127040,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b41800,ffff800000b0ab00,ffff800015127040,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800015127030,ffff800000b41800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800015127030,ffff800000b41800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd802e9867f8,8040691a,ffff800015127030,ffff800014920290) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff800014920290,ffff800015127148,ffff800015127190) at sys_ioctl+0x5b9 syscall(ffff800015127210) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,335779a010) at Xsyscall+0x128 end of kernel end trace frame: 0x362a460dc0, 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(ffffffff821e101b,ffffffff821b1f23,3b7,ffffffff821c2709) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800015126c68,4,ffff800015126d38,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b0ab00,840100,ffff800000b0ab58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b41800,ffff800000b0ab00,ffff800015127040,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b41800,ffff800000b0ab00,ffff800015127040,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800015127030,ffff800000b41800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800015127030,ffff800000b41800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd802e9867f8,8040691a,ffff800015127030,ffff800014920290) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff800014920290,ffff800015127148,ffff800015127190) at sys_ioctl+0x5b9 syscall(ffff800015127210) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,335779a010) at Xsyscall+0x128 end of kernel end trace frame: 0x362a460dc0, count: -12 ddb> show registers rdi 0xffffffff81f849a7 db_enter+0x17 rsi 0x4038 __ALIGN_SIZE+0x3038 rbp 0xffff800015126a80 rbx 0xffff800015126b30 rdx 0x4039 __ALIGN_SIZE+0x3039 rcx 0xffff800016d76000 rax 0xffff800016d76000 r8 0xffff800015126a40 r9 0x1 r10 0xffff800000b289c0 r11 0x340e28d903d78b9c r12 0x3000000008 r13 0xffff800015126a90 r14 0x100 r15 0x1 rip 0xffffffff81f849a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015126a70 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=88177 stat=onproc flags process=0 proc=4000000 pri=75, usrpri=75, nice=20 forw=0xffffffffffffffff, list=0xffff800014921160,0xffffffff82553b30 process=0xffff8000ffff77b0 user=0xffff800015122000, vmspace=0xfffffd803f013dd0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 14231 196082 21340 0 2 0 syz-executor.1 *14231 88177 21340 0 7 0x4000000 syz-executor.1 58254 190131 65333 0 2 0 syz-executor.0 58254 78995 65333 0 3 0x4000080 fsleep syz-executor.0 21340 183923 22853 0 2 0x482 syz-executor.1 65333 207297 22853 0 3 0x82 nanosleep syz-executor.0 44720 28112 1 0 3 0x100083 ttyin getty 66937 138352 0 0 3 0x14200 acct acct 27612 89955 0 0 3 0x14200 bored sosplice 22853 319427 30505 0 3 0x82 thrsleep syz-fuzzer 22853 109674 30505 0 3 0x4000082 thrsleep syz-fuzzer 22853 337493 30505 0 3 0x4000082 thrsleep syz-fuzzer 22853 316981 30505 0 3 0x4000082 thrsleep syz-fuzzer 22853 490810 30505 0 3 0x4000082 kqread syz-fuzzer 22853 116190 30505 0 3 0x4000082 thrsleep syz-fuzzer 22853 401864 30505 0 3 0x4000082 thrsleep syz-fuzzer 22853 478876 30505 0 3 0x4000082 thrsleep syz-fuzzer 30505 204210 2725 0 3 0x10008a pause ksh 2725 54163 17725 0 3 0x92 select sshd 17725 5623 1 0 3 0x80 select sshd 17076 325259 64431 73 3 0x100090 kqread syslogd 64431 469340 1 0 3 0x100082 netio syslogd 40530 38627 1 77 3 0x100090 poll dhclient 31479 99072 1 0 3 0x80 poll dhclient 68650 216048 0 0 2 0x14200 zerothread 16215 21969 0 0 3 0x14200 aiodoned aiodoned 57818 111863 0 0 3 0x14200 syncer update 98765 330345 0 0 3 0x14200 cleaner cleaner 2093 318525 0 0 3 0x14200 reaper reaper 41603 402759 0 0 3 0x14200 pgdaemon pagedaemon 45401 251764 0 0 3 0x14200 bored crynlk 57520 280442 0 0 3 0x14200 bored crypto 39467 509 0 0 3 0x40014200 acpi0 acpi0 21288 161680 0 0 3 0x14200 bored softnet 14556 192483 0 0 3 0x14200 bored systqmp 92477 112281 0 0 3 0x14200 bored systq 72421 513385 0 0 3 0x40014200 bored softclock 68037 247175 0 0 3 0x40014200 idle0 47397 336933 0 0 3 0x14200 bored smr 1 513609 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 9576 6394K 8417K 78643K 29580 0 0 pcb 13 8K 8K 78643K 1097 0 0 rtable 110 12K 13K 78643K 1589 0 0 ifaddr 81 19K 21K 78643K 553 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 256 0 0 iov 0 0K 32K 78643K 428 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1236 78K 78K 78643K 7037 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 96 0 0 VM map 2 0K 0K 78643K 10 0 0 sem 12 0K 1K 78643K 1032 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 4404 0 0 sigio 0 0K 0K 78643K 40 0 0 proc 50 38K 63K 78643K 1377 0 0 subproc 32 2K 2K 78643K 272 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 490 0 0 in_multi 24 1K 2K 78643K 301 0 0 ether_multi 1 0K 0K 78643K 15 0 0 mrt 0 0K 0K 78643K 25 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 722 0 0 pfkey data 0 0K 4K 78643K 2 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 104 21K 30K 78643K 11282 0 0 UVM aobj 130 4K 4K 78643K 143 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 899 0 0 NDP 19 0K 0K 78643K 168 0 0 temp 219 3536K 4176K 78643K 77573 0 0 kqueue 0 0K 0K 78643K 40 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 35 0 29 1 0 1 1 0 8 0 rtpcb 80 300 0 298 1 0 1 1 0 8 0 rtentry 112 209 0 170 2 0 2 2 0 8 0 unpcb 120 1821 0 1806 1 0 1 1 0 8 0 syncache 264 17 0 17 8 8 0 1 0 8 0 sackhl 24 8 0 8 5 5 0 1 0 8 0 tcpqe 32 6951 0 6951 1 1 0 1 0 8 0 tcpcb 544 1648 0 1643 1 0 1 1 0 8 0 ipq 40 5 0 5 3 3 0 1 0 8 0 ipqe 40 14 0 14 3 3 0 1 0 8 0 inpcb 280 4261 0 4252 12 11 1 2 0 8 0 rttmr 72 5 0 5 5 5 0 1 0 8 0 nd6 48 33 0 31 1 0 1 1 0 8 0 pkpcb 40 16 0 16 7 7 0 1 0 8 0 ppxss 1128 81 0 81 15 14 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 969 0 783 20 5 15 16 0 8 1 art_table 32 970 0 783 2 0 2 2 0 8 0 art_node 16 199 0 164 1 0 1 1 0 8 0 sysvmsgpl 40 30 0 23 2 1 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 1025 0 1015 1 0 1 1 0 8 0 shmpl 112 141 0 13 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 8012 0 6618 46 0 46 46 0 8 0 ffsino 240 8012 0 6618 83 0 83 83 0 8 0 nchpl 144 14309 0 12685 61 0 61 61 0 8 0 uvmvnodes 72 6457 0 0 118 0 118 118 0 8 0 vnodes 208 6457 0 0 340 0 340 340 0 8 0 namei 1024 50516 0 50516 6 5 1 1 0 8 1 vmpool 520 8 0 8 3 3 0 1 0 8 0 scsiplug 64 7 0 7 6 6 0 1 0 8 0 scxspl 192 42378 0 42378 23 21 2 7 0 8 2 plimitpl 152 392 0 385 1 0 1 1 0 8 0 sigapl 432 4541 0 4527 2 0 2 2 0 8 0 futexpl 56 111850 0 111849 4 3 1 1 0 8 0 knotepl 112 1080 0 1061 5 4 1 3 0 8 0 kqueuepl 104 1097 0 1095 1 0 1 1 0 8 0 pipepl 112 7018 0 6997 13 11 2 2 0 8 1 fdescpl 424 4542 0 4527 2 0 2 2 0 8 0 filepl 120 38627 0 38528 14 9 5 5 0 8 1 lockfpl 104 1392 0 1391 1 0 1 1 0 8 0 lockfspl 48 479 0 478 1 0 1 1 0 8 0 sessionpl 112 39 0 29 1 0 1 1 0 8 0 pgrppl 48 119 0 109 1 0 1 1 0 8 0 ucredpl 96 5247 0 5240 1 0 1 1 0 8 0 zombiepl 144 4529 0 4529 3 2 1 1 0 8 1 processpl 864 4560 0 4529 4 0 4 4 0 8 0 procpl 632 9834 0 9794 4 0 4 4 0 8 0 sosppl 128 59 0 59 13 12 1 1 0 8 1 sockpl 384 6474 0 6448 17 13 4 5 0 8 0 mcl64k 65536 124 0 124 14 14 0 1 0 8 0 mcl16k 16384 31 0 31 13 13 0 1 0 8 0 mcl12k 12288 101 0 101 11 10 1 1 0 8 1 mcl9k 9216 57 0 57 15 14 1 1 0 8 1 mcl8k 8192 153 0 153 8 8 0 1 0 8 0 mcl4k 4096 456 0 456 5 4 1 1 0 8 1 mcl2k2 2112 30 0 30 14 14 0 1 0 8 0 mcl2k 2048 62105 0 62062 30 24 6 14 0 8 0 mtagpl 80 209 0 209 4 4 0 2 0 8 0 mbufpl 256 128639 0 128544 26 17 9 14 0 8 0 bufpl 256 16759 0 10285 405 0 405 405 0 8 0 anonpl 16 455490 0 443837 192 128 64 76 0 62 0 amapchunkpl 152 20928 0 20821 64 58 6 18 0 158 1 amappl16 192 24443 0 23617 172 129 43 55 0 8 1 amappl15 184 899 0 897 3 2 1 1 0 8 0 amappl14 176 225 0 223 2 1 1 1 0 8 0 amappl13 168 446 0 446 3 3 0 1 0 8 0 amappl12 160 492 0 489 1 0 1 1 0 8 0 amappl11 152 426 0 413 1 0 1 1 0 8 0 amappl10 144 380 0 378 1 0 1 1 0 8 0 amappl9 136 2341 0 2335 1 0 1 1 0 8 0 amappl8 128 1901 0 1871 2 0 2 2 0 8 0 amappl7 120 483 0 476 1 0 1 1 0 8 0 amappl6 112 406 0 394 1 0 1 1 0 8 0 amappl5 104 751 0 741 1 0 1 1 0 8 0 amappl4 96 4542 0 4514 1 0 1 1 0 8 0 amappl3 88 726 0 721 1 0 1 1 0 8 0 amappl2 80 35836 0 35760 4 2 2 3 0 8 0 amappl1 72 89442 0 89020 28 19 9 20 0 8 0 amappl 80 10293 0 10256 1 0 1 1 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 142 0 13 3 0 3 3 0 8 0 uaddrrnd 24 4550 0 4527 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4550 0 4527 1 0 1 1 0 8 0 vmmpekpl 168 39169 0 39147 2 0 2 2 0 8 0 vmmpepl 168 539067 0 537089 347 235 112 112 0 357 24 vmsppl 272 4541 0 4527 3 2 1 2 0 8 0 pdppl 4096 9106 0 9070 6 1 5 6 0 8 0 pvpl 32 1253332 0 1238427 409 240 169 258 0 265 22 pmappl 200 4549 0 4535 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 626 0 95 16 0 16 16 0 8 0