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 61966 44115 0 0 0 0 syz-executor.0 *387199 44115 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(ffffffff8220840f,ffffffff821d1c8f,3b7,ffffffff821e7f6a) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023ba74e8,4,ffff800023ba75b8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ad1c00,840100,ffff800000ad1c58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000bc5000,ffff800000ad1c00,ffff800023ba78c0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000bc5000,ffff800000ad1c00,ffff800023ba78c0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800023ba78b0,ffff800000bc5000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023ba78b0,ffff800000bc5000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8070507670,8040691a,ffff800023ba78b0,ffff800020abe9f8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe9f8,ffff800023ba79c8,ffff800023ba7a10) at sys_ioctl+0x5b9 syscall(ffff800023ba7a90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023ba7a90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,c68561ad010) at Xsyscall+0x128 end of kernel end trace frame: 0xc6ac5e54c10, 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(ffffffff8220840f,ffffffff821d1c8f,3b7,ffffffff821e7f6a) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023ba74e8,4,ffff800023ba75b8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ad1c00,840100,ffff800000ad1c58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000bc5000,ffff800000ad1c00,ffff800023ba78c0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000bc5000,ffff800000ad1c00,ffff800023ba78c0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800023ba78b0,ffff800000bc5000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023ba78b0,ffff800000bc5000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8070507670,8040691a,ffff800023ba78b0,ffff800020abe9f8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe9f8,ffff800023ba79c8,ffff800023ba7a10) at sys_ioctl+0x5b9 syscall(ffff800023ba7a90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023ba7a90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,c68561ad010) at Xsyscall+0x128 end of kernel end trace frame: 0xc6ac5e54c10, count: -12 ddb{1}> show registers rdi 0xffffffff817f3407 db_enter+0x17 rsi 0x30ed __ALIGN_SIZE+0x20ed rbp 0xffff800023ba7300 rbx 0xffff800023ba73b0 rdx 0x30ee __ALIGN_SIZE+0x20ee rcx 0xffff800021360000 rax 0xffff800021360000 r8 0xffffffff817eeebf kprintf+0x16f r9 0x1 r10 0x25 r11 0xe2ef79ca9d8510c2 r12 0x3000000008 r13 0xffff800023ba7310 r14 0x100 r15 0x1 rip 0xffffffff817f3408 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023ba72f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=387199 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe508,0xffff800020abe2a0 process=0xffff800020adc700 user=0xffff800023ba2000, vmspace=0xfffffd807f00b170 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 69653 108055 95755 0 2 0 syz-executor.1 44115 61966 88176 0 7 0 syz-executor.0 *44115 387199 88176 0 7 0x4000000 syz-executor.0 95755 90667 57847 0 3 0x82 nanosleep syz-executor.1 88176 429530 57847 0 3 0x82 nanosleep syz-executor.0 34601 190067 1 0 3 0x100083 ttyin getty 65060 497430 0 0 3 0x14200 bored sosplice 57847 157639 13608 0 3 0x82 kqread syz-fuzzer 57847 238837 13608 0 3 0x4000082 nanosleep syz-fuzzer 57847 233245 13608 0 3 0x4000082 thrsleep syz-fuzzer 57847 14710 13608 0 3 0x4000082 thrsleep syz-fuzzer 57847 220699 13608 0 3 0x4000082 thrsleep syz-fuzzer 57847 411750 13608 0 3 0x4000082 thrsleep syz-fuzzer 57847 507165 13608 0 3 0x4000082 thrsleep syz-fuzzer 57847 1680 13608 0 3 0x4000082 thrsleep syz-fuzzer 57847 174597 13608 0 3 0x4000082 thrsleep syz-fuzzer 57847 75758 13608 0 3 0x4000082 thrsleep syz-fuzzer 13608 510825 10359 0 3 0x10008a pause ksh 10359 506986 31217 0 3 0x92 select sshd 31217 511075 1 0 3 0x80 select sshd 50870 322529 81302 74 3 0x100092 bpf pflogd 81302 502021 1 0 3 0x80 netio pflogd 46589 230093 71104 73 3 0x100090 kqread syslogd 71104 426262 1 0 3 0x100082 netio syslogd 43549 23696 1 77 3 0x100090 poll dhclient 59264 368851 1 0 3 0x80 poll dhclient 46095 171828 0 0 2 0x14200 zerothread 37052 175371 0 0 3 0x14200 aiodoned aiodoned 16927 312275 0 0 3 0x14200 syncer update 39591 81382 0 0 3 0x14200 cleaner cleaner 52593 477655 0 0 3 0x14200 reaper reaper 29509 324529 0 0 3 0x14200 pgdaemon pagedaemon 74292 340565 0 0 3 0x14200 bored crynlk 54098 337163 0 0 3 0x14200 bored crypto 55109 497916 0 0 3 0x40014200 acpi0 acpi0 74927 286891 0 0 3 0x40014200 idle1 65207 74763 0 0 3 0x14200 bored softnet 45970 45333 0 0 3 0x14200 bored systqmp 50203 175976 0 0 3 0x14200 bored systq 61596 245762 0 0 3 0x40014200 bored softclock 52333 459948 0 0 3 0x40014200 idle0 53254 55286 0 0 3 0x14200 bored smr 1 258438 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 44115 (syz-executor.0) thread 0xffff800020abe9f8 (387199) exclusive rwlock netlock r = 0 (0xffffffff824d3998) #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 (0xffffffff826624c8) #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 9608 6455K 8718K 78643K 36882 0 0 pcb 14 12K 14K 78643K 943 0 0 rtable 126 13K 14K 78643K 2801 0 0 ifaddr 102 23K 23K 78643K 898 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1767 0 0 iov 0 0K 32K 78643K 897 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1236 78K 78K 78643K 9129 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 64 0 0 VM map 37 18K 18K 78643K 54 0 0 sem 12 0K 0K 78643K 1006 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 4743 0 0 sigio 0 0K 0K 78643K 90 0 0 proc 62 63K 95K 78643K 2032 0 0 subproc 32 2K 2K 78643K 511 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 444 0 0 in_multi 38 2K 2K 78643K 549 0 0 ether_multi 1 0K 0K 78643K 56 0 0 mrt 0 0K 0K 78643K 15 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 1052 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 178 373K 382K 78643K 17986 0 0 UVM aobj 130 7K 7K 78643K 138 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 1111 0 0 NDP 22 0K 1K 78643K 282 0 0 temp 242 3565K 4205K 78643K 134548 0 0 kqueue 0 0K 0K 78643K 35 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 81 0 73 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 424 0 422 1 0 1 1 0 8 0 rtentry 112 439 0 392 2 0 2 2 0 8 0 unpcb 120 2398 0 2380 4 3 1 2 0 8 0 syncache 264 19 0 19 8 8 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 62 0 62 2 2 0 1 0 8 0 tcpcb 544 2067 0 2063 29 28 1 12 0 8 0 inpcb 280 5997 0 5988 39 37 2 13 0 8 1 rttmr 72 5 0 5 4 4 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 71 0 67 3 2 1 1 0 8 0 pkpcb 40 16 0 16 5 5 0 1 0 8 0 ppxss 1128 120 0 120 7 6 1 1 0 8 1 pffrag 232 106 0 106 13 12 1 1 0 482 1 pffrnode 88 106 0 106 13 12 1 1 0 8 1 pffrent 40 2606 0 2606 13 12 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 351 0 300 1 0 1 1 0 8 0 pfstkey 112 351 0 300 3 0 3 3 0 8 0 pfstate 328 351 0 300 8 3 5 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 12 0 11 10 9 1 3 0 8 0 art_heap4 256 1868 0 1636 34 19 15 15 0 8 0 art_table 32 1880 0 1647 2 0 2 2 0 8 0 art_node 16 437 0 395 1 0 1 1 0 8 0 sysvmsgpl 40 53 0 38 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1000 0 990 1 0 1 1 0 8 0 shmpl 112 136 0 8 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 8594 0 7184 46 0 46 46 0 8 0 ffsino 272 8594 0 7184 95 0 95 95 0 8 0 nchpl 144 15574 0 13952 61 0 61 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 59126 0 59126 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 37 0 2 5 0 5 5 0 8 0 vmpool 552 52 0 17 3 0 3 3 0 8 0 scsiplug 64 11 0 11 6 6 0 1 0 8 0 scxspl 192 50656 0 50656 37 34 3 7 0 8 3 plimitpl 152 419 0 411 1 0 1 1 0 8 0 sigapl 432 4862 0 4846 4 2 2 3 0 8 0 futexpl 56 103608 0 103608 1 0 1 1 0 8 1 knotepl 112 1342 0 1323 6 5 1 3 0 8 0 kqueuepl 104 1496 0 1494 7 6 1 4 0 8 0 pipepl 112 9756 0 9735 15 13 2 2 0 8 1 fdescpl 488 4863 0 4846 3 0 3 3 0 8 0 filepl 152 46567 0 46463 45 39 6 14 0 8 2 lockfpl 104 1546 0 1545 1 0 1 1 0 8 0 lockfspl 48 546 0 545 1 0 1 1 0 8 0 sessionpl 112 49 0 38 1 0 1 1 0 8 0 pgrppl 48 119 0 108 1 0 1 1 0 8 0 ucredpl 96 4964 0 4954 1 0 1 1 0 8 0 zombiepl 144 4850 0 4850 2 1 1 1 0 8 1 processpl 896 4883 0 4850 4 0 4 4 0 8 0 procpl 632 15735 0 15692 8 3 5 5 0 8 1 srpgc 64 44 0 44 15 15 0 1 0 8 0 sosppl 128 77 0 77 18 17 1 1 0 8 1 sockpl 384 8880 0 8851 62 57 5 22 0 8 1 mcl64k 65536 262 0 0 33 18 15 33 0 8 1 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 26 0 0 2 0 2 2 0 8 0 mcl9k 9216 24 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 5 2 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 13 0 0 1 0 1 1 0 8 0 mcl2k 2048 205 0 0 21 5 16 21 0 8 0 mtagpl 80 85 0 0 1 0 1 1 0 8 0 mbufpl 256 695 0 0 29 0 29 29 0 8 0 bufpl 256 22263 0 15215 441 0 441 441 0 8 0 anonpl 16 558145 0 541534 168 85 83 105 0 124 5 amapchunkpl 152 36002 0 35854 82 68 14 20 0 158 6 amappl16 192 25597 0 24514 180 124 56 77 0 8 1 amappl15 184 141 0 138 1 0 1 1 0 8 0 amappl14 176 685 0 681 2 1 1 1 0 8 0 amappl13 168 967 0 967 5 4 1 1 0 8 1 amappl12 160 987 0 986 1 0 1 1 0 8 0 amappl11 152 456 0 441 1 0 1 1 0 8 0 amappl10 144 361 0 358 1 0 1 1 0 8 0 amappl9 136 1646 0 1639 1 0 1 1 0 8 0 amappl8 128 1147 0 1107 2 0 2 2 0 8 0 amappl7 120 508 0 499 1 0 1 1 0 8 0 amappl6 112 411 0 398 1 0 1 1 0 8 0 amappl5 104 1361 0 1347 1 0 1 1 0 8 0 amappl4 96 5108 0 5075 1 0 1 1 0 8 0 amappl3 88 1105 0 1096 1 0 1 1 0 8 0 amappl2 80 36632 0 36553 4 2 2 3 0 8 0 amappl1 72 120819 0 120381 26 16 10 20 0 8 0 amappl 80 16495 0 16428 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 137 0 8 3 0 3 3 0 8 0 uaddrrnd 24 4915 0 4846 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4915 0 4846 1 0 1 1 0 8 0 vmmpekpl 168 56383 0 56338 3 0 3 3 0 8 0 vmmpepl 168 623284 0 620906 295 153 142 142 0 357 32 vmsppl 368 4862 0 4846 2 0 2 2 0 8 0 pdppl 4096 9837 0 9761 11 1 10 10 0 8 0 pvpl 32 1509941 0 1490842 368 173 195 244 0 265 17 pmappl 232 4914 0 4863 7 3 4 4 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 725 0 86 19 0 19 19 0 8 0