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 * 88917 2015 0 0 0x4000000 0K syz-executor.1 104815 52208 0 0x2 0x4000001 1 syz-fuzzer 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(ffffffff82208559,ffffffff821d3ea6,3b7,ffffffff821ea2fc) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800020b438a8,4,ffff800020b43978,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000afb100,840100,ffff800000afb158,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000abc000,ffff800000afb100,ffff800020b43c80,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000abc000,ffff800000afb100,ffff800020b43c80,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800020b43c70,ffff800000abc000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800020b43c70,ffff800000abc000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8064dc2938,8040691a,ffff800020b43c70,ffff800020abe508) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe508,ffff800020b43d88,ffff800020b43dd0) at sys_ioctl+0x5b9 syscall(ffff800020b43e50) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b43e50) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,4405877b010) at Xsyscall+0x128 end of kernel end trace frame: 0x443346debb0, 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(ffffffff82208559,ffffffff821d3ea6,3b7,ffffffff821ea2fc) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800020b438a8,4,ffff800020b43978,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000afb100,840100,ffff800000afb158,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000abc000,ffff800000afb100,ffff800020b43c80,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000abc000,ffff800000afb100,ffff800020b43c80,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800020b43c70,ffff800000abc000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800020b43c70,ffff800000abc000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8064dc2938,8040691a,ffff800020b43c70,ffff800020abe508) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe508,ffff800020b43d88,ffff800020b43dd0) at sys_ioctl+0x5b9 syscall(ffff800020b43e50) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b43e50) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,4405877b010) at Xsyscall+0x128 end of kernel end trace frame: 0x443346debb0, count: -12 ddb{0}> show registers rdi 0xffffffff81463877 db_enter+0x17 rsi 0x4a6e __ALIGN_SIZE+0x3a6e rbp 0xffff800020b436c0 rbx 0xffff800020b43770 rdx 0x4a6f __ALIGN_SIZE+0x3a6f rcx 0xffff80002135c000 rax 0xffff80002135c000 r8 0xffffffff81bed2cf kprintf+0x16f r9 0x1 r10 0x25 r11 0x4c4303cf94ee34a0 r12 0x3000000008 r13 0xffff800020b436d0 r14 0x100 r15 0x1 rip 0xffffffff81463878 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b436b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=88917 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe018,0xffffffff826576c8 process=0xffff800020add500 user=0xffff800020b3e000, vmspace=0xfffffd807f00b170 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 2015 323946 52134 0 2 0 syz-executor.1 * 2015 88917 52134 0 7 0x4000000 syz-executor.1 52134 116691 52208 0 3 0x82 nanosleep syz-executor.1 41503 395843 52208 0 2 0x2 syz-executor.0 83473 379365 0 0 3 0x14200 acct acct 76077 311179 0 0 3 0x14200 bored sosplice 52208 72748 95592 0 2 0x2 syz-fuzzer 52208 389253 95592 0 3 0x4000082 nanosleep syz-fuzzer 52208 104815 95592 0 7 0x4000003 syz-fuzzer 52208 215048 95592 0 3 0x4000082 thrsleep syz-fuzzer 52208 65589 95592 0 3 0x4000082 thrsleep syz-fuzzer 52208 440906 95592 0 3 0x4000082 thrsleep syz-fuzzer 52208 123536 95592 0 3 0x4000082 thrsleep syz-fuzzer 52208 60453 95592 0 3 0x4000082 thrsleep syz-fuzzer 52208 510851 95592 0 3 0x4000082 thrsleep syz-fuzzer 52208 328156 95592 0 3 0x4000082 thrsleep syz-fuzzer 95592 468085 25463 0 3 0x10008a pause ksh 25463 252568 13542 0 3 0x92 select sshd 13692 263918 1 0 3 0x100083 ttyin getty 13542 343276 1 0 3 0x80 select sshd 65075 39206 50729 74 3 0x100092 bpf pflogd 50729 31354 1 0 3 0x80 netio pflogd 23185 302039 30624 73 3 0x100090 kqread syslogd 30624 77096 1 0 3 0x100082 netio syslogd 18073 502152 1 77 2 0x100090 dhclient 90537 285064 1 0 3 0x80 poll dhclient 41730 451035 0 0 2 0x14200 zerothread 51127 347986 0 0 3 0x14200 aiodoned aiodoned 84104 502788 0 0 3 0x14200 syncer update 7405 506705 0 0 3 0x14200 cleaner cleaner 86949 501293 0 0 3 0x14200 reaper reaper 68781 476324 0 0 3 0x14200 pgdaemon pagedaemon 74611 44033 0 0 3 0x14200 bored crynlk 28253 145556 0 0 3 0x14200 bored crypto 16212 482814 0 0 3 0x40014200 acpi0 acpi0 76596 249904 0 0 3 0x40014200 idle1 62239 117422 0 0 2 0x14200 softnet 73283 139699 0 0 3 0x14200 bored systqmp 52861 108147 0 0 3 0x14200 bored systq 46573 353146 0 0 3 0x40014200 bored softclock 75176 92026 0 0 3 0x40014200 idle0 2769 75636 0 0 3 0x14200 bored smr 1 295791 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 2015 (syz-executor.1) thread 0xffff800020abe508 (88917) exclusive rwlock netlock r = 0 (0xffffffff8250dc58) #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 (0xffffffff8266a578) #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 41503 (syz-executor.0) thread 0xffff800020abe9f8 (395843) exclusive rrwlock inode r = 0 (0xfffffd80655d7818) #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 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ufs_lookup+0x14b4 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806e4335e8) #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 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9586 6571K 7448K 78643K 15339 0 0 pcb 14 10K 12K 78643K 4738 0 0 rtable 106 4K 5K 78643K 1637 0 0 ifaddr 80 19K 20K 78643K 530 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1535 0 0 iov 0 0K 32K 78643K 422 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1220 77K 77K 78643K 2977 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 22 0 0 VM map 2 1K 1K 78643K 11 0 0 sem 12 0K 1K 78643K 900 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 2142 0 0 sigio 0 0K 0K 78643K 21 0 0 proc 62 63K 83K 78643K 1170 0 0 subproc 32 2K 2K 78643K 255 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 129 0 0 in_multi 23 1K 2K 78643K 244 0 0 ether_multi 1 0K 0K 78643K 12 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 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 574 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 113 22K 32K 78643K 8756 0 0 UVM aobj 130 4K 4K 78643K 132 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 439 0 0 NDP 19 0K 0K 78643K 162 0 0 temp 222 3560K 4200K 78643K 41801 0 0 kqueue 0 0K 0K 78643K 14 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 57 0 50 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 160 0 158 1 0 1 1 0 8 0 rtentry 112 256 0 216 2 0 2 2 0 8 0 unpcb 120 1541 0 1526 5 3 2 2 0 8 1 syncache 264 8 0 8 3 3 0 1 0 8 0 tcpqe 32 6256 0 6256 3 3 0 1 0 8 0 tcpcb 544 670 0 666 1 0 1 1 0 8 0 inpcb 280 6456 0 6447 21 17 4 6 0 8 3 rttmr 72 5 0 4 2 1 1 1 0 8 0 nd6 48 37 0 35 1 0 1 1 0 8 0 pkpcb 40 24 0 24 7 6 1 1 0 8 1 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 73 0 73 6 5 1 1 0 8 1 pffrag 232 16 0 16 7 6 1 1 0 482 1 pffrnode 88 16 0 16 7 6 1 1 0 8 1 pffrent 40 37 0 37 7 6 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 147 0 90 1 0 1 1 0 8 0 pfstkey 112 147 0 90 2 0 2 2 0 8 0 pfstate 328 147 0 88 5 0 5 5 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 1127 0 918 25 9 16 16 0 8 0 art_table 32 1128 0 918 4 2 2 3 0 8 0 art_node 16 250 0 214 1 0 1 1 0 8 0 sysvmsgpl 40 79 0 39 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 896 0 886 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4665 0 3256 46 0 46 46 0 8 0 ffsino 272 4665 0 3256 96 1 95 95 0 8 0 nchpl 144 7994 0 7525 61 40 21 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 26415 0 26415 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 9 0 9 5 5 0 1 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 26698 0 26698 25 22 3 7 0 8 3 plimitpl 152 200 0 192 1 0 1 1 0 8 0 sigapl 432 2303 0 2288 3 1 2 3 0 8 0 futexpl 56 71891 0 71891 1 0 1 1 0 8 1 knotepl 112 654 0 635 4 3 1 2 0 8 0 kqueuepl 104 568 0 566 4 3 1 2 0 8 0 pipepl 112 1644 0 1625 9 7 2 2 0 8 1 fdescpl 488 2304 0 2288 3 0 3 3 0 8 0 filepl 152 20774 0 20672 20 13 7 8 0 8 2 lockfpl 104 722 0 721 1 0 1 1 0 8 0 lockfspl 48 244 0 243 1 0 1 1 0 8 0 sessionpl 112 31 0 20 1 0 1 1 0 8 0 pgrppl 48 62 0 51 1 0 1 1 0 8 0 ucredpl 96 2355 0 2346 1 0 1 1 0 8 0 zombiepl 144 2288 0 2288 3 2 1 1 0 8 1 processpl 896 2321 0 2288 4 0 4 4 0 8 0 procpl 632 7294 0 7251 5 0 5 5 0 8 1 srpgc 64 21 0 21 7 6 1 1 0 8 1 sosppl 128 31 0 31 5 4 1 1 0 8 1 sockpl 384 8264 0 8238 35 28 7 11 0 8 3 mcl64k 65536 22 0 0 3 1 2 3 0 8 0 mcl16k 16384 25 0 0 4 1 3 3 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 26 0 0 4 1 3 3 0 8 0 mcl4k 4096 13 0 0 2 0 2 2 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 195 0 0 23 2 21 23 0 8 0 mtagpl 80 36 0 0 1 0 1 1 0 8 0 mbufpl 256 334 0 0 16 0 16 16 0 8 0 bufpl 256 13069 0 6021 441 0 441 441 0 8 0 anonpl 16 288681 0 272320 137 60 77 86 0 124 6 amapchunkpl 152 17788 0 17678 35 26 9 12 0 158 1 amappl16 192 12008 0 11039 123 73 50 61 0 8 0 amappl15 184 13 0 12 1 0 1 1 0 8 0 amappl14 176 328 0 326 2 1 1 1 0 8 0 amappl13 168 347 0 347 2 2 0 1 0 8 0 amappl12 160 152 0 150 5 4 1 1 0 8 0 amappl11 152 700 0 685 1 0 1 1 0 8 0 amappl10 144 500 0 495 1 0 1 1 0 8 0 amappl9 136 935 0 928 1 0 1 1 0 8 0 amappl8 128 457 0 424 2 0 2 2 0 8 0 amappl7 120 567 0 559 1 0 1 1 0 8 0 amappl6 112 722 0 708 1 0 1 1 0 8 0 amappl5 104 421 0 405 1 0 1 1 0 8 0 amappl4 96 2583 0 2555 1 0 1 1 0 8 0 amappl3 88 321 0 314 1 0 1 1 0 8 0 amappl2 80 17246 0 17172 3 1 2 3 0 8 0 amappl1 72 61550 0 61109 26 15 11 20 0 8 0 amappl 80 7792 0 7754 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 131 0 2 3 0 3 3 0 8 0 uaddrrnd 24 2313 0 2288 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2313 0 2288 1 0 1 1 0 8 0 vmmpekpl 168 21280 0 21248 2 0 2 2 0 8 0 vmmpepl 168 299181 0 297079 242 108 134 134 0 357 34 vmsppl 368 2303 0 2288 2 0 2 2 0 8 0 pdppl 4096 4633 0 4594 7 1 6 6 0 8 0 pvpl 32 776972 0 757356 288 92 196 204 0 265 29 pmappl 232 2312 0 2297 9 7 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 635 0 21 18 0 18 18 0 8 0