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 *258107 11923 0 0 0x4000000 0 syz-executor.0 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(ffffffff821e3723,ffffffff821b3839,3b7,ffffffff821c3b71) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff80001595c3b8,4,ffff80001595c488,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b26800,840100,ffff800000b26858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a9e800,ffff800000b26800,ffff80001595c790,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a9e800,ffff800000b26800,ffff80001595c790,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff80001595c780,ffff800000a9e800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff80001595c780,ffff800000a9e800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd802e6ccb08,8040691a,ffff80001595c780,ffff8000ffff84f8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff84f8,ffff80001595c898,ffff80001595c8e0) at sys_ioctl+0x5b9 syscall(ffff80001595c960) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,9aa7ad3a1b0) at Xsyscall+0x128 end of kernel end trace frame: 0x9acde6bbcf0, 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(ffffffff821e3723,ffffffff821b3839,3b7,ffffffff821c3b71) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff80001595c3b8,4,ffff80001595c488,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b26800,840100,ffff800000b26858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a9e800,ffff800000b26800,ffff80001595c790,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a9e800,ffff800000b26800,ffff80001595c790,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff80001595c780,ffff800000a9e800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff80001595c780,ffff800000a9e800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd802e6ccb08,8040691a,ffff80001595c780,ffff8000ffff84f8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff84f8,ffff80001595c898,ffff80001595c8e0) at sys_ioctl+0x5b9 syscall(ffff80001595c960) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,9aa7ad3a1b0) at Xsyscall+0x128 end of kernel end trace frame: 0x9acde6bbcf0, count: -12 ddb> show registers rdi 0xffffffff81896ae7 db_enter+0x17 rsi 0x46c8 __ALIGN_SIZE+0x36c8 rbp 0xffff80001595c1d0 rbx 0xffff80001595c280 rdx 0x46c9 __ALIGN_SIZE+0x36c9 rcx 0xffff800015338000 rax 0xffff800015338000 r8 0xffff80001595c190 r9 0x1 r10 0xffff800000be7500 r11 0x2b9df3b0bdce0c1e r12 0x3000000008 r13 0xffff80001595c1e0 r14 0x100 r15 0x1 rip 0xffffffff81896ae8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001595c1c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=258107 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2508,0xffffffff82569ac8 process=0xffff8000148a2d98 user=0xffff800015957000, vmspace=0xfffffd803f014330 estcpu=32, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 11923 399960 95377 0 2 0 syz-executor.0 11923 239230 95377 0 3 0x4000080 piperd syz-executor.0 11923 27681 95377 0 3 0x4000080 piperd syz-executor.0 *11923 258107 95377 0 7 0x4000000 syz-executor.0 54451 143744 69320 0 3 0x82 piperd syz-executor.1 95377 262321 69320 0 3 0x82 nanosleep syz-executor.0 11655 388453 0 0 3 0x14200 acct acct 43938 319393 1 0 3 0x100083 ttyin getty 98673 394120 0 0 3 0x14200 bored sosplice 69320 433971 42585 0 3 0x82 thrsleep syz-fuzzer 69320 99310 42585 0 3 0x4000082 thrsleep syz-fuzzer 69320 125114 42585 0 3 0x4000082 thrsleep syz-fuzzer 69320 209557 42585 0 3 0x4000082 thrsleep syz-fuzzer 69320 136908 42585 0 3 0x4000082 kqread syz-fuzzer 69320 272710 42585 0 3 0x4000082 thrsleep syz-fuzzer 69320 284183 42585 0 3 0x4000082 thrsleep syz-fuzzer 42585 428848 8742 0 3 0x10008a pause ksh 8742 308472 59681 0 3 0x92 select sshd 59681 440799 1 0 3 0x80 select sshd 19975 332501 72512 73 3 0x100090 kqread syslogd 72512 164820 1 0 3 0x100082 netio syslogd 77217 304600 1 77 3 0x100090 poll dhclient 58007 53825 1 0 3 0x80 poll dhclient 99003 273182 0 0 2 0x14200 zerothread 27802 488691 0 0 3 0x14200 aiodoned aiodoned 13858 25902 0 0 3 0x14200 syncer update 28432 307506 0 0 3 0x14200 cleaner cleaner 31861 12757 0 0 3 0x14200 reaper reaper 46235 496162 0 0 3 0x14200 pgdaemon pagedaemon 87822 112624 0 0 3 0x14200 bored crynlk 37598 108046 0 0 3 0x14200 bored crypto 6659 448199 0 0 3 0x40014200 acpi0 acpi0 68786 493299 0 0 3 0x14200 bored softnet 86270 125096 0 0 3 0x14200 bored systqmp 31214 52457 0 0 3 0x14200 bored systq 19149 390483 0 0 3 0x40014200 bored softclock 91297 158844 0 0 3 0x40014200 idle0 12479 336519 0 0 3 0x14200 bored smr 1 95240 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 9600 7034K 15484K 78643K 52714 0 0 pcb 13 10K 12K 78643K 1538 0 0 rtable 135 13K 13K 78643K 4686 0 0 ifaddr 97 25K 28K 78643K 1205 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 570 0 0 iov 0 0K 32K 78643K 2033 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1230 77K 78K 78643K 13351 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 85 0 0 VM map 81 20K 20K 78643K 100 0 0 sem 12 0K 1K 78643K 2919 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 7952 0 0 sigio 0 0K 0K 78643K 103 0 0 proc 50 38K 63K 78643K 2955 0 0 subproc 32 2K 2K 78643K 803 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 494 0 0 in_multi 27 1K 2K 78643K 768 0 0 ether_multi 1 0K 0K 78643K 64 0 0 mrt 1 0K 0K 78643K 64 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 1575 0 0 pfkey data 0 0K 2K 78643K 4 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 244 723K 728K 78643K 22242 0 0 UVM aobj 130 4K 4K 78643K 140 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 1695 0 0 NDP 23 0K 1K 78643K 382 0 0 temp 248 3541K 4181K 78643K 311888 0 0 kqueue 0 0K 0K 78643K 44 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 177 0 170 1 0 1 1 0 8 0 rtpcb 80 947 0 945 1 0 1 1 0 8 0 rtentry 112 870 0 821 2 0 2 2 0 8 0 unpcb 120 6854 0 6835 22 21 1 2 0 8 0 syncache 264 38 0 38 16 16 0 1 0 8 0 tcpqe 32 104 0 104 9 9 0 1 0 8 0 tcpcb 544 2758 0 2752 11 10 1 3 0 8 0 ipq 40 44 0 44 16 16 0 1 0 8 0 ipqe 40 108 0 108 16 16 0 1 0 8 0 inpcb 280 8108 0 8097 50 49 1 13 0 8 0 rttmr 72 25 0 24 6 5 1 1 0 8 0 nd6 48 100 0 98 5 4 1 1 0 8 0 pkpcb 40 39 0 39 14 14 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 150 0 150 28 28 0 1 0 8 0 art_heap8 4096 49 0 47 19 17 2 5 0 8 0 art_heap4 256 3653 0 3408 55 38 17 20 0 8 0 art_table 32 3702 0 3455 4 1 3 3 0 8 0 art_node 16 861 0 820 1 0 1 1 0 8 0 sysvmsgpl 40 60 0 54 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 2915 0 2905 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 15131 0 13711 47 1 46 47 0 8 0 ffsino 240 15131 0 13711 84 0 84 84 0 8 0 nchpl 144 27252 0 25642 61 0 61 61 0 8 0 uvmvnodes 72 7780 0 0 142 0 142 142 0 8 0 vnodes 208 7780 0 0 410 0 410 410 0 8 0 namei 1024 102379 0 102379 6 5 1 1 0 8 1 vcpupl 1984 80 0 1 10 0 10 10 0 8 0 vmpool 520 98 0 19 6 0 6 6 0 8 0 scsiplug 64 6 0 6 4 4 0 1 0 8 0 scxspl 192 107141 0 107141 60 59 1 7 0 8 1 plimitpl 152 692 0 685 1 0 1 1 0 8 0 sigapl 432 7989 0 7976 2 0 2 2 0 8 0 futexpl 56 267135 0 267135 5 4 1 1 0 8 1 knotepl 112 2136 0 2117 3 2 1 3 0 8 0 kqueuepl 104 2018 0 2016 1 0 1 1 0 8 0 pipepl 112 4724 0 4703 16 15 1 2 0 8 0 fdescpl 424 7990 0 7976 2 0 2 2 0 8 0 filepl 120 73209 0 73108 37 33 4 11 0 8 0 lockfpl 104 3001 0 2999 1 0 1 1 0 8 0 lockfspl 48 1001 0 999 1 0 1 1 0 8 0 sessionpl 112 63 0 53 1 0 1 1 0 8 0 pgrppl 48 153 0 143 1 0 1 1 0 8 0 ucredpl 96 10540 0 10531 1 0 1 1 0 8 0 zombiepl 144 7979 0 7979 3 2 1 1 0 8 1 processpl 864 8009 0 7979 4 0 4 4 0 8 0 procpl 632 19038 0 18999 5 1 4 5 0 8 0 sosppl 128 130 0 130 24 24 0 1 0 8 0 sockpl 384 16065 0 16033 78 73 5 23 0 8 1 mcl64k 65536 3280 0 3280 225 224 1 47 0 8 1 mcl16k 16384 97 0 97 36 36 0 1 0 8 0 mcl12k 12288 250 0 250 23 22 1 1 0 8 1 mcl9k 9216 132 0 132 33 32 1 1 0 8 1 mcl8k 8192 523 0 523 9 8 1 1 0 8 1 mcl4k 4096 1094 0 1094 8 7 1 1 0 8 1 mcl2k2 2112 89 0 89 34 33 1 1 0 8 1 mcl2k 2048 81383 0 81339 24 17 7 13 0 8 0 mtagpl 80 4734 0 4711 48 46 2 8 0 8 1 mbufpl 256 210260 0 210126 371 352 19 56 0 8 5 bufpl 256 42053 0 34273 487 0 487 487 0 8 0 anonpl 16 1070105 0 1049099 359 261 98 99 0 62 10 amapchunkpl 152 45932 0 45792 137 127 10 19 0 158 3 amappl16 192 52016 0 50756 399 324 75 76 0 8 11 amappl15 184 993 0 993 13 12 1 1 0 8 1 amappl14 176 814 0 810 2 1 1 1 0 8 0 amappl13 168 1475 0 1473 1 0 1 1 0 8 0 amappl12 160 1047 0 1047 8 7 1 1 0 8 1 amappl11 152 1878 0 1865 1 0 1 1 0 8 0 amappl10 144 678 0 676 1 0 1 1 0 8 0 amappl9 136 1896 0 1890 1 0 1 1 0 8 0 amappl8 128 1432 0 1384 3 1 2 2 0 8 0 amappl7 120 880 0 874 1 0 1 1 0 8 0 amappl6 112 1824 0 1808 1 0 1 1 0 8 0 amappl5 104 1598 0 1587 1 0 1 1 0 8 0 amappl4 96 7512 0 7481 1 0 1 1 0 8 0 amappl3 88 1972 0 1965 1 0 1 1 0 8 0 amappl2 80 62086 0 61993 9 6 3 3 0 8 0 amappl1 72 161196 0 160783 27 18 9 20 0 8 0 amappl 80 20139 0 20054 2 0 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 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 8088 0 7976 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8088 0 7976 1 0 1 1 0 8 0 vmmpekpl 168 53263 0 53222 4 1 3 3 0 8 0 vmmpepl 168 983525 0 980882 580 424 156 158 0 357 36 vmsppl 272 7989 0 7976 4 3 1 2 0 8 0 pdppl 4096 16182 0 16069 23 8 15 15 0 8 0 pvpl 32 2792280 0 2771488 795 518 277 306 0 265 97 pmappl 200 8087 0 7995 5 0 5 5 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1367 0 727 20 0 20 20 0 8 0