panic: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 951 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 516706 62448 0 0 0 1 syz-executor.0 * 24038 62448 0 0 0x4000000 0K 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(ffffffff82247364,ffffffff82211cdb,3b7,ffffffff82227d83) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023992eb8,4,ffff800023992f88,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ad9c00,840100,ffff800000ad9c58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a67000,ffff800000ad9c00,ffff800023993260,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a67000,ffff800000ad9c00,ffff800023993260,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800023993250,ffff800000a67000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023993250,ffff800000a67000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80634017f0,8020690c,ffff800023993250,ffff800020abf3d8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abf3d8,ffff800023993368,ffff8000239933b0) at sys_ioctl+0x5b9 syscall(ffff800023993430) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023993430) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,fedd88af1b0) at Xsyscall+0x128 end of kernel end trace frame: 0xff07a0f0c30, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 951 ddb{0}> 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(ffffffff82247364,ffffffff82211cdb,3b7,ffffffff82227d83) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023992eb8,4,ffff800023992f88,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ad9c00,840100,ffff800000ad9c58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a67000,ffff800000ad9c00,ffff800023993260,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a67000,ffff800000ad9c00,ffff800023993260,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800023993250,ffff800000a67000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023993250,ffff800000a67000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80634017f0,8020690c,ffff800023993250,ffff800020abf3d8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abf3d8,ffff800023993368,ffff8000239933b0) at sys_ioctl+0x5b9 syscall(ffff800023993430) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023993430) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,fedd88af1b0) at Xsyscall+0x128 end of kernel end trace frame: 0xff07a0f0c30, count: -12 ddb{0}> show registers rdi 0xffffffff813dc987 db_enter+0x17 rsi 0x3a94 __ALIGN_SIZE+0x2a94 rbp 0xffff800023992cd0 rbx 0xffff800023992d80 rdx 0x3a95 __ALIGN_SIZE+0x2a95 rcx 0xffff800023b9e000 rax 0xffff800023b9e000 r8 0xffffffff8207ddaf kprintf+0x16f r9 0x1 r10 0x25 r11 0x8a03b4cec998da54 r12 0x3000000008 r13 0xffff800023992ce0 r14 0x100 r15 0x1 rip 0xffffffff813dc988 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023992cc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=24038 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe9f8,0xffffffff826293f8 process=0xffff800020add500 user=0xffff80002398e000, vmspace=0xfffffd807f00a000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 62448 516706 82760 0 7 0 syz-executor.0 62448 500088 82760 0 3 0x4000080 fsleep syz-executor.0 62448 222269 82760 0 3 0x4000080 fsleep syz-executor.0 *62448 24038 82760 0 7 0x4000000 syz-executor.0 82760 359631 79572 0 3 0x82 nanosleep syz-executor.0 76933 62864 79572 0 3 0x82 nanosleep syz-executor.1 51965 161600 0 0 3 0x14200 acct acct 63772 264975 0 0 3 0x14200 bored sosplice 79572 454289 49488 0 3 0x82 thrsleep syz-fuzzer 79572 450281 49488 0 3 0x4000082 thrsleep syz-fuzzer 79572 467766 49488 0 3 0x4000082 thrsleep syz-fuzzer 79572 85198 49488 0 3 0x4000082 thrsleep syz-fuzzer 79572 366976 49488 0 3 0x4000082 thrsleep syz-fuzzer 79572 317679 49488 0 3 0x4000082 thrsleep syz-fuzzer 79572 510955 49488 0 3 0x4000082 thrsleep syz-fuzzer 79572 33734 49488 0 3 0x4000082 thrsleep syz-fuzzer 79572 208806 49488 0 3 0x4000082 kqread syz-fuzzer 79572 44898 49488 0 3 0x4000082 thrsleep syz-fuzzer 49488 308104 3965 0 3 0x10008a pause ksh 3965 233512 50445 0 3 0x92 select sshd 30107 443452 1 0 3 0x100083 ttyin getty 50445 495886 1 0 3 0x80 select sshd 47022 129614 24791 74 3 0x100092 bpf pflogd 24791 315552 1 0 3 0x80 netio pflogd 29067 499292 59439 73 3 0x100090 kqread syslogd 59439 49559 1 0 3 0x100082 netio syslogd 90278 388725 1 77 3 0x100090 poll dhclient 91387 166284 1 0 3 0x80 poll dhclient 31262 136113 0 0 3 0x14200 pgzero zerothread 46516 276542 0 0 3 0x14200 aiodoned aiodoned 69878 417074 0 0 3 0x14200 syncer update 19323 78039 0 0 3 0x14200 cleaner cleaner 60264 165148 0 0 3 0x14200 reaper reaper 21994 1145 0 0 3 0x14200 pgdaemon pagedaemon 82815 288705 0 0 3 0x14200 bored crynlk 81097 27491 0 0 3 0x14200 bored crypto 5068 137222 0 0 3 0x40014200 acpi0 acpi0 48509 231714 0 0 3 0x40014200 idle1 36816 368891 0 0 3 0x14200 bored softnet 54740 385343 0 0 2 0x14200 systqmp 60582 214550 0 0 3 0x14200 bored systq 26560 100699 0 0 3 0x40014200 bored softclock 52286 430616 0 0 3 0x40014200 idle0 17303 122383 0 0 3 0x14200 bored smr 1 67105 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 62448 (syz-executor.0) thread 0xffff800020abf3d8 (24038) exclusive rwlock netlock r = 0 (0xffffffff824ee388) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl_sifaddr+0x69 #2 in_ioctl+0x1e7 sys/netinet/in.c:231 #3 ifioctl+0xb64 sys/net/if.c:2202 #4 sys_ioctl+0x5b9 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82676880) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9653 6623K 7582K 78643K 24421 0 0 pcb 13 12K 14K 78643K 1015 0 0 rtable 132 13K 14K 78643K 3758 0 0 ifaddr 101 26K 29K 78643K 1231 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1630 0 0 iov 0 0K 44K 78643K 992 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1205 76K 77K 78643K 6098 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 57 0 0 VM map 2 1K 1K 78643K 41 0 0 sem 12 0K 0K 78643K 922 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 5779 0 0 sigio 0 0K 0K 78643K 64 0 0 proc 62 63K 83K 78643K 2117 0 0 subproc 32 2K 2K 78643K 527 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 373 0 0 in_multi 35 2K 2K 78643K 644 0 0 ether_multi 1 0K 0K 78643K 65 0 0 mrt 0 0K 0K 78643K 35 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 168 742K 742K 78643K 168 0 0 exec 0 0K 1K 78643K 1005 0 0 pfkey data 0 0K 4K 78643K 2 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 133 23K 33K 78643K 20553 0 0 UVM aobj 130 4K 4K 78643K 133 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 1127 0 0 NDP 24 0K 1K 78643K 383 0 0 temp 256 3561K 3641K 78643K 112051 0 0 kqueue 0 0K 0K 78643K 46 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 128 0 122 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 350 0 348 1 0 1 1 0 8 0 rtentry 112 563 0 513 2 0 2 2 0 8 0 unpcb 120 2686 0 2674 3 1 2 2 0 8 1 syncache 264 29 0 29 13 13 0 1 0 8 0 tcpqe 32 6536 0 6536 2 2 0 1 0 8 0 tcpcb 544 2027 0 2022 15 14 1 11 0 8 0 inpcb 280 6670 0 6658 29 27 2 13 0 8 0 rttmr 72 12 0 11 3 2 1 1 0 8 0 nd6 48 71 0 67 2 1 1 1 0 8 0 pkpcb 40 19 0 19 7 7 0 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 170 0 170 10 10 0 1 0 8 0 pffrag 232 424 0 424 23 22 1 14 0 482 1 pffrnode 88 139 0 139 10 9 1 1 0 8 1 pffrent 40 1806 0 1806 14 13 1 5 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 376 0 307 1 0 1 1 0 8 0 pfstkey 112 377 0 308 3 0 3 3 0 8 1 pfstate 328 377 0 308 8 0 8 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 9 0 8 5 4 1 3 0 8 0 art_heap4 256 2228 0 1940 32 13 19 19 0 8 0 art_table 32 2237 0 1948 5 2 3 3 0 8 0 art_node 16 554 0 508 1 0 1 1 0 8 0 sysvmsgpl 40 50 0 14 1 0 1 1 0 8 0 semapl 112 920 0 910 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 dino1pl 128 9956 0 8534 46 0 46 46 0 8 0 ffsino 272 9956 0 8534 97 1 96 96 0 8 0 nchpl 144 20955 0 20434 61 39 22 61 0 8 0 uvmvnodes 72 6228 0 0 114 0 114 114 0 8 0 vnodes 208 6228 0 0 328 0 328 328 0 8 0 namei 1024 71170 0 71170 5 4 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 39 0 39 11 10 1 1 0 8 1 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 57675 0 57675 37 36 1 7 0 8 1 plimitpl 152 448 0 440 1 0 1 1 0 8 0 sigapl 432 5892 0 5877 3 1 2 3 0 8 0 futexpl 56 120590 0 120588 2 1 1 1 0 8 0 knotepl 112 1293 0 1274 1 0 1 1 0 8 0 kqueuepl 104 2214 0 2212 4 3 1 4 0 8 0 pipepl 112 3182 0 3163 9 7 2 2 0 8 1 fdescpl 488 5893 0 5877 3 0 3 3 0 8 0 filepl 152 50301 0 50198 44 35 9 14 0 8 4 lockfpl 104 1688 0 1687 1 0 1 1 0 8 0 lockfspl 48 590 0 589 1 0 1 1 0 8 0 sessionpl 112 47 0 36 1 0 1 1 0 8 0 pgrppl 48 1235 0 1224 1 0 1 1 0 8 0 ucredpl 96 6921 0 6911 1 0 1 1 0 8 0 zombiepl 144 5889 0 5888 3 2 1 1 0 8 0 processpl 896 5922 0 5888 4 0 4 4 0 8 0 procpl 632 18284 0 18238 6 1 5 5 0 8 1 srpgc 64 44 0 44 17 17 0 1 0 8 0 sosppl 128 55 0 55 14 13 1 1 0 8 1 sockpl 384 9831 0 9807 57 50 7 22 0 8 4 mcl64k 65536 409 0 0 47 13 34 35 0 8 0 mcl16k 16384 24 0 0 3 1 2 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 30 0 0 4 1 3 3 0 8 0 mcl4k 4096 60 0 0 8 4 4 8 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 437 0 0 44 1 43 43 0 8 0 mtagpl 80 78 0 0 1 0 1 1 0 8 0 mbufpl 256 2489 0 0 144 0 144 144 0 8 0 bufpl 256 21806 0 14758 441 0 441 441 0 8 0 anonpl 16 641241 0 624542 179 103 76 84 0 124 5 amapchunkpl 152 39830 0 39692 75 64 11 13 0 158 4 amappl16 192 30529 0 29595 152 103 49 60 0 8 0 amappl15 184 1979 0 1979 3 3 0 1 0 8 0 amappl14 176 1083 0 1075 2 1 1 1 0 8 0 amappl13 168 197 0 196 3 2 1 1 0 8 0 amappl12 160 869 0 869 5 5 0 1 0 8 0 amappl11 152 545 0 530 1 0 1 1 0 8 0 amappl10 144 876 0 870 1 0 1 1 0 8 0 amappl9 136 1401 0 1392 1 0 1 1 0 8 0 amappl8 128 985 0 937 3 1 2 2 0 8 0 amappl7 120 1002 0 993 1 0 1 1 0 8 0 amappl6 112 521 0 509 1 0 1 1 0 8 0 amappl5 104 1253 0 1238 1 0 1 1 0 8 0 amappl4 96 5451 0 5420 1 0 1 1 0 8 0 amappl3 88 1852 0 1846 1 0 1 1 0 8 0 amappl2 80 45932 0 45856 3 1 2 3 0 8 0 amappl1 72 140899 0 140456 26 16 10 20 0 8 0 amappl 80 19047 0 19001 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 132 0 3 3 0 3 3 0 8 0 uaddrrnd 24 5932 0 5877 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5932 0 5877 1 0 1 1 0 8 0 vmmpekpl 168 49052 0 49021 2 0 2 2 0 8 0 vmmpepl 168 743471 0 741359 288 159 129 144 0 357 27 vmsppl 368 5892 0 5877 2 0 2 2 0 8 0 pdppl 4096 11871 0 11832 8 2 6 6 0 8 0 pvpl 32 1682403 0 1662399 389 206 183 198 0 265 16 pmappl 232 5931 0 5916 13 11 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 862 0 61 24 1 23 24 0 8 0