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 264319 75612 0 0 0 0 syz-executor.0 *212432 94517 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(ffffffff82206693,ffffffff821d0006,3b7,ffffffff821e64e7) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000239bd348,4,ffff8000239bd418,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000bb5e00,840100,ffff800000bb5e58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b21000,ffff800000bb5e00,ffff8000239bd720,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b21000,ffff800000bb5e00,ffff8000239bd720,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff8000239bd710,ffff800000b21000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff8000239bd710,ffff800000b21000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd80627257a0,8040691a,ffff8000239bd710,ffff800020ab1b40) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab1b40,ffff8000239bd828,ffff8000239bd870) at sys_ioctl+0x5b9 syscall(ffff8000239bd8f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239bd8f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,51a29356010) at Xsyscall+0x128 end of kernel end trace frame: 0x51c4bdb0ca0, 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(ffffffff82206693,ffffffff821d0006,3b7,ffffffff821e64e7) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000239bd348,4,ffff8000239bd418,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000bb5e00,840100,ffff800000bb5e58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b21000,ffff800000bb5e00,ffff8000239bd720,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b21000,ffff800000bb5e00,ffff8000239bd720,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff8000239bd710,ffff800000b21000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff8000239bd710,ffff800000b21000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd80627257a0,8040691a,ffff8000239bd710,ffff800020ab1b40) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab1b40,ffff8000239bd828,ffff8000239bd870) at sys_ioctl+0x5b9 syscall(ffff8000239bd8f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239bd8f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,51a29356010) at Xsyscall+0x128 end of kernel end trace frame: 0x51c4bdb0ca0, count: -12 ddb{1}> show registers rdi 0xffffffff81209aa7 db_enter+0x17 rsi 0x41b4 __ALIGN_SIZE+0x31b4 rbp 0xffff8000239bd160 rbx 0xffff8000239bd210 rdx 0x41b5 __ALIGN_SIZE+0x31b5 rcx 0xffff800020d4c000 rax 0xffff800020d4c000 r8 0xffffffff81b7abcf kprintf+0x16f r9 0x1 r10 0x25 r11 0x536107cb61525fb2 r12 0x3000000008 r13 0xffff8000239bd170 r14 0x100 r15 0x1 rip 0xffffffff81209aa8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000239bd150 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=212432 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab09f8,0xffff800020ab13e8 process=0xffff800020a8b190 user=0xffff8000239b8000, vmspace=0xfffffd807f00b450 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 75612 264319 95108 0 7 0 syz-executor.0 75612 243227 95108 0 3 0x4000000 biowait syz-executor.0 94517 203352 55797 0 2 0 syz-executor.1 *94517 212432 55797 0 7 0x4000000 syz-executor.1 55797 400490 5290 0 3 0x82 nanosleep syz-executor.1 95108 176584 5290 0 3 0x82 nanosleep syz-executor.0 26743 87963 0 0 3 0x14200 acct acct 83100 114288 1 0 3 0x100083 ttyin getty 34385 468972 0 0 3 0x14200 bored sosplice 5290 504847 6887 0 3 0x82 thrsleep syz-fuzzer 5290 382509 6887 0 3 0x4000082 thrsleep syz-fuzzer 5290 121439 6887 0 3 0x4000082 kqread syz-fuzzer 5290 263883 6887 0 3 0x4000082 thrsleep syz-fuzzer 5290 265954 6887 0 3 0x4000082 thrsleep syz-fuzzer 5290 121883 6887 0 3 0x4000082 thrsleep syz-fuzzer 5290 305692 6887 0 3 0x4000082 thrsleep syz-fuzzer 5290 46545 6887 0 3 0x4000082 thrsleep syz-fuzzer 5290 35365 6887 0 3 0x4000082 thrsleep syz-fuzzer 5290 415426 6887 0 3 0x4000082 thrsleep syz-fuzzer 6887 282863 3460 0 3 0x10008a pause ksh 3460 502319 11809 0 3 0x92 select sshd 11809 437371 1 0 3 0x80 select sshd 39702 514254 55677 74 3 0x100092 bpf pflogd 55677 24791 1 0 3 0x80 netio pflogd 91830 210680 79396 73 3 0x100090 kqread syslogd 79396 144454 1 0 3 0x100082 netio syslogd 45064 333643 1 77 3 0x100090 poll dhclient 40336 249604 1 0 3 0x80 poll dhclient 3234 437945 0 0 2 0x14200 zerothread 10323 203775 0 0 3 0x14200 aiodoned aiodoned 75875 116652 0 0 3 0x14200 syncer update 24670 280364 0 0 3 0x14200 cleaner cleaner 8788 76389 0 0 3 0x14200 reaper reaper 79696 258510 0 0 3 0x14200 pgdaemon pagedaemon 67863 167133 0 0 3 0x14200 bored crynlk 69847 32376 0 0 3 0x14200 bored crypto 55130 270470 0 0 3 0x40014200 acpi0 acpi0 9894 249843 0 0 3 0x40014200 idle1 95449 232876 0 0 3 0x14200 bored softnet 13810 235860 0 0 3 0x14200 bored systqmp 70027 496060 0 0 3 0x14200 bored systq 44438 42489 0 0 3 0x40014200 bored softclock 88443 147098 0 0 3 0x40014200 idle0 77428 460228 0 0 3 0x14200 bored smr 1 501955 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 75612 (syz-executor.0) thread 0xffff800020ab13d8 (243227) exclusive rrwlock inode r = 0 (0xfffffd805f4b45e8) #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 (0xfffffd805f4b4098) #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 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 Process 94517 (syz-executor.1) thread 0xffff800020ab1b40 (212432) 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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9652 7140K 8349K 78643K 59320 0 0 pcb 14 12K 14K 78643K 3538 0 0 rtable 150 14K 14K 78643K 10126 0 0 ifaddr 124 34K 41K 78643K 3126 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2206 0 0 iov 0 0K 28K 78643K 3642 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1211 76K 77K 78643K 19029 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 259 0 0 VM map 108 54K 54K 78643K 177 0 0 sem 12 0K 1K 78643K 3211 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 17037 0 0 sigio 0 0K 0K 78643K 246 0 0 proc 62 63K 95K 78643K 6417 0 0 subproc 32 2K 2K 78643K 1737 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 1297 0 0 in_multi 48 3K 3K 78643K 1991 0 0 ether_multi 1 0K 0K 78643K 220 0 0 mrt 2 0K 0K 78643K 113 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 150 662K 662K 78643K 150 0 0 exec 0 0K 1K 78643K 3285 0 0 pfkey data 0 0K 4K 78643K 6 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 280 928K 928K 78643K 62239 0 0 UVM aobj 130 4K 4K 78643K 141 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 3833 0 0 NDP 26 0K 1K 78643K 970 0 0 temp 270 3562K 4202K 78643K 503539 0 0 kqueue 0 0K 0K 78643K 182 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 338 0 329 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1458 0 1456 1 0 1 1 0 8 0 rtentry 112 1705 0 1649 2 0 2 2 0 8 0 unpcb 120 12207 0 12170 16 14 2 2 0 8 0 syncache 264 113 0 113 43 42 1 1 0 8 1 sackhl 24 3 0 3 3 3 0 1 0 8 0 tcpqe 32 24 0 24 20 19 1 1 0 8 1 tcpcb 544 7747 0 7743 71 70 1 14 0 8 0 inpcb 280 39424 0 39415 113 110 3 13 0 8 2 rttmr 72 37 0 36 17 16 1 1 0 8 0 ip6q 72 3 0 3 3 3 0 1 0 8 0 ip6af 40 6 0 6 2 2 0 1 0 8 0 nd6 48 242 0 238 11 10 1 1 0 8 0 pkpcb 40 52 0 52 23 23 0 1 0 8 0 swfcl 56 18 0 0 1 0 1 1 0 8 0 ppxss 1128 458 0 458 45 45 0 1 0 8 0 pffrag 232 362 0 362 52 51 1 1 0 482 1 pffrnode 88 359 0 359 52 51 1 1 0 8 1 pffrent 40 7900 0 7900 51 50 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 1413 0 1345 1 0 1 1 0 8 0 pfstkey 112 1416 0 1348 6 3 3 3 0 8 0 pfstate 328 1416 0 1348 18 12 6 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 31 0 30 25 24 1 3 0 8 0 art_heap4 256 7053 0 6738 90 69 21 21 0 8 1 art_table 32 7084 0 6768 7 4 3 3 0 8 0 art_node 16 1690 0 1639 1 0 1 1 0 8 0 sysvmsgpl 40 87 0 47 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 3209 0 3199 1 0 1 1 0 8 0 shmpl 112 139 0 11 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 27580 0 26090 50 1 49 49 0 8 0 ffsino 272 27580 0 26090 103 3 100 100 0 8 0 nchpl 144 54417 0 52740 65 2 63 63 0 8 0 uvmvnodes 72 8568 0 0 156 0 156 156 0 8 0 vnodes 208 8568 0 0 451 0 451 451 0 8 0 namei 1024 194450 0 194449 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 107 0 1 14 0 14 14 0 8 0 vmpool 552 175 0 69 11 3 8 8 0 8 0 scsiplug 64 28 0 28 17 17 0 1 0 8 0 scxspl 192 174818 0 174817 125 123 2 7 0 8 1 plimitpl 152 1359 0 1351 1 0 1 1 0 8 0 sigapl 432 16944 0 16928 7 5 2 3 0 8 0 futexpl 56 386054 0 386054 3 2 1 1 0 8 1 knotepl 112 4340 0 4321 14 13 1 3 0 8 0 kqueuepl 104 4676 0 4674 22 21 1 4 0 8 0 pipepl 112 10022 0 10003 30 29 1 2 0 8 0 fdescpl 488 16945 0 16928 3 0 3 3 0 8 0 filepl 152 157880 0 157778 127 121 6 14 0 8 2 lockfpl 104 6034 0 6033 1 0 1 1 0 8 0 lockfspl 48 1984 0 1983 1 0 1 1 0 8 0 sessionpl 112 117 0 106 1 0 1 1 0 8 0 pgrppl 48 311 0 300 1 0 1 1 0 8 0 ucredpl 96 22940 0 22930 1 0 1 1 0 8 0 zombiepl 144 16934 0 16934 3 2 1 1 0 8 1 processpl 896 16968 0 16934 6 2 4 5 0 8 0 procpl 632 56178 0 56133 5 0 5 5 0 8 0 srpgc 64 156 0 156 49 49 0 1 0 8 0 sosppl 128 333 0 333 57 57 0 1 0 8 0 sockpl 384 53332 0 53284 190 182 8 24 0 8 2 mcl64k 65536 1104 0 0 129 87 42 98 0 8 1 mcl16k 16384 65 0 0 9 6 3 3 0 8 0 mcl12k 12288 105 0 0 2 0 2 2 0 8 0 mcl9k 9216 59 0 0 3 1 2 2 0 8 0 mcl8k 8192 49 0 0 6 3 3 3 0 8 0 mcl4k 4096 35 0 0 5 2 3 3 0 8 0 mcl2k2 2112 16 0 0 2 0 2 2 0 8 0 mcl2k 2048 234 0 0 19 8 11 19 0 8 0 mtagpl 80 680 0 0 4 1 3 3 0 8 0 mbufpl 256 2052 0 0 67 1 66 66 0 8 0 bufpl 256 60198 0 51619 537 0 537 537 0 8 0 anonpl 16 1973790 0 1957070 425 341 84 96 0 124 0 amapchunkpl 152 128797 0 128655 256 245 11 20 0 158 2 amappl16 192 91353 0 90232 498 440 58 69 0 8 0 amappl15 184 1765 0 1765 13 13 0 1 0 8 0 amappl14 176 3071 0 3069 2 1 1 1 0 8 0 amappl13 168 2228 0 2228 17 16 1 1 0 8 1 amappl12 160 2429 0 2422 2 1 1 1 0 8 0 amappl11 152 1800 0 1785 1 0 1 1 0 8 0 amappl10 144 3636 0 3628 1 0 1 1 0 8 0 amappl9 136 3701 0 3694 1 0 1 1 0 8 0 amappl8 128 3201 0 3142 3 0 3 3 0 8 0 amappl7 120 4000 0 3989 1 0 1 1 0 8 0 amappl6 112 1752 0 1737 1 0 1 1 0 8 0 amappl5 104 3383 0 3367 1 0 1 1 0 8 0 amappl4 96 16553 0 16521 1 0 1 1 0 8 0 amappl3 88 5124 0 5109 1 0 1 1 0 8 0 amappl2 80 130594 0 130503 4 2 2 3 0 8 0 amappl1 72 388524 0 388073 25 15 10 20 0 8 0 amappl 80 58317 0 58219 3 0 3 3 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 140 0 11 3 0 3 3 0 8 0 uaddrrnd 24 17120 0 16928 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 17120 0 16928 2 0 2 2 0 8 0 vmmpekpl 168 125891 0 125836 3 0 3 3 0 8 0 vmmpepl 168 2159505 0 2156866 819 666 153 158 0 357 28 vmsppl 368 16944 0 16928 2 0 2 2 0 8 0 pdppl 4096 34247 0 34100 29 10 19 19 0 8 0 pvpl 32 5044314 0 5025178 833 631 202 220 0 265 18 pmappl 232 17119 0 16997 13 5 8 8 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1101 0 287 24 0 24 24 0 8 0