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 * 83120 39178 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(ffffffff821e4dfe,ffffffff821b6d84,3b7,ffffffff821c71ce) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800017b68958,4,ffff800017b68a28,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000aea100,840100,ffff800000aea158,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a63800,ffff800000aea100,ffff800017b68d00,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a63800,ffff800000aea100,ffff800017b68d00,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800017b68cf0,ffff800000a63800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800017b68cf0,ffff800000a63800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd803d819780,8020690c,ffff800017b68cf0,ffff800015333b40) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff800015333b40,ffff800017b68e08,ffff800017b68e50) at sys_ioctl+0x5b9 syscall(ffff800017b68ed0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,ffffffffffffff36,0,3,f37ff99010) at Xsyscall+0x128 end of kernel end trace frame: 0xf65766d960, 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(ffffffff821e4dfe,ffffffff821b6d84,3b7,ffffffff821c71ce) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800017b68958,4,ffff800017b68a28,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000aea100,840100,ffff800000aea158,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a63800,ffff800000aea100,ffff800017b68d00,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a63800,ffff800000aea100,ffff800017b68d00,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800017b68cf0,ffff800000a63800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800017b68cf0,ffff800000a63800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd803d819780,8020690c,ffff800017b68cf0,ffff800015333b40) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff800015333b40,ffff800017b68e08,ffff800017b68e50) at sys_ioctl+0x5b9 syscall(ffff800017b68ed0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,ffffffffffffff36,0,3,f37ff99010) at Xsyscall+0x128 end of kernel end trace frame: 0xf65766d960, count: -12 ddb> show registers rdi 0xffffffff81e953f7 db_enter+0x17 rsi 0x3e2d __ALIGN_SIZE+0x2e2d rbp 0xffff800017b68770 rbx 0xffff800017b68820 rdx 0x3e2e __ALIGN_SIZE+0x2e2e rcx 0xffff80001533c000 rax 0xffff80001533c000 r8 0xffff800017b68730 r9 0x1 r10 0xffff800000b33000 r11 0xcaec8b41c0dfea93 r12 0x3000000008 r13 0xffff800017b68780 r14 0x100 r15 0x1 rip 0xffffffff81e953f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017b68760 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=83120 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800015332290,0xffffffff82573c28 process=0xffff8000148a30f8 user=0xffff800017b63000, vmspace=0xfffffd803f014990 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 39178 68051 13384 0 2 0 syz-executor.1 *39178 83120 13384 0 7 0x4000000 syz-executor.1 13384 323372 89061 0 3 0x82 nanosleep syz-executor.1 40272 337870 1 0 3 0x100083 ttyin getty 42769 137520 89061 0 2 0x2 syz-executor.0 19699 494279 0 0 3 0x14200 acct acct 31990 297780 0 0 3 0x14200 bored sosplice 89061 185390 63144 0 3 0x82 thrsleep syz-fuzzer 89061 255412 63144 0 3 0x4000082 nanosleep syz-fuzzer 89061 410963 63144 0 3 0x4000082 thrsleep syz-fuzzer 89061 510595 63144 0 3 0x4000082 thrsleep syz-fuzzer 89061 21423 63144 0 3 0x4000082 kqread syz-fuzzer 89061 41354 63144 0 2 0x4000482 syz-fuzzer 89061 81289 63144 0 3 0x4000082 thrsleep syz-fuzzer 63144 171858 9606 0 3 0x10008a pause ksh 9606 132091 94687 0 3 0x92 select sshd 94687 406954 1 0 3 0x80 select sshd 73115 49140 58341 73 3 0x100090 kqread syslogd 58341 309135 1 0 3 0x100082 netio syslogd 12941 339472 1 77 3 0x100090 poll dhclient 82429 385016 1 0 3 0x80 poll dhclient 38202 31428 0 0 2 0x14200 zerothread 5482 247322 0 0 3 0x14200 aiodoned aiodoned 92111 14264 0 0 3 0x14200 syncer update 4571 435593 0 0 3 0x14200 cleaner cleaner 60735 415534 0 0 3 0x14200 reaper reaper 52550 88858 0 0 3 0x14200 pgdaemon pagedaemon 91116 273546 0 0 3 0x14200 bored crynlk 216 400743 0 0 3 0x14200 bored crypto 20299 77791 0 0 3 0x40014200 acpi0 acpi0 24496 447032 0 0 3 0x14200 bored softnet 41449 130335 0 0 2 0x14200 systqmp 83444 408358 0 0 3 0x14200 bored systq 98796 93615 0 0 3 0x40014200 bored softclock 4341 195895 0 0 3 0x40014200 idle0 65115 181319 0 0 3 0x14200 bored smr 1 367247 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 9561 6373K 10886K 78643K 21360 0 0 pcb 13 10K 12K 78643K 401 0 0 rtable 114 8K 9K 78643K 1294 0 0 ifaddr 81 17K 17K 78643K 450 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 100 0 0 iov 0 0K 34K 78643K 498 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1224 77K 77K 78643K 4482 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 30 0 0 VM map 2 0K 0K 78643K 16 0 0 sem 12 0K 1K 78643K 812 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 2078 0 0 sigio 0 0K 0K 78643K 41 0 0 proc 49 38K 62K 78643K 865 0 0 subproc 32 2K 2K 78643K 136 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 207 0 0 in_multi 20 1K 2K 78643K 183 0 0 ether_multi 1 0K 0K 78643K 14 0 0 mrt 0 0K 0K 78643K 9 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 502 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 114 22K 31K 78643K 5989 0 0 UVM aobj 78 3K 3K 78643K 88 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 468 0 0 NDP 19 0K 0K 78643K 133 0 0 temp 220 3544K 3672K 78643K 66980 0 0 kqueue 0 0K 0K 78643K 21 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 30 0 25 1 0 1 1 0 8 0 rtpcb 80 291 0 289 1 0 1 1 0 8 0 rtentry 112 189 0 148 2 0 2 2 0 8 0 unpcb 120 1387 0 1379 1 0 1 1 0 8 0 syncache 264 18 0 18 8 8 0 1 0 8 0 tcpqe 32 5707 0 5707 3 3 0 1 0 8 0 tcpcb 544 2343 0 2339 20 18 2 15 0 8 1 ipq 40 11 0 11 7 7 0 1 0 8 0 ipqe 40 326 0 326 7 7 0 1 0 8 0 inpcb 280 3944 0 3935 19 17 2 9 0 8 1 rttmr 72 3 0 3 2 2 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 48 21 0 20 4 3 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 63 0 63 11 11 0 1 0 8 0 art_heap8 4096 5 0 4 4 3 1 3 0 8 0 art_heap4 256 809 0 631 27 14 13 15 0 8 0 art_table 32 814 0 635 2 0 2 2 0 8 0 art_node 16 179 0 143 1 0 1 1 0 8 0 sysvmsgpl 40 31 0 14 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 810 0 800 1 0 1 1 0 8 0 shmpl 112 86 0 10 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4730 0 3333 46 0 46 46 0 8 0 ffsino 240 4730 0 3333 83 0 83 83 0 8 0 nchpl 144 8261 0 6666 60 0 60 60 0 8 0 uvmvnodes 72 6056 0 0 111 0 111 111 0 8 0 vnodes 208 6056 0 0 319 0 319 319 0 8 0 namei 1024 28837 0 28836 3 2 1 1 0 8 0 vmpool 520 14 0 14 5 4 1 1 0 8 1 scxspl 192 26446 0 26446 23 22 1 7 0 8 1 plimitpl 152 207 0 200 1 0 1 1 0 8 0 sigapl 432 2233 0 2220 2 0 2 2 0 8 0 futexpl 56 67108 0 67108 1 0 1 1 0 8 1 knotepl 112 507 0 488 2 1 1 2 0 8 0 kqueuepl 104 1133 0 1129 4 3 1 4 0 8 0 pipepl 112 1366 0 1345 9 8 1 2 0 8 0 fdescpl 424 2234 0 2220 2 0 2 2 0 8 0 filepl 120 21904 0 21803 20 16 4 11 0 8 0 lockfpl 104 764 0 763 1 0 1 1 0 8 0 lockfspl 48 258 0 257 1 0 1 1 0 8 0 sessionpl 112 25 0 15 1 0 1 1 0 8 0 pgrppl 48 43 0 33 1 0 1 1 0 8 0 ucredpl 96 3187 0 3179 1 0 1 1 0 8 0 zombiepl 144 2220 0 2220 3 2 1 1 0 8 1 processpl 864 2250 0 2220 4 0 4 4 0 8 0 procpl 632 4930 0 4893 6 2 4 5 0 8 0 sosppl 128 54 0 54 10 10 0 1 0 8 0 sockpl 384 5665 0 5646 30 25 5 14 0 8 3 mcl64k 65536 951 0 951 68 67 1 33 0 8 1 mcl16k 16384 33 0 33 10 9 1 1 0 8 1 mcl12k 12288 54 0 54 6 5 1 1 0 8 1 mcl9k 9216 38 0 38 7 6 1 1 0 8 1 mcl8k 8192 131 0 131 5 4 1 1 0 8 1 mcl4k 4096 286 0 286 4 3 1 1 0 8 1 mcl2k2 2112 22 0 22 8 7 1 1 0 8 1 mcl2k 2048 61600 0 61547 25 17 8 18 0 8 0 mtagpl 80 866 0 718 14 10 4 5 0 8 0 mbufpl 256 121641 0 121149 135 102 33 41 0 8 0 bufpl 256 15539 0 9205 396 0 396 396 0 8 0 anonpl 16 267781 0 250818 147 61 86 86 0 62 11 amapchunkpl 152 10485 0 10353 36 20 16 16 0 158 10 amappl16 192 14043 0 13030 132 80 52 63 0 8 1 amappl15 184 101 0 99 1 0 1 1 0 8 0 amappl14 176 411 0 406 2 1 1 1 0 8 0 amappl12 160 78 0 76 1 0 1 1 0 8 0 amappl11 152 65 0 54 1 0 1 1 0 8 0 amappl10 144 501 0 498 2 1 1 1 0 8 0 amappl9 136 1295 0 1287 1 0 1 1 0 8 0 amappl8 128 877 0 844 3 1 2 2 0 8 0 amappl7 120 562 0 555 1 0 1 1 0 8 0 amappl6 112 79 0 70 1 0 1 1 0 8 0 amappl5 104 291 0 281 1 0 1 1 0 8 0 amappl4 96 2423 0 2395 1 0 1 1 0 8 0 amappl3 88 252 0 247 1 0 1 1 0 8 0 amappl2 80 16857 0 16788 4 2 2 3 0 8 0 amappl1 72 49681 0 49279 28 19 9 20 0 8 0 amappl 80 5268 0 5225 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 87 0 10 2 0 2 2 0 8 0 uaddrrnd 24 2248 0 2220 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2248 0 2220 1 0 1 1 0 8 0 vmmpekpl 168 17472 0 17443 2 0 2 2 0 8 0 vmmpepl 168 271288 0 269222 260 152 108 135 0 357 14 vmsppl 272 2233 0 2220 3 2 1 2 0 8 0 pdppl 4096 4502 0 4468 6 1 5 6 0 8 0 pvpl 32 696500 0 676457 368 104 264 264 0 265 88 pmappl 200 2247 0 2234 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 794 0 244 16 0 16 16 0 8 0