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 *407544 16218 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(ffffffff821deec1,ffffffff821b187e,3b7,ffffffff821c1995) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff80001591b938,4,ffff80001591ba08,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000adcf00,840100,ffff800000adcf58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000ae2000,ffff800000adcf00,ffff80001591bd10,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000ae2000,ffff800000adcf00,ffff80001591bd10,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff80001591bd00,ffff800000ae2000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff80001591bd00,ffff800000ae2000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd803d77aa90,8040691a,ffff80001591bd00,ffff8000149153d8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000149153d8,ffff80001591be18,ffff80001591be60) at sys_ioctl+0x5b9 syscall(ffff80001591bee0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,419de714010) at Xsyscall+0x128 end of kernel end trace frame: 0x41c11e5d4f0, 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(ffffffff821deec1,ffffffff821b187e,3b7,ffffffff821c1995) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff80001591b938,4,ffff80001591ba08,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000adcf00,840100,ffff800000adcf58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000ae2000,ffff800000adcf00,ffff80001591bd10,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000ae2000,ffff800000adcf00,ffff80001591bd10,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff80001591bd00,ffff800000ae2000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff80001591bd00,ffff800000ae2000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd803d77aa90,8040691a,ffff80001591bd00,ffff8000149153d8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000149153d8,ffff80001591be18,ffff80001591be60) at sys_ioctl+0x5b9 syscall(ffff80001591bee0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,419de714010) at Xsyscall+0x128 end of kernel end trace frame: 0x41c11e5d4f0, count: -12 ddb> show registers rdi 0xffffffff81b354a7 db_enter+0x17 rsi 0x3f69 __ALIGN_SIZE+0x2f69 rbp 0xffff80001591b750 rbx 0xffff80001591b800 rdx 0x3f6a __ALIGN_SIZE+0x2f6a rcx 0xffff800017783000 rax 0xffff800017783000 r8 0xffff80001591b710 r9 0x1 r10 0xffff800000a64780 r11 0xd8ccf55082ec2fa r12 0x3000000008 r13 0xffff80001591b760 r14 0x100 r15 0x1 rip 0xffffffff81b354a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001591b740 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=407544 stat=onproc flags process=0 proc=4000000 pri=83, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff800014914c70,0xffffffff82589c90 process=0xffff8000148a2018 user=0xffff800015916000, vmspace=0xfffffd803f013cc0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 16218 13015 6590 0 2 0 syz-executor.0 *16218 407544 6590 0 7 0x4000000 syz-executor.0 79765 478503 83900 0 2 0x2 syz-executor.1 6590 165825 83900 0 2 0x482 syz-executor.0 93023 285906 0 0 3 0x14200 acct acct 78825 208813 1 0 3 0x100083 ttyin getty 19731 364539 0 0 3 0x14200 bored sosplice 83900 121525 8936 0 3 0x82 thrsleep syz-fuzzer 83900 440564 8936 0 2 0x4000482 syz-fuzzer 83900 152386 8936 0 3 0x4000082 thrsleep syz-fuzzer 83900 158630 8936 0 3 0x4000082 thrsleep syz-fuzzer 83900 487916 8936 0 3 0x4000082 kqread syz-fuzzer 83900 51315 8936 0 3 0x4000082 thrsleep syz-fuzzer 83900 503929 8936 0 3 0x4000082 thrsleep syz-fuzzer 83900 125309 8936 0 3 0x4000082 thrsleep syz-fuzzer 8936 511464 20954 0 3 0x10008a pause ksh 20954 136391 23505 0 3 0x92 select sshd 23505 492049 1 0 3 0x80 select sshd 65159 8237 27014 73 3 0x100090 kqread syslogd 27014 176846 1 0 3 0x100082 netio syslogd 66322 451959 1 77 3 0x100090 poll dhclient 63439 165335 1 0 3 0x80 poll dhclient 53583 483488 0 0 2 0x14200 zerothread 42613 493526 0 0 3 0x14200 aiodoned aiodoned 28882 355949 0 0 3 0x14200 syncer update 81579 201468 0 0 3 0x14200 cleaner cleaner 90016 13808 0 0 3 0x14200 reaper reaper 4444 367712 0 0 3 0x14200 pgdaemon pagedaemon 92165 56535 0 0 3 0x14200 bored crynlk 12556 6716 0 0 3 0x14200 bored crypto 73553 255165 0 0 3 0x40014200 acpi0 acpi0 51078 170841 0 0 3 0x14200 bored softnet 92130 81098 0 0 3 0x14200 bored systqmp 28382 322074 0 0 3 0x14200 bored systq 7368 269076 0 0 3 0x40014200 bored softclock 80066 183284 0 0 3 0x40014200 idle0 50307 447158 0 0 3 0x14200 bored smr 1 266127 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 9568 6369K 6732K 78643K 20166 0 0 pcb 13 8K 8K 78643K 1360 0 0 rtable 122 8K 8K 78643K 2467 0 0 ifaddr 83 20K 22K 78643K 636 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 198 0 0 iov 0 0K 28K 78643K 629 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1214 76K 77K 78643K 7703 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 75 0 0 VM map 2 0K 0K 78643K 4 0 0 sem 12 0K 0K 78643K 1344 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 7909 0 0 sigio 0 0K 0K 78643K 40 0 0 proc 50 38K 63K 78643K 1652 0 0 subproc 32 2K 2K 78643K 425 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 553 0 0 in_multi 35 2K 2K 78643K 582 0 0 ether_multi 1 0K 0K 78643K 13 0 0 mrt 1 0K 0K 78643K 17 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 1912 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 108 22K 32K 78643K 21381 0 0 UVM aobj 130 4K 4K 78643K 134 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 1265 0 0 NDP 18 0K 1K 78643K 205 0 0 temp 212 3536K 3612K 78643K 88665 0 0 kqueue 0 0K 0K 78643K 33 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 53 0 45 1 0 1 1 0 8 0 rtpcb 80 568 0 566 1 0 1 1 0 8 0 rtentry 112 449 0 401 2 0 2 2 0 8 0 unpcb 120 5848 0 5825 21 19 2 3 0 8 1 syncache 264 17 0 17 8 7 1 1 0 8 1 tcpqe 32 5176 0 5176 5 4 1 1 0 8 1 tcpcb 544 1720 0 1715 1 0 1 1 0 8 0 ipq 40 10 0 10 5 5 0 1 0 8 0 ipqe 40 22 0 22 5 5 0 1 0 8 0 inpcb 280 5935 0 5927 9 8 1 2 0 8 0 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 50 0 46 1 0 1 1 0 8 0 pkpcb 40 40 0 40 13 12 1 1 0 8 1 ppxss 1128 76 0 76 16 15 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1275 0 1048 29 14 15 15 0 8 0 art_table 32 1276 0 1048 2 0 2 2 0 8 0 art_node 16 287 0 244 1 0 1 1 0 8 0 sysvmsgpl 40 124 0 92 1 0 1 1 0 8 0 semupl 112 7 0 7 1 1 0 1 0 8 0 semapl 112 1342 0 1332 1 0 1 1 0 8 0 shmpl 112 132 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 16935 0 15534 46 0 46 46 0 8 0 ffsino 240 16935 0 15534 83 0 83 83 0 8 0 nchpl 144 28702 0 27091 62 0 62 62 0 8 0 uvmvnodes 72 8050 0 0 147 0 147 147 0 8 0 vnodes 208 8050 0 0 424 0 424 424 0 8 0 namei 1024 177441 0 177440 6 5 1 1 0 8 0 vmpool 520 2 0 2 1 1 0 1 0 8 0 scsiplug 64 8 0 8 7 6 1 1 0 8 1 scxspl 192 89106 0 89106 24 22 2 7 0 8 2 plimitpl 152 469 0 462 1 0 1 1 0 8 0 sigapl 432 8012 0 7999 2 0 2 2 0 8 0 futexpl 56 307763 0 307763 5 4 1 1 0 8 1 knotepl 112 1202 0 1183 5 4 1 3 0 8 0 kqueuepl 104 1240 0 1238 1 0 1 1 0 8 0 pipepl 112 3034 0 3015 13 12 1 2 0 8 0 fdescpl 424 8013 0 7999 2 0 2 2 0 8 0 filepl 120 123521 0 123425 23 19 4 6 0 8 1 lockfpl 104 2358 0 2357 1 0 1 1 0 8 0 lockfspl 48 916 0 915 1 0 1 1 0 8 0 sessionpl 112 41 0 31 1 0 1 1 0 8 0 pgrppl 48 75 0 65 1 0 1 1 0 8 0 ucredpl 96 79135 0 79128 1 0 1 1 0 8 0 zombiepl 144 8001 0 8001 3 2 1 1 0 8 1 processpl 864 8031 0 8001 4 0 4 4 0 8 0 procpl 632 19574 0 19536 6 2 4 5 0 8 0 sosppl 128 56 0 56 15 15 0 1 0 8 0 sockpl 384 12436 0 12403 60 54 6 10 0 8 2 mcl64k 65536 936 0 935 78 77 1 33 0 8 0 mcl16k 16384 99 0 99 22 21 1 1 0 8 1 mcl12k 12288 183 0 183 17 16 1 1 0 8 1 mcl9k 9216 74 0 74 23 22 1 1 0 8 1 mcl8k 8192 663 0 663 7 6 1 1 0 8 1 mcl4k 4096 2290 0 2290 5 4 1 1 0 8 1 mcl2k2 2112 88 0 88 20 20 0 1 0 8 0 mcl2k 2048 69412 0 69371 37 31 6 13 0 8 0 mtagpl 80 47 0 47 3 3 0 1 0 8 0 mbufpl 256 170715 0 170590 46 34 12 24 0 8 0 bufpl 256 31138 0 22219 558 0 558 558 0 8 0 anonpl 16 705214 0 691078 170 96 74 77 0 62 12 amapchunkpl 152 38604 0 38497 62 55 7 15 0 158 0 amappl16 192 39969 0 39156 173 124 49 54 0 8 8 amappl15 184 795 0 795 7 7 0 1 0 8 0 amappl14 176 470 0 466 2 1 1 1 0 8 0 amappl13 168 621 0 621 4 4 0 1 0 8 0 amappl12 160 1578 0 1574 2 1 1 1 0 8 0 amappl11 152 1356 0 1345 1 0 1 1 0 8 0 amappl10 144 159 0 155 1 0 1 1 0 8 0 amappl9 136 3443 0 3436 1 0 1 1 0 8 0 amappl8 128 2976 0 2943 2 0 2 2 0 8 0 amappl7 120 272 0 264 1 0 1 1 0 8 0 amappl6 112 1304 0 1292 1 0 1 1 0 8 0 amappl5 104 1987 0 1976 1 0 1 1 0 8 0 amappl4 96 7765 0 7736 1 0 1 1 0 8 0 amappl3 88 1561 0 1555 1 0 1 1 0 8 0 amappl2 80 63024 0 62958 4 2 2 3 0 8 0 amappl1 72 157567 0 157161 28 19 9 20 0 8 0 amappl 80 20176 0 20140 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 133 0 4 3 0 3 3 0 8 0 uaddrrnd 24 8015 0 7999 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8015 0 7999 1 0 1 1 0 8 0 vmmpekpl 168 52618 0 52590 2 0 2 2 0 8 0 vmmpepl 168 946497 0 944622 380 270 110 118 0 357 20 vmsppl 272 8012 0 7999 4 3 1 2 0 8 0 pdppl 4096 16036 0 16002 6 1 5 6 0 8 0 pvpl 32 2055364 0 2038063 564 298 266 293 0 265 118 pmappl 200 8014 0 8001 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 888 0 198 20 0 20 20 0 8 0