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 *378060 51591 0 0 0x4000000 1K syz-executor.0 520751 64874 0 0 0 0 dhclient 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(ffffffff82206836,ffffffff821d2b89,3b7,ffffffff821e91c5) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022d72a88,4,ffff800022d72b58,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b95700,840100,ffff800000b95758,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b64000,ffff800000b95700,ffff800022d72e30,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b64000,ffff800000b95700,ffff800022d72e30,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800022d72e20,ffff800000b64000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800022d72e20,ffff800000b64000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8062ffb368,8020690c,ffff800022d72e20,ffff800020ace530) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ace530,ffff800022d72f38,ffff800022d72f80) at sys_ioctl+0x5b9 syscall(ffff800022d73000) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d73000) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,c8b16f43010) at Xsyscall+0x128 end of kernel end trace frame: 0xc8d65b0c800, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 951 ddb{1}> 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(ffffffff82206836,ffffffff821d2b89,3b7,ffffffff821e91c5) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022d72a88,4,ffff800022d72b58,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b95700,840100,ffff800000b95758,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b64000,ffff800000b95700,ffff800022d72e30,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b64000,ffff800000b95700,ffff800022d72e30,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800022d72e20,ffff800000b64000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800022d72e20,ffff800000b64000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8062ffb368,8020690c,ffff800022d72e20,ffff800020ace530) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ace530,ffff800022d72f38,ffff800022d72f80) at sys_ioctl+0x5b9 syscall(ffff800022d73000) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d73000) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,c8b16f43010) at Xsyscall+0x128 end of kernel end trace frame: 0xc8d65b0c800, count: -12 ddb{1}> show registers rdi 0xffffffff816bc497 db_enter+0x17 rsi 0x4625 __ALIGN_SIZE+0x3625 rbp 0xffff800022d728a0 rbx 0xffff800022d72950 rdx 0x4626 __ALIGN_SIZE+0x3626 rcx 0xffff800020b54000 rax 0xffff800020b54000 r8 0xffffffff81241baf kprintf+0x16f r9 0x1 r10 0x25 r11 0xc4b75b57bdca7b98 r12 0x3000000008 r13 0xffff800022d728b0 r14 0x100 r15 0x1 rip 0xffffffff816bc498 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d72890 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=378060 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020acec98,0xffffffff8263b528 process=0xffff800020add880 user=0xffff800022d6e000, vmspace=0xfffffd807f00ba10 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 51591 144483 10912 0 2 0 syz-executor.0 *51591 378060 10912 0 7 0x4000000 syz-executor.0 77290 190219 83083 0 2 0 syz-executor.1 77290 448866 83083 0 3 0x4000080 nanosleep syz-executor.1 83083 501197 25089 0 3 0x82 nanosleep syz-executor.1 10912 283462 25089 0 3 0x82 nanosleep syz-executor.0 64664 129176 1 0 3 0x100083 ttyin getty 21475 317718 0 0 3 0x14200 bored sosplice 25089 408297 90731 0 3 0x82 thrsleep syz-fuzzer 25089 236960 90731 0 3 0x4000082 thrsleep syz-fuzzer 25089 10049 90731 0 3 0x4000082 thrsleep syz-fuzzer 25089 453758 90731 0 3 0x4000082 thrsleep syz-fuzzer 25089 439662 90731 0 3 0x4000082 thrsleep syz-fuzzer 25089 329598 90731 0 3 0x4000082 thrsleep syz-fuzzer 25089 468570 90731 0 3 0x4000082 thrsleep syz-fuzzer 25089 498144 90731 0 3 0x4000082 thrsleep syz-fuzzer 25089 269746 90731 0 3 0x4000082 thrsleep syz-fuzzer 25089 70275 90731 0 3 0x4000082 kqread syz-fuzzer 90731 466317 50030 0 3 0x10008a pause ksh 50030 121470 67067 0 3 0x92 select sshd 67067 11797 1 0 3 0x80 select sshd 11051 53463 75952 74 3 0x100092 bpf pflogd 75952 204917 1 0 3 0x80 netio pflogd 27414 359413 88012 73 3 0x100090 kqread syslogd 88012 163049 1 0 3 0x100082 netio syslogd 79713 393895 1 77 3 0x100090 poll dhclient 64874 520751 1 0 7 0 dhclient 56371 102519 0 0 2 0x14200 zerothread 54506 43593 0 0 3 0x14200 aiodoned aiodoned 19621 96461 0 0 3 0x14200 syncer update 27917 383917 0 0 3 0x14200 cleaner cleaner 32677 245674 0 0 3 0x14200 reaper reaper 24481 326223 0 0 3 0x14200 pgdaemon pagedaemon 81710 217002 0 0 3 0x14200 bored crynlk 27328 162643 0 0 3 0x14200 bored crypto 9167 24519 0 0 3 0x40014200 acpi0 acpi0 42935 443691 0 0 3 0x40014200 idle1 39984 441182 0 0 3 0x14200 bored softnet 84903 446688 0 0 2 0x14200 systqmp 69698 48479 0 0 3 0x14200 bored systq 52376 260943 0 0 3 0x40014200 bored softclock 34471 201355 0 0 3 0x40014200 idle0 27260 268258 0 0 3 0x14200 bored smr 1 110694 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 51591 (syz-executor.0) thread 0xffff800020ace530 (378060) exclusive rwlock netlock r = 0 (0xffffffff8251b098) #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 (0xffffffff8263e610) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9655 6488K 8483K 78643K 62099 0 0 pcb 13 12K 14K 78643K 2952 0 0 rtable 133 14K 14K 78643K 10120 0 0 ifaddr 108 31K 37K 78643K 3544 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2309 0 0 iov 0 0K 32K 78643K 3498 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1216 76K 78K 78643K 19475 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 149 0 0 VM map 2 1K 1K 78643K 82 0 0 sem 12 0K 1K 78643K 2812 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 16307 0 0 sigio 0 0K 0K 78643K 105 0 0 proc 62 63K 95K 78643K 5941 0 0 subproc 32 2K 2K 78643K 1496 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 1102 0 0 in_multi 30 1K 2K 78643K 1614 0 0 ether_multi 1 0K 0K 78643K 97 0 0 mrt 0 0K 0K 78643K 75 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 204 901K 901K 78643K 204 0 0 exec 0 0K 1K 78643K 2946 0 0 pfkey data 0 0K 4K 78643K 6 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 172 26K 35K 78643K 57288 0 0 UVM aobj 130 6K 6K 78643K 143 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 3377 0 0 NDP 27 1K 1K 78643K 1088 0 0 temp 264 3561K 4203K 78643K 626124 0 0 kqueue 0 0K 0K 78643K 94 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 304 0 296 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1207 0 1205 1 0 1 1 0 8 0 rtentry 112 1460 0 1412 2 0 2 2 0 8 0 unpcb 120 7140 0 7115 23 21 2 2 0 8 1 syncache 264 84 0 84 38 37 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 5737 0 5737 2 2 0 1 0 8 0 tcpcb 544 6048 0 6042 50 49 1 13 0 8 0 inpcb 280 17466 0 17451 65 63 2 13 0 8 0 rttmr 72 18 0 17 5 4 1 1 0 8 0 ip6q 72 2 0 2 2 2 0 1 0 8 0 ip6af 40 1 0 1 1 1 0 1 0 8 0 nd6 48 214 0 212 6 5 1 1 0 8 0 pkpcb 40 74 0 74 25 25 0 1 0 8 0 swfcl 56 5 0 0 1 0 1 1 0 8 0 ppxss 1128 598 0 598 23 22 1 1 0 8 1 pffrag 232 117 0 117 44 43 1 1 0 482 1 pffrnode 88 117 0 117 44 43 1 1 0 8 1 pffrent 40 272 0 272 45 44 1 1 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 924 0 865 1 0 1 1 0 8 0 pfstkey 112 925 0 866 4 2 2 3 0 8 0 pfstate 328 925 0 866 10 4 6 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 22 0 20 13 11 2 4 0 8 0 art_heap4 256 6399 0 6095 79 58 21 24 0 8 1 art_table 32 6421 0 6115 6 3 3 4 0 8 0 art_node 16 1438 0 1394 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 6 2 1 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 2806 0 2796 1 0 1 1 0 8 0 shmpl 112 141 0 13 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 27822 0 26340 50 2 48 48 0 8 0 ffsino 272 27822 0 26340 102 2 100 100 0 8 0 nchpl 144 52050 0 51556 61 39 22 61 0 8 0 uvmvnodes 72 9003 0 0 164 0 164 164 0 8 0 vnodes 208 9003 0 0 474 0 474 474 0 8 0 namei 1024 203931 0 203931 6 5 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 80 0 80 29 29 0 1 0 8 0 scsiplug 64 21 0 21 12 12 0 1 0 8 0 scxspl 192 166997 0 166996 99 98 1 7 0 8 0 plimitpl 152 1436 0 1428 1 0 1 1 0 8 0 sigapl 432 16250 0 16234 3 1 2 3 0 8 0 futexpl 56 349378 0 349378 4 3 1 1 0 8 1 knotepl 112 4042 0 4023 10 9 1 3 0 8 0 kqueuepl 104 4422 0 4420 14 13 1 4 0 8 0 pipepl 112 32456 0 32437 48 47 1 2 0 8 0 fdescpl 488 16251 0 16234 3 0 3 3 0 8 0 filepl 152 162023 0 161919 101 95 6 14 0 8 2 lockfpl 104 5548 0 5547 1 0 1 1 0 8 0 lockfspl 48 1842 0 1841 1 0 1 1 0 8 0 sessionpl 112 105 0 94 1 0 1 1 0 8 0 pgrppl 48 259 0 248 1 0 1 1 0 8 0 ucredpl 96 27714 0 27704 1 0 1 1 0 8 0 zombiepl 144 16246 0 16246 4 3 1 1 0 8 1 processpl 896 16279 0 16246 4 0 4 4 0 8 0 procpl 632 52065 0 52021 9 4 5 5 0 8 0 srpgc 64 128 0 128 38 38 0 1 0 8 0 sosppl 128 278 0 278 40 39 1 1 0 8 1 sockpl 384 26045 0 26007 136 127 9 22 0 8 4 mcl64k 65536 761 0 0 82 77 5 65 0 8 0 mcl16k 16384 33 0 0 4 1 3 3 0 8 1 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 45 0 0 3 2 1 2 0 8 0 mcl8k 8192 41 0 0 6 3 3 3 0 8 0 mcl4k 4096 35 0 0 4 2 2 3 0 8 0 mcl2k2 2112 16 0 0 2 0 2 2 0 8 0 mcl2k 2048 222 0 0 22 6 16 22 0 8 0 mtagpl 80 168 0 0 2 1 1 2 0 8 0 mbufpl 256 1090 0 0 36 18 18 36 0 8 0 bufpl 256 57263 0 47694 599 0 599 599 0 8 0 anonpl 16 1759261 0 1744979 350 267 83 86 0 124 7 amapchunkpl 152 116179 0 116043 171 161 10 20 0 158 2 amappl16 192 81970 0 81026 429 373 56 60 0 8 8 amappl15 184 1630 0 1629 1 0 1 1 0 8 0 amappl14 176 4786 0 4783 2 1 1 1 0 8 0 amappl13 168 2709 0 2707 13 12 1 1 0 8 0 amappl12 160 2292 0 2289 1 0 1 1 0 8 0 amappl11 152 1835 0 1820 1 0 1 1 0 8 0 amappl10 144 985 0 979 1 0 1 1 0 8 0 amappl9 136 3636 0 3627 1 0 1 1 0 8 0 amappl8 128 3298 0 3224 4 1 3 3 0 8 0 amappl7 120 1324 0 1315 1 0 1 1 0 8 0 amappl6 112 1722 0 1703 1 0 1 1 0 8 0 amappl5 104 3139 0 3126 1 0 1 1 0 8 0 amappl4 96 16537 0 16503 1 0 1 1 0 8 0 amappl3 88 4809 0 4804 1 0 1 1 0 8 0 amappl2 80 126473 0 126394 4 2 2 3 0 8 0 amappl1 72 369437 0 368994 26 16 10 20 0 8 0 amappl 80 53865 0 53820 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 142 0 13 3 0 3 3 0 8 0 uaddrrnd 24 16331 0 16234 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 16331 0 16234 1 0 1 1 0 8 0 vmmpekpl 168 176211 0 176174 3 0 3 3 0 8 0 vmmpepl 168 2046706 0 2044471 602 470 132 132 0 357 27 vmsppl 368 16250 0 16234 2 0 2 2 0 8 0 pdppl 4096 32669 0 32628 7 1 6 6 0 8 0 pvpl 32 4635959 0 4618304 719 521 198 206 0 265 24 pmappl 232 16330 0 16314 19 18 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1019 0 236 23 0 23 23 0 8 0