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 161430 29406 0 0 0 0 syz-executor.1 * 92922 29406 0 0 0x4000000 1K 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(ffffffff8220626f,ffffffff821d18ec,3b7,ffffffff821e784e) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023bb3438,4,ffff800023bb3508,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000aaca00,840100,ffff800000aaca58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000aa7000,ffff800000aaca00,ffff800023bb37e0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000aa7000,ffff800000aaca00,ffff800023bb37e0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800023bb37d0,ffff800000aa7000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023bb37d0,ffff800000aa7000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80627cb7d8,8020690c,ffff800023bb37d0,ffff800020acfb50) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acfb50,ffff800023bb38e8,ffff800023bb3930) at sys_ioctl+0x5b9 syscall(ffff800023bb39b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bb39b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,e3d2b75a0e0) at Xsyscall+0x128 end of kernel end trace frame: 0xe3fbbbd8130, 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(ffffffff8220626f,ffffffff821d18ec,3b7,ffffffff821e784e) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023bb3438,4,ffff800023bb3508,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000aaca00,840100,ffff800000aaca58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000aa7000,ffff800000aaca00,ffff800023bb37e0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000aa7000,ffff800000aaca00,ffff800023bb37e0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800023bb37d0,ffff800000aa7000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023bb37d0,ffff800000aa7000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80627cb7d8,8020690c,ffff800023bb37d0,ffff800020acfb50) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acfb50,ffff800023bb38e8,ffff800023bb3930) at sys_ioctl+0x5b9 syscall(ffff800023bb39b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bb39b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,e3d2b75a0e0) at Xsyscall+0x128 end of kernel end trace frame: 0xe3fbbbd8130, count: -12 ddb{1}> show registers rdi 0xffffffff819807c7 db_enter+0x17 rsi 0x40bd __ALIGN_SIZE+0x30bd rbp 0xffff800023bb3250 rbx 0xffff800023bb3300 rdx 0x40be __ALIGN_SIZE+0x30be rcx 0xffff800022d9c000 rax 0xffff800022d9c000 r8 0xffffffff81186cff kprintf+0x16f r9 0x1 r10 0x25 r11 0x14444ba2cc3ab591 r12 0x3000000008 r13 0xffff800023bb3260 r14 0x100 r15 0x1 rip 0xffffffff819807c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bb3240 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=92922 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace2a0,0xffffffff826330d0 process=0xffff800020addc00 user=0xffff800023bae000, vmspace=0xfffffd807f00b170 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 29406 161430 2564 0 7 0 syz-executor.1 29406 55092 2564 0 2 0x4000000 syz-executor.1 *29406 92922 2564 0 7 0x4000000 syz-executor.1 45464 455690 82109 0 3 0x80 nanosleep syz-executor.0 45464 161320 82109 0 3 0x4000080 poll syz-executor.0 45464 60918 82109 0 3 0x4000080 fsleep syz-executor.0 82109 43666 19293 0 3 0x82 nanosleep syz-executor.0 43075 430320 1 0 3 0x100083 ttyin getty 2564 381293 19293 0 3 0x82 nanosleep syz-executor.1 48468 252175 0 0 3 0x14200 acct acct 77580 433120 0 0 3 0x14200 bored sosplice 19293 412797 83682 0 3 0x82 nanosleep syz-fuzzer 19293 431043 83682 0 3 0x4000082 nanosleep syz-fuzzer 19293 502789 83682 0 3 0x4000082 thrsleep syz-fuzzer 19293 125699 83682 0 3 0x4000082 kqread syz-fuzzer 19293 343653 83682 0 3 0x4000082 thrsleep syz-fuzzer 19293 245718 83682 0 3 0x4000082 thrsleep syz-fuzzer 19293 281755 83682 0 3 0x4000082 thrsleep syz-fuzzer 19293 183802 83682 0 3 0x4000082 thrsleep syz-fuzzer 19293 276263 83682 0 3 0x4000082 thrsleep syz-fuzzer 19293 297666 83682 0 3 0x4000082 thrsleep syz-fuzzer 83682 263054 48334 0 3 0x10008a pause ksh 48334 453627 36688 0 3 0x92 select sshd 36688 275190 1 0 3 0x80 select sshd 79388 304797 31479 74 3 0x100092 bpf pflogd 31479 190871 1 0 3 0x80 netio pflogd 28175 299019 61167 73 3 0x100090 kqread syslogd 61167 95747 1 0 3 0x100082 netio syslogd 86973 299502 1 77 3 0x100090 poll dhclient 12247 35300 1 0 3 0x80 poll dhclient 43892 149619 0 0 3 0x14200 pgzero zerothread 27910 72292 0 0 3 0x14200 aiodoned aiodoned 26788 134082 0 0 3 0x14200 syncer update 31952 216991 0 0 3 0x14200 cleaner cleaner 6932 181441 0 0 3 0x14200 reaper reaper 58124 510345 0 0 3 0x14200 pgdaemon pagedaemon 45429 76676 0 0 3 0x14200 bored crynlk 67842 164970 0 0 3 0x14200 bored crypto 28142 339309 0 0 3 0x40014200 acpi0 acpi0 83917 422057 0 0 3 0x40014200 idle1 86751 211827 0 0 3 0x14200 bored softnet 87351 372237 0 0 3 0x14200 bored systqmp 68996 517615 0 0 3 0x14200 bored systq 20657 77817 0 0 3 0x40014200 bored softclock 68410 514913 0 0 3 0x40014200 idle0 27028 448692 0 0 3 0x14200 bored smr 1 167825 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 29406 (syz-executor.1) thread 0xffff800020acfb50 (92922) exclusive rwlock netlock r = 0 (0xffffffff824b31d8) #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 (0xffffffff82631ba8) #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 9578 6433K 7700K 78643K 18772 0 0 pcb 13 8K 8K 78643K 314 0 0 rtable 99 12K 13K 78643K 1204 0 0 ifaddr 77 16K 18K 78643K 384 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1534 0 0 iov 0 0K 20K 78643K 268 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1228 77K 78K 78643K 3551 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 14 0 0 VM map 2 1K 1K 78643K 9 0 0 sem 12 0K 1K 78643K 263 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1421 0 0 sigio 0 0K 0K 78643K 239 0 0 proc 62 63K 83K 78643K 797 0 0 subproc 32 2K 2K 78643K 136 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 142 0 0 in_multi 22 1K 2K 78643K 235 0 0 ether_multi 1 0K 0K 78643K 22 0 0 mrt 0 0K 0K 78643K 11 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 446 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 121 22K 31K 78643K 5832 0 0 UVM aobj 78 8K 8K 78643K 87 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 300 0 0 NDP 18 0K 0K 78643K 115 0 0 temp 215 3560K 3636K 78643K 26671 0 0 kqueue 0 0K 0K 78643K 20 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 44 0 40 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 128 0 126 1 0 1 1 0 8 0 rtentry 112 205 0 170 2 0 2 2 0 8 0 unpcb 120 3205 0 3175 4 2 2 2 0 8 0 syncache 264 10 0 10 6 5 1 1 0 8 1 tcpqe 32 5302 0 5302 1 1 0 1 0 8 0 tcpcb 544 530 0 525 2 1 1 2 0 8 0 inpcb 280 1622 0 1613 7 5 2 3 0 8 1 rttmr 72 4 0 4 3 3 0 1 0 8 0 nd6 48 23 0 21 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 57 0 57 4 3 1 1 0 8 1 pffrag 232 29 0 29 6 6 0 1 0 482 0 pffrnode 88 29 0 29 6 6 0 1 0 8 0 pffrent 40 745 0 745 6 6 0 1 0 8 0 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 111 0 48 1 0 1 1 0 8 0 pfstkey 112 111 0 48 2 0 2 2 0 8 0 pfstate 328 111 0 48 6 0 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 846 0 672 21 6 15 15 0 8 3 art_table 32 847 0 672 2 0 2 2 0 8 0 art_node 16 202 0 172 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 6 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 261 0 251 1 0 1 1 0 8 0 shmpl 112 85 0 9 4 1 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3745 0 2342 46 0 46 46 0 8 0 ffsino 272 3745 0 2342 94 0 94 94 0 8 0 nchpl 144 6149 0 4555 61 0 61 61 0 8 0 uvmvnodes 72 5737 0 0 105 0 105 105 0 8 0 vnodes 208 5737 0 0 302 0 302 302 0 8 0 namei 1024 20138 0 20138 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 7 0 7 3 3 0 1 0 8 0 scsiplug 64 4 0 4 2 2 0 1 0 8 0 scxspl 192 18590 0 18590 20 18 2 7 0 8 2 plimitpl 152 120 0 112 1 0 1 1 0 8 0 sigapl 432 1604 0 1588 3 1 2 3 0 8 0 futexpl 56 32948 0 32947 2 1 1 1 0 8 0 knotepl 112 421 0 402 2 0 2 2 0 8 1 kqueuepl 104 367 0 365 1 0 1 1 0 8 0 pipepl 112 1088 0 1069 5 4 1 2 0 8 0 fdescpl 488 1605 0 1588 3 0 3 3 0 8 0 filepl 152 14802 0 14698 11 5 6 7 0 8 1 lockfpl 104 478 0 477 1 0 1 1 0 8 0 lockfspl 48 169 0 168 1 0 1 1 0 8 0 sessionpl 112 25 0 14 1 0 1 1 0 8 0 pgrppl 48 42 0 31 1 0 1 1 0 8 0 ucredpl 96 1596 0 1587 1 0 1 1 0 8 0 zombiepl 144 1588 0 1588 4 3 1 1 0 8 1 processpl 896 1622 0 1588 4 0 4 4 0 8 0 procpl 632 4713 0 4666 6 1 5 5 0 8 0 srpgc 64 12 0 12 5 4 1 1 0 8 1 sosppl 128 19 0 19 5 5 0 1 0 8 0 sockpl 384 4975 0 4934 17 9 8 8 0 8 3 mcl64k 65536 512 0 0 64 2 62 64 0 8 1 mcl16k 16384 10 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 14 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 145 0 0 17 0 17 17 0 8 0 mtagpl 80 62 0 0 2 0 2 2 0 8 0 mbufpl 256 693 0 0 41 1 40 40 0 8 0 bufpl 256 10370 0 3322 441 0 441 441 0 8 0 anonpl 16 188099 0 171367 115 40 75 85 0 124 3 amapchunkpl 152 10858 0 10737 23 16 7 12 0 158 0 amappl16 192 8269 0 7307 97 40 57 60 0 8 8 amappl15 184 207 0 207 1 1 0 1 0 8 0 amappl14 176 207 0 202 2 1 1 1 0 8 0 amappl13 168 747 0 747 2 1 1 1 0 8 1 amappl12 160 5 0 2 1 0 1 1 0 8 0 amappl11 152 391 0 371 1 0 1 1 0 8 0 amappl10 144 21 0 18 1 0 1 1 0 8 0 amappl9 136 703 0 695 1 0 1 1 0 8 0 amappl8 128 287 0 248 3 1 2 2 0 8 0 amappl7 120 63 0 57 1 0 1 1 0 8 0 amappl6 112 392 0 374 1 0 1 1 0 8 0 amappl5 104 260 0 246 1 0 1 1 0 8 0 amappl4 96 1881 0 1854 1 0 1 1 0 8 0 amappl3 88 307 0 301 1 0 1 1 0 8 0 amappl2 80 12459 0 12380 4 2 2 3 0 8 0 amappl1 72 45242 0 44774 27 17 10 20 0 8 0 amappl 80 5077 0 5034 2 1 1 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 86 0 9 2 0 2 2 0 8 0 uaddrrnd 24 1612 0 1588 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1612 0 1588 1 0 1 1 0 8 0 vmmpekpl 168 17359 0 17327 2 0 2 2 0 8 0 vmmpepl 168 207880 0 205648 217 87 130 130 0 357 32 vmsppl 368 1604 0 1588 2 0 2 2 0 8 0 pdppl 4096 3231 0 3190 7 1 6 6 0 8 0 pvpl 32 523525 0 503370 255 65 190 200 0 265 18 pmappl 232 1611 0 1595 3 2 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 708 0 17 20 0 20 20 0 8 0