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 459647 72122 0 0 0 0 syz-executor.0 * 84674 72122 0 0 0x4000000 1K 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(ffffffff82205e21,ffffffff821d0d1b,3b7,ffffffff821e70ff) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800021b80ab8,4,ffff800021b80b88,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000c94800,840100,ffff800000c94858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000c1b800,ffff800000c94800,ffff800021b80e90,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000c1b800,ffff800000c94800,ffff800021b80e90,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800021b80e80,ffff800000c1b800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800021b80e80,ffff800000c1b800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8061e92db0,8040691a,ffff800021b80e80,ffff800020abe290) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe290,ffff800021b80f98,ffff800021b80fe0) at sys_ioctl+0x5b9 syscall(ffff800021b81060) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b81060) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,6d2a8ee3010) at Xsyscall+0x128 end of kernel end trace frame: 0x6d51843ce60, 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(ffffffff82205e21,ffffffff821d0d1b,3b7,ffffffff821e70ff) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800021b80ab8,4,ffff800021b80b88,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000c94800,840100,ffff800000c94858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000c1b800,ffff800000c94800,ffff800021b80e90,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000c1b800,ffff800000c94800,ffff800021b80e90,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800021b80e80,ffff800000c1b800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800021b80e80,ffff800000c1b800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8061e92db0,8040691a,ffff800021b80e80,ffff800020abe290) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe290,ffff800021b80f98,ffff800021b80fe0) at sys_ioctl+0x5b9 syscall(ffff800021b81060) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b81060) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,6d2a8ee3010) at Xsyscall+0x128 end of kernel end trace frame: 0x6d51843ce60, count: -12 ddb{1}> show registers rdi 0xffffffff81bab4d7 db_enter+0x17 rsi 0x3476 __ALIGN_SIZE+0x2476 rbp 0xffff800021b808d0 rbx 0xffff800021b80980 rdx 0x3477 __ALIGN_SIZE+0x2477 rcx 0xffff800021b84000 rax 0xffff800021b84000 r8 0xffffffff8188b28f kprintf+0x16f r9 0x1 r10 0x25 r11 0x5ce683f5914555d r12 0x3000000008 r13 0xffff800021b808e0 r14 0x100 r15 0x1 rip 0xffffffff81bab4d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b808c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=84674 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020abf3d8,0xffffffff8264c6f8 process=0xffff800020adc700 user=0xffff800021b7c000, vmspace=0xfffffd807f00aa10 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 72122 459647 33832 0 7 0 syz-executor.0 *72122 84674 33832 0 7 0x4000000 syz-executor.0 33832 229466 30181 0 3 0x82 nanosleep syz-executor.0 34360 178308 30181 0 2 0x2 syz-executor.1 96937 286323 0 0 3 0x14200 bored sosplice 30181 27759 13137 0 3 0x82 thrsleep syz-fuzzer 30181 422693 13137 0 3 0x4000082 nanosleep syz-fuzzer 30181 51462 13137 0 3 0x4000082 thrsleep syz-fuzzer 30181 6069 13137 0 3 0x4000082 kqread syz-fuzzer 30181 291464 13137 0 3 0x4000082 nanosleep syz-fuzzer 30181 91690 13137 0 3 0x4000082 thrsleep syz-fuzzer 30181 286234 13137 0 3 0x4000082 thrsleep syz-fuzzer 30181 427150 13137 0 3 0x4000082 thrsleep syz-fuzzer 30181 378407 13137 0 3 0x4000082 thrsleep syz-fuzzer 30181 501438 13137 0 3 0x4000082 thrsleep syz-fuzzer 13137 514963 17062 0 3 0x10008a pause ksh 17062 343103 47919 0 3 0x92 select sshd 66729 522793 1 0 3 0x100083 ttyin getty 47919 234760 1 0 3 0x80 select sshd 81521 4642 28673 74 3 0x100092 bpf pflogd 28673 427843 1 0 3 0x80 netio pflogd 26260 173611 75187 73 3 0x100090 kqread syslogd 75187 304760 1 0 3 0x100082 netio syslogd 64599 429350 1 77 3 0x100090 poll dhclient 99311 77937 1 0 3 0x80 poll dhclient 13914 109199 0 0 3 0x14200 pgzero zerothread 62565 246697 0 0 3 0x14200 aiodoned aiodoned 31598 129069 0 0 3 0x14200 syncer update 36065 387917 0 0 3 0x14200 cleaner cleaner 11176 447968 0 0 3 0x14200 reaper reaper 16449 472475 0 0 3 0x14200 pgdaemon pagedaemon 29287 444281 0 0 3 0x14200 bored crynlk 25510 57101 0 0 3 0x14200 bored crypto 83835 506191 0 0 3 0x40014200 acpi0 acpi0 78336 392121 0 0 3 0x40014200 idle1 84324 435213 0 0 3 0x14200 bored softnet 643 313379 0 0 3 0x14200 bored systqmp 87966 447748 0 0 3 0x14200 bored systq 41845 518108 0 0 3 0x40014200 bored softclock 5555 412005 0 0 3 0x40014200 idle0 54880 513823 0 0 3 0x14200 bored smr 1 207601 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 72122 (syz-executor.0) thread 0xffff800020abe290 (84674) exclusive rwlock netlock r = 0 (0xffffffff824e8728) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl_change_ifaddr+0x3f #2 in_ioctl+0x205 sys/netinet/in.c:234 #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 (0xffffffff8266bc58) #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 9590 6443K 14607K 78643K 24950 0 0 pcb 13 10K 12K 78643K 482 0 0 rtable 115 6K 6K 78643K 1783 0 0 ifaddr 90 18K 18K 78643K 503 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1619 0 0 iov 0 0K 28K 78643K 470 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1250 79K 79K 78643K 5283 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 34 0 0 VM map 19 9K 10K 78643K 21 0 0 sem 12 0K 1K 78643K 832 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 2532 0 0 sigio 0 0K 0K 78643K 38 0 0 proc 62 63K 83K 78643K 1412 0 0 subproc 32 2K 2K 78643K 340 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 149 0 0 in_multi 31 2K 2K 78643K 371 0 0 ether_multi 1 0K 0K 78643K 30 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 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 681 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 140 153K 162K 78643K 9892 0 0 UVM aobj 130 8K 8K 78643K 135 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 547 0 0 NDP 21 0K 1K 78643K 162 0 0 temp 236 3565K 4203K 78643K 72071 0 0 kqueue 0 0K 0K 78643K 24 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 72 0 65 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 160 0 158 1 0 1 1 0 8 0 rtentry 112 337 0 294 2 0 2 2 0 8 0 unpcb 120 4855 0 4843 6 4 2 2 0 8 1 syncache 264 14 0 14 6 6 0 1 0 8 0 sackhl 24 2 0 2 1 1 0 1 0 8 0 tcpqe 32 76 0 76 5 5 0 1 0 8 0 tcpcb 544 2719 0 2713 33 24 9 14 0 8 8 inpcb 280 7289 0 7278 23 14 9 9 0 8 8 rttmr 72 1 0 1 1 1 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 49 0 46 1 0 1 1 0 8 0 pkpcb 40 20 0 20 6 6 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 61 0 61 11 10 1 1 0 8 1 pffrag 232 68 0 68 7 6 1 1 0 482 1 pffrnode 88 68 0 68 7 6 1 1 0 8 1 pffrent 40 2207 0 2207 7 6 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 696 0 585 1 0 1 1 0 8 0 pfstkey 112 696 0 585 4 0 4 4 0 8 0 pfstate 328 696 0 570 11 0 11 11 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 5 0 4 5 4 1 3 0 8 0 art_heap4 256 1456 0 1250 31 16 15 15 0 8 0 art_table 32 1461 0 1254 2 0 2 2 0 8 0 art_node 16 335 0 296 1 0 1 1 0 8 0 sysvmsgpl 40 71 0 31 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 830 0 820 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5095 0 3688 46 0 46 46 0 8 0 ffsino 272 5095 0 3688 96 1 95 95 0 8 0 nchpl 144 8845 0 8393 61 40 21 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 31800 0 31800 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 17 0 0 3 0 3 3 0 8 0 vmpool 552 19 0 2 2 0 2 2 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 28256 0 28256 24 23 1 7 0 8 1 plimitpl 152 246 0 238 1 0 1 1 0 8 0 sigapl 432 2678 0 2663 4 2 2 3 0 8 0 futexpl 56 75696 0 75696 2 1 1 1 0 8 1 knotepl 112 669 0 650 1 0 1 1 0 8 0 kqueuepl 104 723 0 721 7 3 4 4 0 8 3 pipepl 112 1358 0 1339 1 0 1 1 0 8 0 fdescpl 488 2679 0 2663 3 0 3 3 0 8 0 filepl 152 28001 0 27897 39 27 12 14 0 8 7 lockfpl 104 857 0 856 1 0 1 1 0 8 0 lockfspl 48 306 0 305 1 0 1 1 0 8 0 sessionpl 112 36 0 25 1 0 1 1 0 8 0 pgrppl 48 66 0 55 1 0 1 1 0 8 0 ucredpl 96 2196 0 2187 1 0 1 1 0 8 0 zombiepl 144 2664 0 2664 2 1 1 1 0 8 1 processpl 896 2696 0 2664 5 1 4 5 0 8 0 procpl 632 8226 0 8184 6 1 5 5 0 8 1 srpgc 64 20 0 20 5 5 0 1 0 8 0 sosppl 128 38 0 38 9 8 1 1 0 8 1 sockpl 384 12398 0 12373 43 32 11 15 0 8 8 mcl64k 65536 368 0 0 44 11 33 33 0 8 1 mcl16k 16384 19 0 0 3 0 3 3 0 8 1 mcl12k 12288 19 0 0 2 0 2 2 0 8 0 mcl9k 9216 15 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 1 2 3 0 8 0 mcl4k 4096 25 0 0 4 1 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 196 0 0 23 2 21 23 0 8 0 mtagpl 80 52 0 0 1 0 1 1 0 8 0 mbufpl 256 670 0 0 38 0 38 38 0 8 0 bufpl 256 14249 0 7201 441 0 441 441 0 8 0 anonpl 16 322698 0 302801 162 73 89 98 0 124 8 amapchunkpl 152 19474 0 19343 40 29 11 13 0 158 4 amappl16 192 13527 0 12383 118 60 58 68 0 8 0 amappl15 184 76 0 76 1 1 0 1 0 8 0 amappl14 176 776 0 772 1 0 1 1 0 8 0 amappl13 168 412 0 410 2 1 1 1 0 8 0 amappl12 160 147 0 143 1 0 1 1 0 8 0 amappl11 152 602 0 585 1 0 1 1 0 8 0 amappl10 144 129 0 125 1 0 1 1 0 8 0 amappl9 136 1068 0 1060 1 0 1 1 0 8 0 amappl8 128 643 0 603 2 0 2 2 0 8 0 amappl7 120 223 0 215 1 0 1 1 0 8 0 amappl6 112 568 0 556 1 0 1 1 0 8 0 amappl5 104 420 0 405 1 0 1 1 0 8 0 amappl4 96 3041 0 3008 1 0 1 1 0 8 0 amappl3 88 658 0 653 1 0 1 1 0 8 0 amappl2 80 19793 0 19720 3 1 2 3 0 8 0 amappl1 72 71251 0 70812 25 15 10 20 0 8 0 amappl 80 8805 0 8757 3 1 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 134 0 5 3 0 3 3 0 8 0 uaddrrnd 24 2698 0 2663 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2698 0 2663 1 0 1 1 0 8 0 vmmpekpl 168 25053 0 25019 2 0 2 2 0 8 0 vmmpepl 168 349038 0 346666 237 91 146 147 0 357 35 vmsppl 368 2678 0 2663 2 0 2 2 0 8 0 pdppl 4096 5403 0 5347 8 0 8 8 0 8 0 pvpl 32 880166 0 857741 304 99 205 220 0 265 18 pmappl 232 2697 0 2665 4 1 3 3 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 740 0 64 20 0 20 20 0 8 0