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 196759 19969 0 0 0 1 syz-executor.1 * 42314 19969 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(ffffffff82206693,ffffffff821d0006,3b7,ffffffff821e64e7) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023b9ea78,4,ffff800023b9eb48,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b1d200,840100,ffff800000b1d258,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000af3000,ffff800000b1d200,ffff800023b9ee50,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000af3000,ffff800000b1d200,ffff800023b9ee50,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800023b9ee40,ffff800000af3000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023b9ee40,ffff800000af3000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8070244dd8,8040691a,ffff800023b9ee40,ffff800020acea00) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acea00,ffff800023b9ef58,ffff800023b9efa0) at sys_ioctl+0x5b9 syscall(ffff800023b9f020) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b9f020) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,b4a2c5d9010) at Xsyscall+0x128 end of kernel end trace frame: 0xb4c807bdfd0, 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(ffffffff82206693,ffffffff821d0006,3b7,ffffffff821e64e7) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023b9ea78,4,ffff800023b9eb48,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b1d200,840100,ffff800000b1d258,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000af3000,ffff800000b1d200,ffff800023b9ee50,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000af3000,ffff800000b1d200,ffff800023b9ee50,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800023b9ee40,ffff800000af3000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023b9ee40,ffff800000af3000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8070244dd8,8040691a,ffff800023b9ee40,ffff800020acea00) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acea00,ffff800023b9ef58,ffff800023b9efa0) at sys_ioctl+0x5b9 syscall(ffff800023b9f020) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b9f020) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,b4a2c5d9010) at Xsyscall+0x128 end of kernel end trace frame: 0xb4c807bdfd0, count: -12 ddb{0}> show registers rdi 0xffffffff81209aa7 db_enter+0x17 rsi 0x2ecf __ALIGN_SIZE+0x1ecf rbp 0xffff800023b9e890 rbx 0xffff800023b9e940 rdx 0x2ed0 __ALIGN_SIZE+0x1ed0 rcx 0xffff800021b60000 rax 0xffff800021b60000 r8 0xffffffff81b7abcf kprintf+0x16f r9 0x1 r10 0x25 r11 0x16b80a39eea420a0 r12 0x3000000008 r13 0xffff800023b9e8a0 r14 0x100 r15 0x1 rip 0xffffffff81209aa8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b9e880 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=42314 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020aceef0,0xffffffff8265bb70 process=0xffff800020a8ae10 user=0xffff800023b9a000, vmspace=0xfffffd807f00b2e0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 19969 196759 82016 0 7 0 syz-executor.1 *19969 42314 82016 0 7 0x4000000 syz-executor.1 94558 423070 55423 0 3 0x80 nanosleep syz-executor.0 94558 21798 55423 0 3 0x4000080 ttyin syz-executor.0 94558 131441 55423 0 3 0x4000080 fsleep syz-executor.0 55423 264606 10454 0 3 0x82 nanosleep syz-executor.0 82016 355824 10454 0 3 0x82 nanosleep syz-executor.1 78190 225621 0 0 3 0x14200 acct acct 32310 225098 1 0 3 0x100083 ttyin getty 90411 386325 0 0 3 0x14200 bored sosplice 10454 35999 17117 0 3 0x82 thrsleep syz-fuzzer 10454 372850 17117 0 3 0x4000082 nanosleep syz-fuzzer 10454 488872 17117 0 3 0x4000082 thrsleep syz-fuzzer 10454 354198 17117 0 3 0x4000082 thrsleep syz-fuzzer 10454 306333 17117 0 3 0x4000082 thrsleep syz-fuzzer 10454 282729 17117 0 3 0x4000082 kqread syz-fuzzer 10454 517610 17117 0 3 0x4000082 thrsleep syz-fuzzer 10454 75916 17117 0 3 0x4000082 thrsleep syz-fuzzer 10454 342738 17117 0 3 0x4000082 nanosleep syz-fuzzer 10454 91901 17117 0 3 0x4000082 thrsleep syz-fuzzer 17117 339697 25835 0 3 0x10008a pause ksh 25835 149536 22270 0 3 0x92 select sshd 22270 299620 1 0 3 0x80 select sshd 65173 278794 69911 74 3 0x100092 bpf pflogd 69911 101592 1 0 3 0x80 netio pflogd 53651 518351 64708 73 3 0x100090 kqread syslogd 64708 229312 1 0 3 0x100082 netio syslogd 97633 29166 1 77 3 0x100090 poll dhclient 33671 277289 1 0 3 0x80 poll dhclient 70974 276491 0 0 3 0x14200 pgzero zerothread 55217 451064 0 0 3 0x14200 aiodoned aiodoned 50594 165934 0 0 3 0x14200 syncer update 22488 370589 0 0 3 0x14200 cleaner cleaner 35950 148474 0 0 3 0x14200 reaper reaper 77232 345806 0 0 3 0x14200 pgdaemon pagedaemon 43189 411692 0 0 3 0x14200 bored crynlk 36910 329371 0 0 3 0x14200 bored crypto 29489 212792 0 0 3 0x40014200 acpi0 acpi0 72853 4326 0 0 3 0x40014200 idle1 9362 71992 0 0 3 0x14200 bored softnet 62498 453414 0 0 3 0x14200 bored systqmp 89279 270082 0 0 3 0x14200 bored systq 77294 64757 0 0 3 0x40014200 bored softclock 81464 477620 0 0 3 0x40014200 idle0 860 137148 0 0 3 0x14200 pause smr 1 86683 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 19969 (syz-executor.1) thread 0xffff800020acea00 (42314) exclusive rwlock netlock r = 0 (0xffffffff8250d4d8) #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 (0xffffffff82642000) #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 9635 6792K 8040K 78643K 32868 0 0 pcb 14 8K 9K 78643K 842 0 0 rtable 125 9K 10K 78643K 2641 0 0 ifaddr 98 21K 23K 78643K 797 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1733 0 0 iov 0 0K 32K 78643K 852 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1235 78K 78K 78643K 8235 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 50 0 0 VM map 30 15K 15K 78643K 46 0 0 sem 12 0K 1K 78643K 812 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 4218 0 0 sigio 0 0K 0K 78643K 36 0 0 proc 62 63K 95K 78643K 2003 0 0 subproc 32 2K 2K 78643K 503 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 423 0 0 in_multi 35 2K 2K 78643K 533 0 0 ether_multi 1 0K 0K 78643K 64 0 0 mrt 1 0K 0K 78643K 23 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 972 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 166 267K 276K 78643K 16366 0 0 UVM aobj 130 5K 6K 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 2K 78643K 2423 0 0 NDP 23 0K 1K 78643K 250 0 0 temp 249 3561K 4201K 78643K 67503 0 0 kqueue 0 0K 0K 78643K 46 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 98 0 91 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 290 0 288 1 0 1 1 0 8 0 rtentry 112 472 0 427 2 0 2 2 0 8 0 unpcb 120 1941 0 1927 2 1 1 2 0 8 0 syncache 264 28 0 28 10 10 0 1 0 8 0 tcpqe 32 79 0 79 5 5 0 1 0 8 0 tcpcb 544 3209 0 3202 11 10 1 3 0 8 0 inpcb 280 8306 0 8294 18 16 2 4 0 8 1 rttmr 72 6 0 6 6 6 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 61 0 57 1 0 1 1 0 8 0 pkpcb 40 9 0 9 6 6 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 102 0 102 14 13 1 1 0 8 1 pffrag 232 89 0 89 18 17 1 1 0 482 1 pffrnode 88 89 0 89 18 17 1 1 0 8 1 pffrent 40 1874 0 1874 18 17 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 406 0 341 1 0 1 1 0 8 0 pfstkey 112 407 0 342 5 2 3 3 0 8 0 pfstate 328 407 0 342 8 1 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 31 0 30 13 12 1 4 0 8 0 art_heap4 256 2050 0 1825 38 23 15 18 0 8 0 art_table 32 2081 0 1855 4 1 3 3 0 8 0 art_node 16 467 0 427 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 20 2 1 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 810 0 800 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 7768 0 6356 46 0 46 46 0 8 0 ffsino 272 7768 0 6356 95 0 95 95 0 8 0 nchpl 144 13960 0 12346 61 0 61 61 0 8 0 uvmvnodes 72 6291 0 0 115 0 115 115 0 8 0 vnodes 208 6291 0 0 332 0 332 332 0 8 0 namei 1024 52351 0 52351 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 29 0 1 4 0 4 4 0 8 0 vmpool 552 44 0 16 4 1 3 3 0 8 0 scsiplug 64 4 0 4 4 4 0 1 0 8 0 scxspl 192 45483 0 45483 35 34 1 7 0 8 1 plimitpl 152 331 0 323 1 0 1 1 0 8 0 sigapl 432 4338 0 4322 3 1 2 3 0 8 0 futexpl 56 93311 0 93310 1 0 1 1 0 8 0 knotepl 112 1359 0 1340 5 4 1 3 0 8 0 kqueuepl 104 1123 0 1121 2 1 1 2 0 8 0 pipepl 112 2484 0 2465 9 7 2 2 0 8 1 fdescpl 488 4339 0 4322 3 0 3 3 0 8 0 filepl 152 39305 0 39200 27 21 6 7 0 8 1 lockfpl 104 1682 0 1681 1 0 1 1 0 8 0 lockfspl 48 548 0 547 1 0 1 1 0 8 0 sessionpl 112 46 0 35 1 0 1 1 0 8 0 pgrppl 48 107 0 96 1 0 1 1 0 8 0 ucredpl 96 5577 0 5568 1 0 1 1 0 8 0 zombiepl 144 4323 0 4323 2 1 1 1 0 8 1 processpl 896 4357 0 4323 4 0 4 4 0 8 0 procpl 632 14128 0 14082 5 0 5 5 0 8 0 srpgc 64 46 0 46 14 13 1 1 0 8 1 sosppl 128 90 0 90 14 14 0 1 0 8 0 sockpl 384 10700 0 10672 34 29 5 7 0 8 1 mcl64k 65536 516 0 0 63 29 34 34 0 8 0 mcl16k 16384 15 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 4 1 3 3 0 8 0 mcl4k 4096 25 0 0 3 1 2 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 173 0 0 21 1 20 21 0 8 0 mtagpl 80 51 0 0 1 0 1 1 0 8 0 mbufpl 256 659 0 0 29 1 28 29 0 8 0 bufpl 256 19843 0 12795 441 0 441 441 0 8 0 anonpl 16 555202 0 538271 194 112 82 89 0 124 7 amapchunkpl 152 33552 0 33437 53 43 10 12 0 158 3 amappl16 192 24223 0 23172 167 104 63 67 0 8 8 amappl15 184 377 0 376 5 4 1 1 0 8 0 amappl14 176 1655 0 1651 2 1 1 1 0 8 0 amappl13 168 24 0 23 1 0 1 1 0 8 0 amappl12 160 533 0 531 2 1 1 1 0 8 0 amappl11 152 537 0 522 1 0 1 1 0 8 0 amappl10 144 267 0 258 1 0 1 1 0 8 0 amappl9 136 1648 0 1641 1 0 1 1 0 8 0 amappl8 128 1228 0 1183 2 0 2 2 0 8 0 amappl7 120 375 0 365 1 0 1 1 0 8 0 amappl6 112 481 0 463 1 0 1 1 0 8 0 amappl5 104 865 0 850 1 0 1 1 0 8 0 amappl4 96 4022 0 3986 1 0 1 1 0 8 0 amappl3 88 2031 0 2018 1 0 1 1 0 8 0 amappl2 80 32325 0 32244 4 2 2 3 0 8 0 amappl1 72 109294 0 108835 25 15 10 20 0 8 0 amappl 80 14898 0 14841 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 4383 0 4322 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4383 0 4322 1 0 1 1 0 8 0 vmmpekpl 168 38757 0 38710 3 0 3 3 0 8 0 vmmpepl 168 561913 0 559523 344 203 141 151 0 357 32 vmsppl 368 4338 0 4322 2 0 2 2 0 8 0 pdppl 4096 8773 0 8704 9 0 9 9 0 8 0 pvpl 32 1413392 0 1393171 402 210 192 214 0 265 18 pmappl 232 4382 0 4338 6 3 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 740 0 82 19 0 19 19 0 8 0