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 *212718 57644 0 0x2 0 0 ifconfig 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(ffffffff821e60c6,ffffffff821ba1e2,3b7,ffffffff821ca734) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800016f6bfe8,4,ffff800016f6c0b8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b61300,840100,ffff800000b61358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b2b000,ffff800000b61300,ffff800016f6c3c0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b2b000,ffff800000b61300,ffff800016f6c3c0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800016f6c3b0,ffff800000b2b000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800016f6c3b0,ffff800000b2b000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd80289ef4b8,8040691a,ffff800016f6c3b0,ffff8000ffff2290) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff2290,ffff800016f6c4c0,ffff800016f6c510) at sys_ioctl+0x5b9 syscall(ffff800016f6c590) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,36,0,36,7f7ffffcc718,f6399563070) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcc680, 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(ffffffff821e60c6,ffffffff821ba1e2,3b7,ffffffff821ca734) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800016f6bfe8,4,ffff800016f6c0b8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b61300,840100,ffff800000b61358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b2b000,ffff800000b61300,ffff800016f6c3c0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b2b000,ffff800000b61300,ffff800016f6c3c0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800016f6c3b0,ffff800000b2b000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800016f6c3b0,ffff800000b2b000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd80289ef4b8,8040691a,ffff800016f6c3b0,ffff8000ffff2290) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff2290,ffff800016f6c4c0,ffff800016f6c510) at sys_ioctl+0x5b9 syscall(ffff800016f6c590) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,36,0,36,7f7ffffcc718,f6399563070) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcc680, count: -12 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800016f6be00 rbx 0xffff800016f6beb0 rdx 0x2 rcx 0 rax 0 r8 0xffff800016f6bdc0 r9 0x1 r10 0 r11 0xae95f2a154aaf206 r12 0x3000000008 r13 0xffff800016f6be10 r14 0x100 r15 0x1 rip 0xffffffff811e4308 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016f6bdf0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (ifconfig) pid=212718 stat=onproc flags process=2 proc=0 pri=51, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3650,0xffffffff8259fcf8 process=0xffff8000ffff70f0 user=0xffff800016f67000, vmspace=0xfffffd803f014220 estcpu=9, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *57644 212718 63874 0 7 0x2 ifconfig 63874 178472 31064 0 3 0x10008a pause sh 31064 291809 83618 0 3 0x82 wait syz-executor.0 77409 272974 83618 0 3 0x82 piperd syz-executor.1 89980 231630 0 0 3 0x14200 acct acct 51308 439013 0 0 3 0x14200 bored sosplice 83618 353941 28938 0 3 0x82 thrsleep syz-fuzzer 83618 193188 28938 0 3 0x4000082 thrsleep syz-fuzzer 83618 7995 28938 0 3 0x4000082 thrsleep syz-fuzzer 83618 464206 28938 0 3 0x4000082 thrsleep syz-fuzzer 83618 99878 28938 0 3 0x4000082 kqread syz-fuzzer 83618 350379 28938 0 3 0x4000082 thrsleep syz-fuzzer 83618 185476 28938 0 3 0x4000082 thrsleep syz-fuzzer 28938 475069 86872 0 3 0x10008a pause ksh 86872 339426 69848 0 3 0x92 select sshd 2397 219458 1 0 3 0x100083 ttyopn getty 69848 46784 1 0 3 0x80 select sshd 15937 518828 57007 73 3 0x100090 kqread syslogd 57007 463609 1 0 3 0x100082 netio syslogd 44170 8663 1 77 2 0x100090 dhclient 18053 425061 1 0 3 0x80 poll dhclient 78947 433216 0 0 2 0x14200 zerothread 78986 314026 0 0 3 0x14200 aiodoned aiodoned 51678 150905 0 0 3 0x14200 syncer update 90279 218968 0 0 3 0x14200 cleaner cleaner 56922 284244 0 0 3 0x14200 reaper reaper 63757 210857 0 0 3 0x14200 pgdaemon pagedaemon 10263 87504 0 0 3 0x14200 bored crynlk 70715 129045 0 0 3 0x14200 bored crypto 98660 169779 0 0 3 0x40014200 acpi0 acpi0 57996 158761 0 0 2 0x14200 softnet 17709 261824 0 0 3 0x14200 bored systqmp 53909 431749 0 0 3 0x14200 bored systq 25816 1054 0 0 3 0x40014200 bored softclock 99745 362073 0 0 3 0x40014200 idle0 9928 33608 0 0 3 0x14200 bored smr 1 153845 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 9595 7017K 15249K 78643K 39845 0 0 pcb 13 10K 12K 78643K 998 0 0 rtable 111 8K 8K 78643K 3052 0 0 ifaddr 93 20K 21K 78643K 792 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 331 0 0 iov 0 0K 24K 78643K 1292 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1228 77K 78K 78643K 9554 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 101 0 0 VM map 34 8K 8K 78643K 63 0 0 sem 12 0K 1K 78643K 1064 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 5451 0 0 sigio 0 0K 0K 78643K 550 0 0 proc 57 47K 63K 78643K 1959 0 0 subproc 32 2K 2K 78643K 565 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 435 0 0 in_multi 25 1K 2K 78643K 552 0 0 ether_multi 1 0K 0K 78643K 44 0 0 mrt 0 0K 0K 78643K 27 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 1197 0 0 pfkey data 0 0K 0K 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 165 267K 272K 78643K 14248 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 1K 78643K 932 0 0 NDP 23 0K 0K 78643K 260 0 0 temp 247 3545K 4185K 78643K 165912 0 0 kqueue 0 0K 0K 78643K 38 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 115 0 108 1 0 1 1 0 8 0 rtpcb 80 801 0 799 1 0 1 1 0 8 0 rtentry 112 560 0 521 2 0 2 2 0 8 0 unpcb 120 3483 0 3472 3 2 1 2 0 8 0 syncache 264 25 0 25 11 11 0 1 0 8 0 tcpqe 32 99 0 99 6 6 0 1 0 8 0 tcpcb 544 5763 0 5759 31 30 1 15 0 8 0 ipq 40 35 0 35 15 14 1 1 0 8 1 ipqe 40 819 0 819 15 14 1 1 0 8 1 inpcb 280 11504 0 11494 28 26 2 9 0 8 1 rttmr 72 11 0 11 1 1 0 1 0 8 0 ip6q 72 2 0 2 2 2 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 48 72 0 70 4 3 1 1 0 8 0 pkpcb 40 40 0 40 11 11 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 80 0 80 13 13 0 1 0 8 0 art_heap8 4096 7 0 6 7 6 1 3 0 8 0 art_heap4 256 2275 0 2099 32 21 11 17 0 8 0 art_table 32 2282 0 2105 4 1 3 3 0 8 0 art_node 16 550 0 515 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1060 0 1050 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 10592 0 9191 46 0 46 46 0 8 0 ffsino 240 10592 0 9191 83 0 83 83 0 8 0 nchpl 144 20311 0 19828 61 38 23 61 0 8 0 uvmvnodes 72 6833 0 0 125 0 125 125 0 8 0 vnodes 208 6833 0 0 360 0 360 360 0 8 0 namei 1024 67751 0 67751 5 4 1 1 0 8 1 vcpupl 1984 32 0 0 4 0 4 4 0 8 0 vmpool 520 61 0 29 7 4 3 3 0 8 0 scsiplug 64 6 0 6 4 4 0 1 0 8 0 scxspl 192 72118 0 72118 47 46 1 7 0 8 1 plimitpl 152 1033 0 1026 1 0 1 1 0 8 0 sigapl 432 5529 0 5515 2 0 2 2 0 8 0 futexpl 56 169447 0 169447 6 5 1 1 0 8 1 knotepl 112 1351 0 1330 1 0 1 1 0 8 0 kqueuepl 104 1333 0 1331 4 3 1 4 0 8 0 pipepl 112 4436 0 4417 17 16 1 2 0 8 0 fdescpl 424 5530 0 5515 2 0 2 2 0 8 0 filepl 120 52680 0 52584 36 32 4 11 0 8 1 lockfpl 104 1892 0 1891 1 0 1 1 0 8 0 lockfspl 48 639 0 638 1 0 1 1 0 8 0 sessionpl 112 48 0 38 1 0 1 1 0 8 0 pgrppl 48 112 0 102 1 0 1 1 0 8 0 ucredpl 96 6858 0 6851 1 0 1 1 0 8 0 zombiepl 144 5518 0 5518 1 0 1 1 0 8 1 processpl 864 5549 0 5518 4 0 4 4 0 8 0 procpl 632 11921 0 11884 4 0 4 4 0 8 0 sosppl 128 675 0 675 8 7 1 1 0 8 1 sockpl 384 15979 0 15957 56 52 4 14 0 8 0 mcl64k 65536 1689 0 1689 125 93 32 33 0 8 32 mcl16k 16384 60 0 60 16 16 0 1 0 8 0 mcl12k 12288 668 0 668 14 13 1 1 0 8 1 mcl9k 9216 99 0 99 15 15 0 1 0 8 0 mcl8k 8192 237 0 237 8 7 1 1 0 8 1 mcl4k 4096 563 0 563 8 7 1 1 0 8 1 mcl2k2 2112 57 0 57 18 18 0 1 0 8 0 mcl2k 2048 81307 0 81261 16 9 7 13 0 8 0 mtagpl 80 552 0 550 6 5 1 2 0 8 0 mbufpl 256 188012 0 187929 169 151 18 31 0 8 8 bufpl 256 29296 0 22462 428 0 428 428 0 8 0 anonpl 16 724319 0 708539 238 150 88 107 0 62 5 amapchunkpl 152 29095 0 28926 90 83 7 19 0 158 0 amappl16 192 34577 0 33475 268 204 64 76 0 8 8 amappl15 184 270 0 269 4 3 1 1 0 8 0 amappl14 176 1299 0 1291 1 0 1 1 0 8 0 amappl13 168 549 0 549 5 5 0 1 0 8 0 amappl12 160 1648 0 1646 1 0 1 1 0 8 0 amappl11 152 398 0 387 1 0 1 1 0 8 0 amappl10 144 857 0 857 4 3 1 1 0 8 1 amappl9 136 1429 0 1423 1 0 1 1 0 8 0 amappl8 128 974 0 927 2 0 2 2 0 8 0 amappl7 120 999 0 992 1 0 1 1 0 8 0 amappl6 112 347 0 334 1 0 1 1 0 8 0 amappl5 104 2018 0 2008 1 0 1 1 0 8 0 amappl4 96 4861 0 4834 1 0 1 1 0 8 0 amappl3 88 3192 0 3186 1 0 1 1 0 8 0 amappl2 80 41989 0 41918 3 1 2 3 0 8 0 amappl1 72 108615 0 108190 26 16 10 20 0 8 0 amappl 80 12712 0 12655 3 1 2 2 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 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 142 0 13 3 0 3 3 0 8 0 uaddrrnd 24 5591 0 5515 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5591 0 5515 1 0 1 1 0 8 0 vmmpekpl 168 37473 0 37435 2 0 2 2 0 8 0 vmmpepl 168 681080 0 678824 378 236 142 142 0 357 35 vmsppl 272 5529 0 5515 2 1 1 2 0 8 0 pdppl 4096 11188 0 11120 11 2 9 9 0 8 0 pvpl 32 1802795 0 1785145 516 284 232 317 0 265 53 pmappl 200 5590 0 5544 3 0 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 946 0 349 18 0 18 18 0 8 0