panic: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 946 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *316827 82240 0 0 0x4000000 0 syz-executor.2 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff8275fee9,3b2,ffffffff827780fb) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000265a6170,8,ffff8000265a6238,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff800000cb5200,40004,ffff800000cb5268,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800021b49598,ffff800000cb5200,ffff8000265a6360,1) at in_ifinit+0x3af pppx_add_session(ffff800000d21500,ffff800000e15800) at pppx_add_session+0x34e sys/net/if_pppx.c:731 VOP_IOCTL(fffffd806ea99e90,82907003,ffff800000e15800,1,fffffd807f7d76e8,ffff8000fffe8868) at VOP_IOCTL+0x8d sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806bfcecb0,82907003,ffff800000e15800,ffff8000fffe8868) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff8000fffe8868,ffff8000265a66a8,ffff8000265a66f0) at sys_ioctl+0x49e syscall(ffff8000265a6770) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3aa4b364f50, 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 *cpu0: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 946 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff8275fee9,3b2,ffffffff827780fb) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000265a6170,8,ffff8000265a6238,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff800000cb5200,40004,ffff800000cb5268,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800021b49598,ffff800000cb5200,ffff8000265a6360,1) at in_ifinit+0x3af pppx_add_session(ffff800000d21500,ffff800000e15800) at pppx_add_session+0x34e sys/net/if_pppx.c:731 VOP_IOCTL(fffffd806ea99e90,82907003,ffff800000e15800,1,fffffd807f7d76e8,ffff8000fffe8868) at VOP_IOCTL+0x8d sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806bfcecb0,82907003,ffff800000e15800,ffff8000fffe8868) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff8000fffe8868,ffff8000265a66a8,ffff8000265a66f0) at sys_ioctl+0x49e syscall(ffff8000265a6770) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3aa4b364f50, count: -12 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000265a5fa0 rbx 0x10000 __ALIGN_SIZE+0xf000 rdx 0xffff800000cf6440 rcx 0 rax 0xffff8000fffe8868 r8 0 r9 0x8080808080808080 r10 0x567c64c743d62 r11 0x13cec3f1bc89ecff r12 0 r13 0xffff8000265a6170 r14 0 r15 0x1 rip 0xffffffff81a69eb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000265a5f90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.2) pid=316827 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff8000216f42e8,0xffff8000fffe9610 process=0xffff8000fffea7f0 user=0xffff8000265a1000, vmspace=0xfffffd8069b62c28 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 88555 107779 42362 0 2 0 syz-executor.0 88555 241572 42362 0 3 0x4000080 fsleep syz-executor.0 82240 15583 98470 0 2 0 syz-executor.2 *82240 316827 98470 0 7 0x4000000 syz-executor.2 42362 43400 7067 0 2 0x482 syz-executor.0 7635 260797 7067 0 3 0x82 piperd syz-executor.6 37614 186670 7067 0 2 0x482 syz-executor.4 26787 511351 7067 0 3 0x82 piperd syz-executor.5 14675 329972 7067 0 2 0x2 syz-executor.1 98470 110518 7067 0 2 0x482 syz-executor.2 84711 10823 7067 0 2 0x2 syz-executor.7 52377 77579 0 0 3 0x14280 nfsidl nfsio 23349 103424 0 0 3 0x14280 nfsidl nfsio 24590 478230 0 0 3 0x14280 nfsidl nfsio 71855 495834 0 0 3 0x14280 nfsidl nfsio 93457 194812 0 0 3 0x14280 nfsidl nfsio 51502 466788 0 0 3 0x14280 nfsidl nfsio 40014 257364 0 0 3 0x14280 nfsidl nfsio 95153 204451 0 0 3 0x14280 nfsidl nfsio 45860 496436 0 0 3 0x14280 nfsidl nfsio 57912 477805 0 0 3 0x14280 nfsidl nfsio 52140 69386 0 0 3 0x14280 nfsidl nfsio 97908 94455 0 0 3 0x14280 nfsidl nfsio 30804 214021 0 0 3 0x14280 nfsidl nfsio 64875 260313 0 0 3 0x14280 nfsidl nfsio 42448 377990 0 0 3 0x14280 nfsidl nfsio 33342 349092 0 0 3 0x14280 nfsidl nfsio 33438 503225 0 0 3 0x14280 nfsidl nfsio 59944 250539 0 0 3 0x14280 nfsidl nfsio 35954 57918 0 0 3 0x14280 nfsidl nfsio 25091 473312 0 0 3 0x14280 nfsidl nfsio 76763 166650 0 0 3 0x14200 bored sosplice 7067 26511 44119 0 3 0x82 thrsleep syz-fuzzer 7067 393245 44119 0 2 0x4000482 syz-fuzzer 7067 74522 44119 0 3 0x4000082 kqread syz-fuzzer 7067 342323 44119 0 3 0x4000082 wait syz-fuzzer 7067 416889 44119 0 3 0x4000082 wait syz-fuzzer 7067 35816 44119 0 3 0x4000082 wait syz-fuzzer 7067 116504 44119 0 3 0x4000082 wait syz-fuzzer 7067 49538 44119 0 3 0x4000082 thrsleep syz-fuzzer 7067 397194 44119 0 3 0x4000082 wait syz-fuzzer 7067 205717 44119 0 3 0x4000082 thrsleep syz-fuzzer 7067 275250 44119 0 3 0x4000082 thrsleep syz-fuzzer 7067 523526 44119 0 3 0x4000082 wait syz-fuzzer 7067 511429 44119 0 3 0x4000082 wait syz-fuzzer 7067 342837 44119 0 3 0x4000082 wait syz-fuzzer 44119 48435 69460 0 3 0x10008a sigsusp ksh 69460 86426 75632 0 3 0x9a kqread sshd 12207 164967 1 0 3 0x100083 ttyin getty 75632 282530 1 0 3 0x88 kqread sshd 96763 455251 48199 73 3 0x1100090 kqread syslogd 48199 96399 1 0 3 0x100082 netio syslogd 19774 333010 1 0 2 0x100080 resolvd 62046 485611 35640 77 2 0x100092 dhcpleased 65392 427581 35640 77 3 0x100092 kqread dhcpleased 35640 457497 1 0 3 0x80 kqread dhcpleased 42127 103698 0 0 3 0x14200 bored smr 64415 427412 0 0 2 0x14200 zerothread 84917 444011 0 0 3 0x14200 aiodoned aiodoned 74783 36218 0 0 3 0x14200 syncer update 4834 514258 0 0 3 0x14200 cleaner cleaner 62538 393470 0 0 3 0x14200 reaper reaper 8149 503731 0 0 3 0x14200 pgdaemon pagedaemon 50825 267904 0 0 3 0x14200 bored viomb 53192 100159 0 0 3 0x40014200 acpi0 acpi0 36160 126644 0 0 3 0x14200 bored softnet 59155 218026 0 0 3 0x14200 bored softnet 86313 433552 0 0 3 0x14200 bored softnet 49382 166761 0 0 3 0x14200 bored softnet 75085 509948 0 0 3 0x14200 bored systqmp 12234 228321 0 0 3 0x14200 bored systq 97600 503876 0 0 2 0x40014200 softclock 55042 445915 0 0 3 0x40014200 idle0 1 158456 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 devbuf 10218 6419K 6746K 78643K 15863 0 pcb 13 12K 15K 78643K 912 0 rtable 179 14K 16K 78643K 1140 0 ifaddr 82 22K 23K 78643K 370 0 sysctl 2 0K 0K 78643K 69 0 counters 31 17K 17K 78643K 108 0 ioctlops 1 1K 2K 78643K 238 0 iov 0 0K 16K 78643K 682 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1471 92K 92K 78643K 3472 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 22 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 222 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 13 45K 69K 78643K 3069 0 sigio 0 0K 0K 78643K 56 0 proc 60 59K 75K 78643K 964 0 subproc 104 6K 6K 78643K 312 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 254 0 in_multi 74 5K 7K 78643K 456 0 ether_multi 1 0K 0K 78643K 59 0 mrt 1 0K 0K 78643K 7 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 163 731K 731K 78643K 163 0 exec 0 0K 1K 78643K 1201 0 pfkey data 0 0K 0K 78643K 67 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 272 80K 95K 78643K 20643 0 UVM aobj 131 4K 4K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 452 0 NDP 15 0K 2K 78643K 128 0 temp 141 5770K 7818K 78643K 50040 0 kqueue 12 18K 26K 78643K 269 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 357 0 354 5 4 1 3 0 8 0 rtentry 112 353 0 277 4 0 4 4 0 8 1 unpcb 144 4247 0 4234 23 17 6 6 0 8 5 syncache 296 21 0 21 5 5 0 1 0 8 0 tcpqe 32 141 0 141 5 5 0 1 0 8 0 tcpcb 776 1191 0 1186 30 22 8 8 0 8 7 arp 88 57 0 42 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 36 0 36 1 1 0 1 0 8 0 inpcb 336 3372 0 3361 41 31 10 12 0 8 7 nd6 48 80 0 65 1 0 1 1 0 8 0 pkpcb 40 41 0 41 2 2 0 1 0 8 0 kcovpl 48 24 0 16 1 0 1 1 0 8 0 mppekey 1024 4 0 4 2 2 0 1 0 8 0 ppxss 1160 40 0 38 5 4 1 1 0 8 0 pppxif 1360 13 0 11 5 4 1 1 0 8 0 pfosfp 40 3 0 2 1 0 1 1 0 8 0 pfosfpen 112 3 0 0 1 0 1 1 0 8 0 pfanchor 1280 401 0 207 22 3 19 22 0 8 0 pfqueue 264 11 0 11 3 2 1 1 0 8 1 art_heap8 4096 6 0 5 5 4 1 2 0 8 0 art_heap4 256 1583 0 1209 42 12 30 30 0 8 4 art_table 32 1589 0 1214 4 0 4 4 0 8 0 art_node 16 351 0 285 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 12 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 154 0 144 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 5288 0 3859 90 0 90 90 0 8 0 ffsino 240 5288 0 3859 85 0 85 85 0 8 0 nchpl 144 9175 0 7539 63 1 62 63 0 8 0 rtmask 32 2 0 2 1 0 1 1 0 8 1 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 35736 0 35734 3 2 1 3 0 8 0 vmpool 664 14 0 14 2 1 1 1 0 8 1 kstatmem 264 148 0 118 3 0 3 3 0 8 1 scxspl 216 26986 0 26986 17 16 1 8 0 8 1 plimitpl 152 543 0 528 1 0 1 1 0 8 0 sigapl 424 3432 0 3371 8 0 8 8 0 8 0 futexpl 64 33178 0 33177 1 0 1 1 0 8 0 knotepl 120 48099 0 48021 24 17 7 10 0 8 3 kqueuepl 184 3714 0 3706 29 25 4 7 0 8 3 pipepl 288 913 0 886 19 16 3 8 0 8 0 fdescpl 432 3312 0 3288 4 0 4 4 0 8 0 filepl 120 28347 0 28113 40 26 14 17 0 8 6 lockfpl 104 462 0 460 2 1 1 2 0 8 0 lockfspl 48 203 0 201 1 0 1 1 0 8 0 sessionpl 144 39 0 23 1 0 1 1 0 8 0 pgrppl 48 56 0 40 1 0 1 1 0 8 0 ucredpl 104 2865 0 2854 1 0 1 1 0 8 0 zombiepl 144 3373 0 3371 1 0 1 1 0 8 0 processpl 1008 3432 0 3371 10 1 9 9 0 8 0 procpl 696 7650 0 7574 10 1 9 9 0 8 0 sosppl 168 36 0 36 4 4 0 1 0 8 0 sockpl 456 8025 0 8001 132 116 16 25 0 8 12 mcl64k 65536 156 0 156 4 3 1 1 0 8 1 mcl16k 16384 64 0 64 7 6 1 1 0 8 1 mcl12k 12288 147 0 147 6 5 1 1 0 8 1 mcl9k 9216 61 0 61 4 3 1 1 0 8 1 mcl8k 8192 216 0 216 2 1 1 1 0 8 1 mcl4k 4096 301 0 301 2 1 1 1 0 8 1 mcl2k2 2112 16 0 16 5 4 1 1 0 8 1 mcl2k 2048 81726 0 81593 45 26 19 30 0 8 0 mtagpl 96 549 0 360 10 1 9 9 0 8 1 mbufpl 256 172919 0 172525 440 366 74 132 0 8 26 bufpl 288 8228 0 1834 458 0 458 458 0 8 0 anonpl 24 653527 0 638449 140 24 116 133 0 188 4 amapchunkpl 152 59535 0 58887 62 19 43 43 0 158 15 amappl16 200 7227 0 6634 47 15 32 42 0 8 0 amappl15 192 8 0 7 1 0 1 1 0 8 0 amappl14 184 190 0 180 2 1 1 2 0 8 0 amappl13 176 13 0 11 1 0 1 1 0 8 0 amappl12 168 592 0 588 1 0 1 1 0 8 0 amappl11 160 47 0 36 1 0 1 1 0 8 0 amappl10 152 53 0 44 1 0 1 1 0 8 0 amappl9 144 970 0 969 3 2 1 1 0 8 0 amappl8 136 224 0 166 4 1 3 3 0 8 0 amappl7 128 176 0 152 2 0 2 2 0 8 0 amappl6 120 240 0 225 2 1 1 2 0 8 0 amappl5 112 218 0 212 1 0 1 1 0 8 0 amappl4 104 663 0 638 2 1 1 2 0 8 0 amappl3 96 8771 0 8727 2 0 2 2 0 8 0 amappl2 88 3922 0 3852 3 0 3 3 0 8 0 amappl1 80 75374 0 74718 28 12 16 26 0 8 0 amappl 88 19962 0 19805 6 1 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 3326 0 3302 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3326 0 3302 1 0 1 1 0 8 0 vmmpekpl 168 29653 0 29595 3 0 3 3 0 8 0 vmmpepl 168 311305 0 308827 200 61 139 154 0 357 21 vmsppl 344 3325 0 3302 3 0 3 3 0 8 0 rwobjpl 24 85634 0 77941 48 0 48 48 0 8 0 pdppl 4096 6658 0 6604 280 218 62 66 0 8 8 pvpl 32 1361125 0 1340956 360 160 200 360 0 265 7 pmappl 216 3325 0 3302 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1536 0 694 26 0 26 26 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff8275fee9,3b2,ffffffff827780fb) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000265a6170,8,ffff8000265a6238,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff800000cb5200,40004,ffff800000cb5268,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800021b49598,ffff800000cb5200,ffff8000265a6360,1) at in_ifinit+0x3af pppx_add_session(ffff800000d21500,ffff800000e15800) at pppx_add_session+0x34e sys/net/if_pppx.c:731 VOP_IOCTL(fffffd806ea99e90,82907003,ffff800000e15800,1,fffffd807f7d76e8,ffff8000fffe8868) at VOP_IOCTL+0x8d sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806bfcecb0,82907003,ffff800000e15800,ffff8000fffe8868) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff8000fffe8868,ffff8000265a66a8,ffff8000265a66f0) at sys_ioctl+0x49e syscall(ffff8000265a6770) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3aa4b364f50, count: -12 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff8275fee9,3b2,ffffffff827780fb) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000265a6170,8,ffff8000265a6238,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff800000cb5200,40004,ffff800000cb5268,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800021b49598,ffff800000cb5200,ffff8000265a6360,1) at in_ifinit+0x3af pppx_add_session(ffff800000d21500,ffff800000e15800) at pppx_add_session+0x34e sys/net/if_pppx.c:731 VOP_IOCTL(fffffd806ea99e90,82907003,ffff800000e15800,1,fffffd807f7d76e8,ffff8000fffe8868) at VOP_IOCTL+0x8d sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806bfcecb0,82907003,ffff800000e15800,ffff8000fffe8868) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff8000fffe8868,ffff8000265a66a8,ffff8000265a66f0) at sys_ioctl+0x49e syscall(ffff8000265a6770) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3aa4b364f50, count: -12