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 *291123 94568 0 0 0x4000000 1K syz-executor.0 308994 72746 0 0 0 0 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(ffffffff82208e6e,ffffffff821d1ce1,3b7,ffffffff821e7d46) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000239aeab8,4,ffff8000239aeb88,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ac9c00,840100,ffff800000ac9c58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a97000,ffff800000ac9c00,ffff8000239aee90,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a97000,ffff800000ac9c00,ffff8000239aee90,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff8000239aee80,ffff800000a97000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff8000239aee80,ffff800000a97000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd806f6cb900,8040691a,ffff8000239aee80,ffff800020ace788) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ace788,ffff8000239aef98,ffff8000239aefe0) at sys_ioctl+0x5b9 syscall(ffff8000239af060) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239af060) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,ac1b60af010) at Xsyscall+0x128 end of kernel end trace frame: 0xac41414a0d0, 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(ffffffff82208e6e,ffffffff821d1ce1,3b7,ffffffff821e7d46) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000239aeab8,4,ffff8000239aeb88,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ac9c00,840100,ffff800000ac9c58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a97000,ffff800000ac9c00,ffff8000239aee90,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a97000,ffff800000ac9c00,ffff8000239aee90,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff8000239aee80,ffff800000a97000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff8000239aee80,ffff800000a97000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd806f6cb900,8040691a,ffff8000239aee80,ffff800020ace788) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ace788,ffff8000239aef98,ffff8000239aefe0) at sys_ioctl+0x5b9 syscall(ffff8000239af060) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239af060) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,ac1b60af010) at Xsyscall+0x128 end of kernel end trace frame: 0xac41414a0d0, count: -12 ddb{1}> show registers rdi 0xffffffff81823987 db_enter+0x17 rsi 0x3e97 __ALIGN_SIZE+0x2e97 rbp 0xffff8000239ae8d0 rbx 0xffff8000239ae980 rdx 0x3e98 __ALIGN_SIZE+0x2e98 rcx 0xffff800023d8a000 rax 0xffff800023d8a000 r8 0xffffffff81cd62ff kprintf+0x16f r9 0x1 r10 0x25 r11 0x5095bdb6ef2f8690 r12 0x3000000008 r13 0xffff8000239ae8e0 r14 0x100 r15 0x1 rip 0xffffffff81823988 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000239ae8c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=291123 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace298,0xffffffff826651a0 process=0xffff800020a8a710 user=0xffff8000239aa000, vmspace=0xfffffd807f00a170 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 94568 323207 26706 0 2 0 syz-executor.0 *94568 291123 26706 0 7 0x4000000 syz-executor.0 72746 308994 9139 0 7 0 syz-executor.1 72746 380953 9139 0 3 0x4000000 biowait syz-executor.1 26706 76986 93920 0 3 0x82 nanosleep syz-executor.0 9139 12942 93920 0 3 0x82 nanosleep syz-executor.1 59209 160991 1 0 3 0x100083 ttyopn getty 27546 286645 0 0 3 0x14200 acct acct 24695 245175 0 0 3 0x14200 bored sosplice 93920 335440 65921 0 3 0x82 thrsleep syz-fuzzer 93920 461658 65921 0 3 0x4000082 thrsleep syz-fuzzer 93920 9941 65921 0 3 0x4000082 thrsleep syz-fuzzer 93920 437767 65921 0 3 0x4000082 thrsleep syz-fuzzer 93920 313145 65921 0 3 0x4000082 thrsleep syz-fuzzer 93920 479073 65921 0 3 0x4000082 thrsleep syz-fuzzer 93920 504033 65921 0 3 0x4000082 kqread syz-fuzzer 93920 463265 65921 0 3 0x4000082 thrsleep syz-fuzzer 93920 315510 65921 0 3 0x4000082 thrsleep syz-fuzzer 93920 133911 65921 0 3 0x4000082 thrsleep syz-fuzzer 65921 179249 66598 0 3 0x10008a pause ksh 66598 105324 49506 0 3 0x92 select sshd 49506 328498 1 0 3 0x80 select sshd 84820 242925 74090 74 3 0x100092 bpf pflogd 74090 217009 1 0 3 0x80 netio pflogd 26927 414142 54073 73 3 0x100090 kqread syslogd 54073 22339 1 0 3 0x100082 netio syslogd 39206 386561 1 77 3 0x100090 poll dhclient 47483 468049 1 0 3 0x80 poll dhclient 52498 31215 0 0 2 0x14200 zerothread 73953 422987 0 0 3 0x14200 aiodoned aiodoned 56711 375310 0 0 3 0x14200 syncer update 53697 105422 0 0 3 0x14200 cleaner cleaner 66426 243435 0 0 3 0x14200 reaper reaper 10326 403876 0 0 3 0x14200 pgdaemon pagedaemon 95826 53044 0 0 3 0x14200 bored crynlk 37231 182616 0 0 3 0x14200 bored crypto 98208 6892 0 0 3 0x40014200 acpi0 acpi0 82578 322565 0 0 3 0x40014200 idle1 21164 96035 0 0 3 0x14200 bored softnet 85046 320822 0 0 3 0x14200 bored systqmp 28761 402972 0 0 3 0x14200 bored systq 82585 108630 0 0 3 0x40014200 bored softclock 11810 195644 0 0 3 0x40014200 idle0 35107 449355 0 0 3 0x14200 bored smr 1 281076 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 94568 (syz-executor.0) thread 0xffff800020ace788 (291123) exclusive rwlock netlock r = 0 (0xffffffff824d6738) #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 (0xffffffff82666748) #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 Process 72746 (syz-executor.1) thread 0xffff800020ace298 (380953) exclusive rrwlock inode r = 0 (0xfffffd806f74c918) #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 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_makeinode+0xaa sys/ufs/ufs/ufs_vnops.c:1832 #7 ufs_mknod+0x4e sys/ufs/ufs/ufs_vnops.c:172 #8 VOP_MKNOD+0xc6 sys/kern/vfs_vops.c:135 #9 domknodat+0x31e sys/kern/vfs_syscalls.c:1565 #10 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #10 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8075365a30) #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:562 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domknodat+0x92 sys/kern/vfs_syscalls.c:1517 #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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9615 6478K 8129K 78643K 32854 0 0 pcb 14 8K 8K 78643K 1288 0 0 rtable 119 13K 14K 78643K 4053 0 0 ifaddr 99 26K 28K 78643K 1233 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1670 0 0 iov 0 0K 32K 78643K 1369 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1213 76K 77K 78643K 8720 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 66 0 0 VM map 2 1K 1K 78643K 39 0 0 sem 12 0K 0K 78643K 1655 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 6826 0 0 sigio 0 0K 0K 78643K 82 0 0 proc 62 63K 95K 78643K 2797 0 0 subproc 32 2K 2K 78643K 697 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 406 0 0 in_multi 25 1K 2K 78643K 664 0 0 ether_multi 1 0K 0K 78643K 39 0 0 mrt 0 0K 0K 78643K 32 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 1419 0 0 pfkey data 0 0K 4K 78643K 3 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 158 25K 34K 78643K 25391 0 0 UVM aobj 130 4K 4K 78643K 134 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 1377 0 0 NDP 23 0K 1K 78643K 387 0 0 temp 250 3561K 4201K 78643K 243812 0 0 kqueue 0 0K 0K 78643K 41 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 137 0 131 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 507 0 505 1 0 1 1 0 8 0 rtentry 112 662 0 619 2 0 2 2 0 8 0 unpcb 120 2802 0 2789 1 0 1 1 0 8 0 syncache 264 20 0 20 10 10 0 1 0 8 0 tcpqe 32 5075 0 5075 3 3 0 2 0 8 0 tcpcb 544 2026 0 2022 3 2 1 2 0 8 0 inpcb 280 7065 0 7053 15 13 2 3 0 8 1 rttmr 72 12 0 11 1 0 1 1 0 8 0 nd6 48 91 0 89 5 4 1 1 0 8 0 pkpcb 40 38 0 38 15 15 0 1 0 8 0 swfcl 56 8 0 0 1 0 1 1 0 8 0 ppxss 1128 167 0 167 14 13 1 1 0 8 1 pffrag 232 103 0 103 21 20 1 1 0 482 1 pffrnode 88 103 0 103 21 20 1 1 0 8 1 pffrent 40 233 0 233 21 20 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 435 0 368 1 0 1 1 0 8 0 pfstkey 112 435 0 368 3 0 3 3 0 8 0 pfstate 328 435 0 367 8 1 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 11 0 10 7 6 1 3 0 8 0 art_heap4 256 2681 0 2439 39 23 16 17 0 8 0 art_table 32 2692 0 2449 8 5 3 3 0 8 0 art_node 16 651 0 612 1 0 1 1 0 8 0 sysvmsgpl 40 36 0 27 1 0 1 1 0 8 0 semapl 112 1653 0 1643 1 0 1 1 0 8 0 shmpl 112 132 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 11613 0 10165 47 0 47 47 0 8 0 ffsino 272 11613 0 10165 98 1 97 97 0 8 0 nchpl 144 24037 0 23574 61 41 20 61 0 8 0 uvmvnodes 72 7115 0 0 130 0 130 130 0 8 0 vnodes 208 7115 0 0 375 0 375 375 0 8 0 namei 1024 88304 0 88303 4 3 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 37 0 37 14 13 1 1 0 8 1 scsiplug 64 11 0 11 7 7 0 1 0 8 0 scxspl 192 73157 0 73156 44 41 3 7 0 8 2 plimitpl 152 556 0 548 1 0 1 1 0 8 0 sigapl 432 6911 0 6895 4 2 2 3 0 8 0 futexpl 56 174625 0 174625 1 0 1 1 0 8 1 knotepl 112 1669 0 1650 5 3 2 2 0 8 1 kqueuepl 104 1728 0 1726 2 1 1 2 0 8 0 pipepl 112 4010 0 3991 14 13 1 2 0 8 0 fdescpl 488 6912 0 6895 3 0 3 3 0 8 0 filepl 152 62404 0 62302 27 21 6 7 0 8 2 lockfpl 104 9952 0 9951 1 0 1 1 0 8 0 lockfspl 48 4318 0 4317 1 0 1 1 0 8 0 sessionpl 112 59 0 48 1 0 1 1 0 8 0 pgrppl 48 215 0 204 1 0 1 1 0 8 0 ucredpl 96 7496 0 7487 1 0 1 1 0 8 0 zombiepl 144 6895 0 6895 4 3 1 1 0 8 1 processpl 896 6929 0 6895 5 1 4 5 0 8 0 procpl 632 22588 0 22543 5 0 5 5 0 8 0 srpgc 64 67 0 67 18 17 1 1 0 8 1 sosppl 128 85 0 85 17 17 0 1 0 8 0 sockpl 384 10490 0 10466 21 17 4 5 0 8 1 mcl64k 65536 258 0 0 33 27 6 33 0 8 0 mcl16k 16384 25 0 0 4 1 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 34 0 0 4 1 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 231 0 0 26 5 21 26 0 8 0 mtagpl 80 103 0 0 1 0 1 1 0 8 0 mbufpl 256 680 0 0 30 0 30 30 0 8 0 bufpl 256 35249 0 27567 483 2 481 481 0 8 0 anonpl 16 781878 0 765674 222 152 70 83 0 124 0 amapchunkpl 152 52011 0 51870 104 97 7 20 0 158 0 amappl16 192 34600 0 33691 202 148 54 58 0 8 7 amappl15 184 1407 0 1407 6 5 1 1 0 8 1 amappl14 176 2242 0 2239 2 1 1 1 0 8 0 amappl13 168 1199 0 1197 6 5 1 1 0 8 0 amappl12 160 656 0 654 1 0 1 1 0 8 0 amappl11 152 976 0 961 1 0 1 1 0 8 0 amappl10 144 586 0 581 1 0 1 1 0 8 0 amappl9 136 1204 0 1198 1 0 1 1 0 8 0 amappl8 128 810 0 744 5 2 3 3 0 8 0 amappl7 120 745 0 735 1 0 1 1 0 8 0 amappl6 112 877 0 863 1 0 1 1 0 8 0 amappl5 104 1257 0 1241 1 0 1 1 0 8 0 amappl4 96 6903 0 6864 4 3 1 2 0 8 0 amappl3 88 3069 0 3063 1 0 1 1 0 8 0 amappl2 80 54418 0 54333 4 2 2 3 0 8 0 amappl1 72 164882 0 164426 26 16 10 20 0 8 0 amappl 80 23554 0 23507 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 133 0 4 3 0 3 3 0 8 0 uaddrrnd 24 6949 0 6895 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6949 0 6895 1 0 1 1 0 8 0 vmmpekpl 168 61337 0 61303 2 0 2 2 0 8 0 vmmpepl 168 876503 0 874300 358 225 133 134 0 357 31 vmsppl 368 6911 0 6895 2 0 2 2 0 8 0 pdppl 4096 13905 0 13864 7 1 6 6 0 8 0 pvpl 32 2048015 0 2028504 437 256 181 199 0 265 19 pmappl 232 6948 0 6932 13 11 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 750 0 75 20 0 20 20 0 8 0