Qàn.Qàn.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 517163 68377 0 0 0 0 syz-executor.1 *251234 92647 0 0x10 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(ffffffff82205f9e,ffffffff821d0b37,3b7,ffffffff821e6def) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000223bb328,4,ffff8000223bb3f8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ae4b00,840100,ffff800000ae4b58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b61000,ffff800000ae4b00,ffff8000223bb700,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b61000,ffff800000ae4b00,ffff8000223bb700,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff8000223bb6f0,ffff800000b61000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff8000223bb6f0,ffff800000b61000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8065ae6d98,8040691a,ffff8000223bb6f0,ffff800020abec80) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abec80,ffff8000223bb808,ffff8000223bb850) at sys_ioctl+0x5b9 syscall(ffff8000223bb8d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000223bb8d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,10389920010) at Xsyscall+0x128 end of kernel end trace frame: 0x105ffc90270, 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(ffffffff82205f9e,ffffffff821d0b37,3b7,ffffffff821e6def) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000223bb328,4,ffff8000223bb3f8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ae4b00,840100,ffff800000ae4b58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b61000,ffff800000ae4b00,ffff8000223bb700,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b61000,ffff800000ae4b00,ffff8000223bb700,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff8000223bb6f0,ffff800000b61000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff8000223bb6f0,ffff800000b61000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8065ae6d98,8040691a,ffff8000223bb6f0,ffff800020abec80) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abec80,ffff8000223bb808,ffff8000223bb850) at sys_ioctl+0x5b9 syscall(ffff8000223bb8d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000223bb8d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,10389920010) at Xsyscall+0x128 end of kernel end trace frame: 0x105ffc90270, count: -12 ddb{1}> show registers rdi 0xffffffff81c952f7 db_enter+0x17 rsi 0x3e3e __ALIGN_SIZE+0x2e3e rbp 0xffff8000223bb140 rbx 0xffff8000223bb1f0 rdx 0x3e3f __ALIGN_SIZE+0x2e3f rcx 0xffff8000227e2000 rax 0xffff8000227e2000 r8 0xffffffff8199ba8f kprintf+0x16f r9 0x1 r10 0x25 r11 0xfa424077a8b807e7 r12 0x3000000008 r13 0xffff8000223bb150 r14 0x100 r15 0x1 rip 0xffffffff81c952f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000223bb130 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=251234 stat=onproc flags process=10 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe2a0,0xffff800020abe528 process=0xffff800020add880 user=0xffff8000223b6000, vmspace=0xfffffd807f00b000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 68377 517163 12508 0 7 0 syz-executor.1 68377 5498 12508 0 3 0x4000000 biowait syz-executor.1 92647 71417 68209 0 2 0x10 syz-executor.0 *92647 251234 68209 0 7 0x4000010 syz-executor.0 12508 413608 99825 0 3 0x82 nanosleep syz-executor.1 68209 181077 99825 0 3 0x82 nanosleep syz-executor.0 66432 441568 0 0 3 0x14200 acct acct 4254 20105 1 0 3 0x100083 ttyopn getty 60045 459370 0 0 3 0x14200 bored sosplice 99825 202285 12397 0 3 0x82 thrsleep syz-fuzzer 99825 287579 12397 0 3 0x4000082 thrsleep syz-fuzzer 99825 424572 12397 0 3 0x4000082 thrsleep syz-fuzzer 99825 414751 12397 0 3 0x4000082 kqread syz-fuzzer 99825 164717 12397 0 3 0x4000082 thrsleep syz-fuzzer 99825 485375 12397 0 3 0x4000082 thrsleep syz-fuzzer 99825 398193 12397 0 3 0x4000082 thrsleep syz-fuzzer 99825 154131 12397 0 3 0x4000082 thrsleep syz-fuzzer 99825 322280 12397 0 3 0x4000082 thrsleep syz-fuzzer 99825 219525 12397 0 3 0x4000082 thrsleep syz-fuzzer 12397 122367 31121 0 3 0x10008a pause ksh 31121 164054 26666 0 3 0x92 select sshd 26666 411518 1 0 3 0x80 select sshd 54264 218963 97675 74 3 0x100092 bpf pflogd 97675 85252 1 0 3 0x80 netio pflogd 73502 466216 60379 73 3 0x100090 kqread syslogd 60379 380530 1 0 3 0x100082 netio syslogd 67684 374058 1 77 3 0x100090 poll dhclient 45407 459122 1 0 3 0x80 poll dhclient 79071 301695 0 0 2 0x14200 zerothread 6942 358693 0 0 3 0x14200 aiodoned aiodoned 24775 306906 0 0 3 0x14200 syncer update 36321 512003 0 0 3 0x14200 cleaner cleaner 47765 71330 0 0 3 0x14200 reaper reaper 41520 444192 0 0 3 0x14200 pgdaemon pagedaemon 68238 479445 0 0 3 0x14200 bored crynlk 93919 274180 0 0 3 0x14200 bored crypto 74409 429874 0 0 3 0x40014200 acpi0 acpi0 53463 449547 0 0 3 0x40014200 idle1 80863 132602 0 0 3 0x14200 bored softnet 45531 129858 0 0 3 0x14200 bored systqmp 53808 131218 0 0 3 0x14200 bored systq 1194 325626 0 0 3 0x40014200 bored softclock 79615 409474 0 0 3 0x40014200 idle0 5411 332435 0 0 3 0x14200 bored smr 1 432401 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 68377 (syz-executor.1) thread 0xffff800020abe518 (5498) exclusive rrwlock inode r = 0 (0xfffffd806ec0a4d8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vn_write+0x11b sys/kern/vfs_vnops.c:414 #6 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #7 sys_write+0x83 sys/kern/sys_generic.c:284 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 Process 92647 (syz-executor.0) thread 0xffff800020abec80 (251234) exclusive rwlock netlock r = 0 (0xffffffff824d0138) #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 (0xffffffff82668f60) #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 9628 6733K 8956K 78643K 21793 0 0 pcb 13 10K 12K 78643K 1005 0 0 rtable 127 13K 14K 78643K 2981 0 0 ifaddr 94 21K 22K 78643K 889 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1783 0 0 iov 0 0K 32K 78643K 950 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1235 78K 79K 78643K 5199 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 76 0 0 VM map 54 27K 27K 78643K 74 0 0 sem 12 0K 1K 78643K 1719 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 5086 0 0 sigio 0 0K 0K 78643K 709 0 0 proc 61 63K 95K 78643K 2007 0 0 subproc 32 2K 2K 78643K 493 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 814 0 0 in_multi 33 2K 2K 78643K 575 0 0 ether_multi 1 0K 0K 78643K 50 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 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 1070 0 0 pfkey data 0 0K 4K 78643K 4 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 206 431K 431K 78643K 18508 0 0 UVM aobj 130 6K 6K 78643K 136 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 1078 0 0 NDP 22 0K 0K 78643K 275 0 0 temp 245 3567K 4205K 78643K 176411 0 0 kqueue 0 0K 0K 78643K 46 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 92 0 86 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 478 0 476 1 0 1 1 0 8 0 rtentry 112 530 0 483 2 0 2 2 0 8 0 unpcb 120 4477 0 4464 5 4 1 2 0 8 0 syncache 264 21 0 21 11 10 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 278 0 278 7 6 1 1 0 8 1 tcpcb 544 2596 0 2591 46 45 1 14 0 8 0 inpcb 280 8644 0 8633 31 29 2 9 0 8 1 rttmr 72 2 0 2 2 2 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 nd6 48 70 0 67 3 2 1 1 0 8 0 pkpcb 40 37 0 37 11 11 0 1 0 8 0 swfcl 56 6 0 0 1 0 1 1 0 8 0 ppxss 1128 115 0 115 11 10 1 1 0 8 1 pffrag 232 112 0 112 10 9 1 1 0 482 1 pffrnode 88 112 0 112 10 9 1 1 0 8 1 pffrent 40 3943 0 3943 10 9 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 664 0 538 2 0 2 2 0 8 0 pfstkey 112 664 0 538 7 1 6 6 0 8 1 pfstate 328 664 0 537 18 2 16 16 0 8 1 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 11 0 9 9 7 2 4 0 8 0 art_heap4 256 2176 0 1956 31 15 16 16 0 8 0 art_table 32 2187 0 1965 2 0 2 2 0 8 0 art_node 16 521 0 478 1 0 1 1 0 8 0 sysvmsgpl 40 58 0 36 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 1717 0 1707 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10755 0 9321 47 0 47 47 0 8 0 ffsino 272 10755 0 9321 96 0 96 96 0 8 0 nchpl 144 19597 0 17979 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 68008 0 68008 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 52 0 0 7 0 7 7 0 8 0 vmpool 552 72 0 20 6 2 4 4 0 8 0 scsiplug 64 9 0 9 7 7 0 1 0 8 0 scxspl 192 68108 0 68107 27 26 1 7 0 8 0 plimitpl 152 431 0 423 1 0 1 1 0 8 0 sigapl 432 5207 0 5191 3 1 2 3 0 8 0 futexpl 56 122436 0 122436 1 0 1 1 0 8 1 knotepl 112 1276 0 1256 5 4 1 2 0 8 0 kqueuepl 104 1734 0 1731 12 11 1 4 0 8 0 pipepl 112 4174 0 4155 14 13 1 2 0 8 0 fdescpl 488 5208 0 5191 3 0 3 3 0 8 0 filepl 152 50699 0 50590 52 47 5 14 0 8 0 lockfpl 104 9731 0 9729 1 0 1 1 0 8 0 lockfspl 48 2430 0 2428 1 0 1 1 0 8 0 sessionpl 112 47 0 36 1 0 1 1 0 8 0 pgrppl 48 108 0 97 1 0 1 1 0 8 0 ucredpl 96 5267 0 5255 1 0 1 1 0 8 0 zombiepl 144 5194 0 5194 2 1 1 1 0 8 1 processpl 896 5228 0 5194 4 0 4 4 0 8 0 procpl 632 16296 0 16251 6 1 5 5 0 8 0 srpgc 64 43 0 43 17 16 1 1 0 8 1 sosppl 128 76 0 76 15 15 0 1 0 8 0 sockpl 384 13790 0 13764 63 58 5 14 0 8 2 mcl64k 65536 281 0 0 34 11 23 34 0 8 0 mcl16k 16384 30 0 0 4 2 2 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 22 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 41 0 0 5 2 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 205 0 0 24 6 18 24 0 8 0 mtagpl 80 87 0 0 1 0 1 1 0 8 0 mbufpl 256 628 0 0 25 0 25 25 0 8 0 bufpl 256 24267 0 17219 441 0 441 441 0 8 0 anonpl 16 586762 0 567291 177 83 94 98 0 124 10 amapchunkpl 152 36803 0 36626 59 50 9 15 0 158 0 amappl16 192 26838 0 25711 173 108 65 69 0 8 8 amappl15 184 309 0 305 6 5 1 1 0 8 0 amappl14 176 1106 0 1105 1 0 1 1 0 8 0 amappl13 168 91 0 90 1 0 1 1 0 8 0 amappl12 160 435 0 432 1 0 1 1 0 8 0 amappl11 152 1856 0 1841 1 0 1 1 0 8 0 amappl10 144 736 0 730 1 0 1 1 0 8 0 amappl9 136 1322 0 1316 1 0 1 1 0 8 0 amappl8 128 855 0 811 2 0 2 2 0 8 0 amappl7 120 859 0 849 1 0 1 1 0 8 0 amappl6 112 1805 0 1791 1 0 1 1 0 8 0 amappl5 104 801 0 787 1 0 1 1 0 8 0 amappl4 96 5079 0 5042 2 1 1 2 0 8 0 amappl3 88 1032 0 1017 1 0 1 1 0 8 0 amappl2 80 39118 0 39028 3 1 2 3 0 8 0 amappl1 72 126286 0 125819 25 15 10 20 0 8 0 amappl 80 17057 0 16983 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 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 5280 0 5191 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5280 0 5191 1 0 1 1 0 8 0 vmmpekpl 168 43524 0 43473 3 0 3 3 0 8 0 vmmpepl 168 664350 0 661797 301 153 148 148 0 357 33 vmsppl 368 5207 0 5191 2 0 2 2 0 8 0 pdppl 4096 10567 0 10474 13 1 12 12 0 8 0 pvpl 32 1588329 0 1566782 377 166 211 218 0 265 27 pmappl 232 5279 0 5211 6 1 5 5 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 742 0 93 20 1 19 20 0 8 0