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 451033 24830 0 0 0x4000000 1 syz-executor.1 *290929 24830 0 0 0x4000000 0K syz-executor.1 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(ffffffff82204d9f,ffffffff821cfb4c,3b7,ffffffff821e59d6) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022bd7598,4,ffff800022bd7668,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ab3600,840100,ffff800000ab3658,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b3d000,ffff800000ab3600,ffff800022bd7940,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b3d000,ffff800000ab3600,ffff800022bd7940,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800022bd7930,ffff800000b3d000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800022bd7930,ffff800000b3d000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80737e5c20,8020690c,ffff800022bd7930,ffff800020b26790) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020b26790,ffff800022bd7a48,ffff800022bd7a90) at sys_ioctl+0x5b9 syscall(ffff800022bd7b10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bd7b10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,fa7c2c450e0) at Xsyscall+0x128 end of kernel end trace frame: 0xfa9c3b8f5f0, 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(ffffffff82204d9f,ffffffff821cfb4c,3b7,ffffffff821e59d6) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022bd7598,4,ffff800022bd7668,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ab3600,840100,ffff800000ab3658,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b3d000,ffff800000ab3600,ffff800022bd7940,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b3d000,ffff800000ab3600,ffff800022bd7940,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800022bd7930,ffff800000b3d000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800022bd7930,ffff800000b3d000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80737e5c20,8020690c,ffff800022bd7930,ffff800020b26790) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020b26790,ffff800022bd7a48,ffff800022bd7a90) at sys_ioctl+0x5b9 syscall(ffff800022bd7b10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bd7b10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,fa7c2c450e0) at Xsyscall+0x128 end of kernel end trace frame: 0xfa9c3b8f5f0, count: -12 ddb{0}> show registers rdi 0xffffffff81a1d007 db_enter+0x17 rsi 0x41f3 __ALIGN_SIZE+0x31f3 rbp 0xffff800022bd73b0 rbx 0xffff800022bd7460 rdx 0x41f4 __ALIGN_SIZE+0x31f4 rcx 0xffff800021dae000 rax 0xffff800021dae000 r8 0xffffffff817d4c1f kprintf+0x16f r9 0x1 r10 0x25 r11 0x4627c3e3e887a8d4 r12 0x3000000008 r13 0xffff800022bd73c0 r14 0x100 r15 0x1 rip 0xffffffff81a1d008 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022bd73a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=290929 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020b26028,0xffffffff82630770 process=0xffff800020adc000 user=0xffff800022bd2000, vmspace=0xfffffd807f00b000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 14130 187189 26180 0 2 0 syz-executor.0 14130 147498 26180 0 3 0x4000080 fsleep syz-executor.0 24830 309375 23206 0 2 0 syz-executor.1 24830 451033 23206 0 7 0x4000000 syz-executor.1 *24830 290929 23206 0 7 0x4000000 syz-executor.1 23206 486283 48254 0 2 0x482 syz-executor.1 43586 300862 0 0 3 0x14200 acct acct 26180 169347 48254 0 2 0x482 syz-executor.0 15395 56617 1 0 3 0x100083 ttyin getty 62136 304775 0 0 3 0x14200 bored sosplice 48254 130410 57227 0 3 0x82 thrsleep syz-fuzzer 48254 268912 57227 0 3 0x4000082 nanosleep syz-fuzzer 48254 230680 57227 0 3 0x4000082 thrsleep syz-fuzzer 48254 481391 57227 0 3 0x4000082 thrsleep syz-fuzzer 48254 506216 57227 0 3 0x4000082 kqread syz-fuzzer 48254 234628 57227 0 3 0x4000082 thrsleep syz-fuzzer 48254 459667 57227 0 3 0x4000082 thrsleep syz-fuzzer 48254 358837 57227 0 3 0x4000082 thrsleep syz-fuzzer 48254 504052 57227 0 3 0x4000082 thrsleep syz-fuzzer 48254 393708 57227 0 3 0x4000082 thrsleep syz-fuzzer 57227 51615 15527 0 3 0x10008a pause ksh 15527 394415 73686 0 3 0x92 select sshd 73686 283653 1 0 3 0x80 select sshd 24569 395598 96967 74 3 0x100092 bpf pflogd 96967 497411 1 0 3 0x80 netio pflogd 16046 255493 10233 73 3 0x100090 kqread syslogd 10233 390704 1 0 3 0x100082 netio syslogd 74908 456520 1 77 3 0x100090 poll dhclient 46842 398804 1 0 3 0x80 poll dhclient 56737 519217 0 0 2 0x14200 zerothread 429 105466 0 0 3 0x14200 aiodoned aiodoned 79898 67767 0 0 3 0x14200 syncer update 3338 208468 0 0 3 0x14200 cleaner cleaner 36234 128615 0 0 3 0x14200 reaper reaper 12016 208169 0 0 3 0x14200 pgdaemon pagedaemon 9827 556 0 0 3 0x14200 bored crynlk 44393 455993 0 0 3 0x14200 bored crypto 69359 197621 0 0 3 0x40014200 acpi0 acpi0 32317 258533 0 0 3 0x40014200 idle1 18154 129143 0 0 3 0x14200 bored softnet 66683 512103 0 0 2 0x14200 systqmp 92695 85746 0 0 3 0x14200 bored systq 22833 225225 0 0 3 0x40014200 bored softclock 90946 268340 0 0 3 0x40014200 idle0 86244 278548 0 0 3 0x14200 bored smr 1 176921 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 24830 (syz-executor.1) thread 0xffff800020b26790 (290929) exclusive rwlock netlock r = 0 (0xffffffff824b0188) #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 (0xffffffff8262bc68) #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 9622 6476K 7474K 78643K 29455 0 0 pcb 13 10K 12K 78643K 7055 0 0 rtable 114 9K 10K 78643K 4217 0 0 ifaddr 102 26K 29K 78643K 1337 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1837 0 0 iov 0 0K 28K 78643K 1343 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1223 77K 78K 78643K 7845 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 103 0 0 VM map 30 15K 15K 78643K 49 0 0 sem 11 1K 1K 78643K 12 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 6978 0 0 sigio 0 0K 0K 78643K 74 0 0 proc 62 63K 95K 78643K 2801 0 0 subproc 32 2K 2K 78643K 702 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 570 0 0 in_multi 26 1K 2K 78643K 840 0 0 ether_multi 1 0K 0K 78643K 59 0 0 mrt 0 0K 0K 78643K 33 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 1391 0 0 pfkey data 0 0K 0K 78643K 1 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 193 303K 305K 78643K 26578 0 0 UVM aobj 130 6K 6K 78643K 140 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 1582 0 0 NDP 24 0K 1K 78643K 427 0 0 temp 256 3565K 4205K 78643K 226260 0 0 kqueue 0 0K 0K 78643K 92 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 102 0 96 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 501 0 499 1 0 1 1 0 8 0 rtentry 112 721 0 680 2 0 2 2 0 8 0 unpcb 120 4446 0 4432 4 3 1 2 0 8 0 syncache 264 29 0 29 15 15 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 6588 0 6588 3 3 0 1 0 8 0 tcpcb 544 4232 0 4227 19 18 1 12 0 8 0 inpcb 280 15207 0 15196 21 18 3 9 0 8 2 rttmr 72 9 0 8 2 1 1 1 0 8 0 ip6q 72 3 0 3 2 2 0 1 0 8 0 ip6af 40 9 0 9 2 2 0 1 0 8 0 nd6 48 116 0 114 9 8 1 1 0 8 0 pkpcb 40 32 0 32 13 13 0 1 0 8 0 ppxss 1128 174 0 174 18 17 1 1 0 8 1 pffrag 232 139 0 139 22 21 1 1 0 482 1 pffrnode 88 139 0 139 22 21 1 1 0 8 1 pffrent 40 4326 0 4326 22 21 1 1 0 8 1 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 560 0 490 1 0 1 1 0 8 0 pfstkey 112 560 0 490 5 2 3 3 0 8 0 pfstate 328 560 0 489 9 2 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 26 0 25 18 17 1 3 0 8 0 art_heap4 256 3241 0 3004 54 38 16 18 0 8 1 art_table 32 3267 0 3029 9 7 2 3 0 8 0 art_node 16 708 0 670 1 0 1 1 0 8 0 sysvmsgpl 40 85 0 66 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 10 0 1 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 12070 0 10621 48 1 47 47 0 8 0 ffsino 272 12070 0 10621 98 0 98 98 0 8 0 nchpl 144 22288 0 21818 61 40 21 61 0 8 0 uvmvnodes 72 7234 0 0 132 0 132 132 0 8 0 vnodes 208 7234 0 0 381 0 381 381 0 8 0 namei 1024 79905 0 79905 5 4 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 28 0 0 4 0 4 4 0 8 0 vmpool 552 47 0 19 3 1 2 2 0 8 0 scsiplug 64 8 0 8 7 7 0 1 0 8 0 scxspl 192 71636 0 71636 63 60 3 7 0 8 3 plimitpl 152 569 0 561 1 0 1 1 0 8 0 sigapl 432 7066 0 7050 4 2 2 3 0 8 0 futexpl 56 172368 0 172367 2 1 1 1 0 8 0 knotepl 112 1742 0 1723 3 2 1 2 0 8 0 kqueuepl 104 1866 0 1864 4 3 1 4 0 8 0 pipepl 112 13116 0 13097 23 21 2 2 0 8 1 fdescpl 488 7067 0 7050 3 0 3 3 0 8 0 filepl 152 71497 0 71393 46 39 7 14 0 8 2 lockfpl 104 2477 0 2476 1 0 1 1 0 8 0 lockfspl 48 844 0 843 1 0 1 1 0 8 0 sessionpl 112 62 0 51 1 0 1 1 0 8 0 pgrppl 48 121 0 110 1 0 1 1 0 8 0 ucredpl 96 7199 0 7189 1 0 1 1 0 8 0 zombiepl 144 7054 0 7054 5 4 1 1 0 8 1 processpl 896 7088 0 7054 5 1 4 5 0 8 0 procpl 632 23778 0 23732 6 1 5 5 0 8 0 srpgc 64 49 0 49 17 17 0 1 0 8 0 sosppl 128 98 0 98 24 24 0 1 0 8 0 sockpl 384 20437 0 20410 50 44 6 14 0 8 2 mcl64k 65536 293 0 0 35 1 34 34 0 8 0 mcl16k 16384 33 0 0 4 1 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 23 0 0 3 1 2 3 0 8 0 mcl2k2 2112 16 0 0 2 0 2 2 0 8 0 mcl2k 2048 179 0 0 22 6 16 22 0 8 0 mtagpl 80 92 0 0 1 0 1 1 0 8 0 mbufpl 256 826 0 0 30 0 30 30 0 8 0 bufpl 256 33049 0 25803 454 0 454 454 0 8 0 anonpl 16 768239 0 751111 228 145 83 89 0 124 8 amapchunkpl 152 51657 0 51521 96 83 13 19 0 158 6 amappl16 192 35182 0 34123 217 155 62 65 0 8 8 amappl15 184 1075 0 1075 4 4 0 1 0 8 0 amappl14 176 2479 0 2478 2 1 1 1 0 8 0 amappl13 168 655 0 654 8 7 1 1 0 8 0 amappl12 160 326 0 324 1 0 1 1 0 8 0 amappl11 152 899 0 881 1 0 1 1 0 8 0 amappl10 144 855 0 851 1 0 1 1 0 8 0 amappl9 136 1940 0 1932 1 0 1 1 0 8 0 amappl8 128 1540 0 1486 3 1 2 2 0 8 0 amappl7 120 1031 0 1022 1 0 1 1 0 8 0 amappl6 112 787 0 771 1 0 1 1 0 8 0 amappl5 104 787 0 769 1 0 1 1 0 8 0 amappl4 96 6527 0 6494 1 0 1 1 0 8 0 amappl3 88 2513 0 2499 1 0 1 1 0 8 0 amappl2 80 54478 0 54391 4 2 2 3 0 8 0 amappl1 72 169372 0 168919 25 15 10 20 0 8 0 amappl 80 24721 0 24655 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 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 7114 0 7050 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7114 0 7050 1 0 1 1 0 8 0 vmmpekpl 168 77308 0 77263 4 1 3 3 0 8 0 vmmpepl 168 898475 0 896071 434 292 142 146 0 357 34 vmsppl 368 7066 0 7050 2 0 2 2 0 8 0 pdppl 4096 14235 0 14166 12 3 9 9 0 8 0 pvpl 32 2097651 0 2077177 464 263 201 208 0 265 23 pmappl 232 7113 0 7069 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 767 0 93 20 0 20 20 0 8 0