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 *356417 27697 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(ffffffff821dd4de,ffffffff821af01f,3b7,ffffffff821bf626) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800017942b78,4,ffff800017942c48,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b2a800,840100,ffff800000b2a858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b2d000,ffff800000b2a800,ffff800017942f50,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b2d000,ffff800000b2a800,ffff800017942f50,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800017942f40,ffff800000b2d000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800017942f40,ffff800000b2d000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd803d8fec00,8040691a,ffff800017942f40,ffff800016b2ec70) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff800016b2ec70,ffff800017943058,ffff8000179430a0) at sys_ioctl+0x5b9 syscall(ffff800017943120) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,69d02fd0010) at Xsyscall+0x128 end of kernel end trace frame: 0x69ffc449e20, 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(ffffffff821dd4de,ffffffff821af01f,3b7,ffffffff821bf626) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800017942b78,4,ffff800017942c48,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b2a800,840100,ffff800000b2a858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b2d000,ffff800000b2a800,ffff800017942f50,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b2d000,ffff800000b2a800,ffff800017942f50,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800017942f40,ffff800000b2d000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800017942f40,ffff800000b2d000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd803d8fec00,8040691a,ffff800017942f40,ffff800016b2ec70) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff800016b2ec70,ffff800017943058,ffff8000179430a0) at sys_ioctl+0x5b9 syscall(ffff800017943120) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,69d02fd0010) at Xsyscall+0x128 end of kernel end trace frame: 0x69ffc449e20, count: -12 ddb> show registers rdi 0xffffffff8117ea37 db_enter+0x17 rsi 0x3e99 __ALIGN_SIZE+0x2e99 rbp 0xffff800017942990 rbx 0xffff800017942a40 rdx 0x3e9a __ALIGN_SIZE+0x2e9a rcx 0xffff800014909000 rax 0xffff800014909000 r8 0xffff800017942950 r9 0x1 r10 0xffff800000b29dc0 r11 0x8f0ad572f92cc04e r12 0x3000000008 r13 0xffff8000179429a0 r14 0x100 r15 0x1 rip 0xffffffff8117ea38 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017942980 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=356417 stat=onproc flags process=0 proc=4000000 pri=73, usrpri=73, nice=20 forw=0xffffffffffffffff, list=0xffff800016b2f160,0xffffffff82575d38 process=0xffff8000ffff7b10 user=0xffff80001793e000, vmspace=0xfffffd803f013bb0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 27697 480944 81799 0 2 0 syz-executor.1 *27697 356417 81799 0 7 0x4000000 syz-executor.1 49400 180228 0 0 3 0x14200 acct acct 51780 144863 12336 0 2 0x2 syz-executor.0 81799 419508 12336 0 3 0x82 nanosleep syz-executor.1 70461 218941 1 0 3 0x100083 ttyin getty 69120 35750 0 0 3 0x14200 bored sosplice 12336 163258 96324 0 3 0x82 thrsleep syz-fuzzer 12336 395191 96324 0 3 0x4000082 nanosleep syz-fuzzer 12336 335694 96324 0 3 0x4000082 thrsleep syz-fuzzer 12336 410673 96324 0 3 0x4000082 thrsleep syz-fuzzer 12336 247092 96324 0 3 0x4000082 kqread syz-fuzzer 12336 394423 96324 0 3 0x4000082 thrsleep syz-fuzzer 12336 386804 96324 0 3 0x4000082 thrsleep syz-fuzzer 96324 359040 69856 0 3 0x10008a pause ksh 69856 345849 55633 0 3 0x92 select sshd 55633 384550 1 0 3 0x80 select sshd 25207 169745 92813 73 3 0x100090 kqread syslogd 92813 141855 1 0 3 0x100082 netio syslogd 25155 439755 1 77 3 0x100090 poll dhclient 65193 42430 1 0 3 0x80 poll dhclient 29565 271490 0 0 2 0x14200 zerothread 59140 11100 0 0 3 0x14200 aiodoned aiodoned 86073 304389 0 0 3 0x14200 syncer update 24697 374284 0 0 3 0x14200 cleaner cleaner 48138 521556 0 0 3 0x14200 reaper reaper 52465 38227 0 0 3 0x14200 pgdaemon pagedaemon 52997 173762 0 0 3 0x14200 bored crynlk 80760 392345 0 0 3 0x14200 bored crypto 37032 199380 0 0 3 0x40014200 acpi0 acpi0 68093 186856 0 0 3 0x14200 bored softnet 55826 239045 0 0 3 0x14200 bored systqmp 54593 373376 0 0 3 0x14200 bored systq 28024 342261 0 0 3 0x40014200 bored softclock 61875 194409 0 0 3 0x40014200 idle0 44432 96918 0 0 3 0x14200 bored smr 1 358397 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 9526 6365K 14677K 78643K 25761 0 0 pcb 13 8K 8K 78643K 727 0 0 rtable 112 12K 12K 78643K 2889 0 0 ifaddr 210 57K 60K 78643K 1290 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 251 0 0 iov 0 0K 24K 78643K 384 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1224 77K 77K 78643K 7018 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 86 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 726 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 6967 0 0 sigio 0 0K 0K 78643K 53 0 0 proc 48 38K 63K 78643K 2003 0 0 subproc 32 2K 2K 78643K 255 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 228 0 0 in_multi 32 2K 2K 78643K 297 0 0 ether_multi 1 0K 0K 78643K 32 0 0 mrt 0 0K 0K 78643K 31 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 545 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 122 23K 25K 78643K 16961 0 0 UVM aobj 130 4K 4K 78643K 135 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 398 0 0 NDP 15 0K 0K 78643K 374 0 0 temp 192 3536K 3608K 78643K 42462 0 0 kqueue 0 0K 0K 78643K 20 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 45 0 38 1 0 1 1 0 8 0 rtpcb 80 170 0 168 1 0 1 1 0 8 0 rtentry 112 205 0 163 2 0 2 2 0 8 0 unpcb 120 2965 0 2952 8 6 2 2 0 8 1 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpqe 32 158 0 158 15 15 0 1 0 8 0 tcpcb 544 1067 0 1062 1 0 1 1 0 8 0 ipq 40 4 0 4 2 2 0 1 0 8 0 ipqe 40 8 0 8 2 2 0 1 0 8 0 inpcb 280 4182 0 4174 8 7 1 2 0 8 0 nd6 48 28 0 25 3 2 1 1 0 8 0 pkpcb 40 37 0 37 8 8 0 1 0 8 0 ppxss 1128 313 0 311 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 836 0 626 23 9 14 15 0 8 0 art_table 32 837 0 626 2 0 2 2 0 8 0 art_node 16 198 0 160 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 4 1 1 0 1 0 8 0 semupl 112 9 0 9 1 1 0 1 0 8 0 semapl 112 724 0 714 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 13170 0 11768 46 0 46 46 0 8 0 ffsino 240 13170 0 11768 83 0 83 83 0 8 0 nchpl 144 23954 0 22333 61 0 61 61 0 8 0 uvmvnodes 72 7445 0 0 136 0 136 136 0 8 0 vnodes 208 7445 0 0 392 0 392 392 0 8 0 namei 1024 75306 0 75305 6 5 1 1 0 8 0 scsiplug 64 14 0 14 4 4 0 1 0 8 0 scxspl 192 72459 0 72459 14 13 1 7 0 8 1 plimitpl 152 275 0 268 1 0 1 1 0 8 0 sigapl 432 7100 0 7087 2 0 2 2 0 8 0 futexpl 56 125457 0 125457 6 5 1 1 0 8 1 knotepl 112 1141 0 1122 1 0 1 1 0 8 0 kqueuepl 104 1819 0 1817 1 0 1 1 0 8 0 pipepl 112 3448 0 3429 16 14 2 2 0 8 1 fdescpl 424 7101 0 7087 2 0 2 2 0 8 0 filepl 120 48242 0 48146 35 29 6 7 0 8 3 lockfpl 104 1490 0 1489 1 0 1 1 0 8 0 lockfspl 48 575 0 574 1 0 1 1 0 8 0 sessionpl 112 31 0 21 1 0 1 1 0 8 0 pgrppl 48 839 0 829 1 0 1 1 0 8 0 ucredpl 96 5481 0 5474 1 0 1 1 0 8 0 zombiepl 144 7094 0 7094 3 2 1 1 0 8 1 processpl 864 7124 0 7094 4 0 4 4 0 8 0 procpl 632 15489 0 15452 4 0 4 4 0 8 0 sosppl 128 87 0 87 11 11 0 1 0 8 0 sockpl 384 7383 0 7360 36 31 5 8 0 8 2 mcl64k 65536 625 0 625 48 48 0 33 0 8 0 mcl16k 16384 8 0 8 7 6 1 1 0 8 1 mcl12k 12288 108 0 108 18 17 1 1 0 8 1 mcl9k 9216 44 0 44 15 15 0 1 0 8 0 mcl8k 8192 276 0 276 18 17 1 1 0 8 1 mcl4k 4096 316 0 316 11 10 1 1 0 8 1 mcl2k2 2112 28 0 28 11 11 0 1 0 8 0 mcl2k 2048 28712 0 28665 49 41 8 12 0 8 1 mtagpl 80 204 0 202 7 6 1 2 0 8 0 mbufpl 256 110036 0 109971 68 61 7 30 0 8 0 bufpl 256 19409 0 11976 466 0 466 466 0 8 0 anonpl 16 591940 0 585840 200 159 41 53 0 62 10 amapchunkpl 152 32079 0 31996 60 47 13 24 0 158 8 amappl16 192 35208 0 34885 150 126 24 29 0 8 7 amappl15 184 1140 0 1139 2 1 1 1 0 8 0 amappl14 176 108 0 105 2 1 1 1 0 8 0 amappl13 168 215 0 215 3 2 1 1 0 8 1 amappl12 160 2142 0 2140 1 0 1 1 0 8 0 amappl11 152 308 0 297 1 0 1 1 0 8 0 amappl10 144 1016 0 1013 1 0 1 1 0 8 0 amappl9 136 1580 0 1574 1 0 1 1 0 8 0 amappl8 128 1318 0 1273 2 0 2 2 0 8 0 amappl7 120 1103 0 1095 1 0 1 1 0 8 0 amappl6 112 308 0 297 1 0 1 1 0 8 0 amappl5 104 2766 0 2756 1 0 1 1 0 8 0 amappl4 96 6321 0 6290 1 0 1 1 0 8 0 amappl3 88 1554 0 1549 1 0 1 1 0 8 0 amappl2 80 56656 0 56589 3 1 2 3 0 8 0 amappl1 72 127594 0 127193 25 14 11 20 0 8 0 amappl 80 16025 0 15992 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 134 0 5 3 0 3 3 0 8 0 uaddrrnd 24 7101 0 7087 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7101 0 7087 1 0 1 1 0 8 0 vmmpekpl 168 43088 0 43060 2 0 2 2 0 8 0 vmmpepl 168 810653 0 809281 202 127 75 77 0 357 6 vmsppl 272 7100 0 7087 5 4 1 2 0 8 0 pdppl 4096 14208 0 14174 7 2 5 6 0 8 0 pvpl 32 1953010 0 1943795 603 487 116 341 0 265 32 pmappl 200 7100 0 7087 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 798 0 205 19 0 19 19 0 8 0