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 275967 29976 0 0 0 0 syz-executor.0 *297767 29976 0 0 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(ffffffff82206836,ffffffff821d2b89,3b7,ffffffff821e91c5) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022b751e8,4,ffff800022b752b8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000abb000,840100,ffff800000abb058,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000bad800,ffff800000abb000,ffff800022b755c0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000bad800,ffff800000abb000,ffff800022b755c0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800022b755b0,ffff800000bad800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800022b755b0,ffff800000bad800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8063ee24e8,8040691a,ffff800022b755b0,ffff800020abef18) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abef18,ffff800022b756c8,ffff800022b75710) at sys_ioctl+0x5b9 syscall(ffff800022b75790) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b75790) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,52768800010) at Xsyscall+0x128 end of kernel end trace frame: 0x52a56a9c540, 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(ffffffff82206836,ffffffff821d2b89,3b7,ffffffff821e91c5) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022b751e8,4,ffff800022b752b8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000abb000,840100,ffff800000abb058,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000bad800,ffff800000abb000,ffff800022b755c0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000bad800,ffff800000abb000,ffff800022b755c0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800022b755b0,ffff800000bad800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800022b755b0,ffff800000bad800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8063ee24e8,8040691a,ffff800022b755b0,ffff800020abef18) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abef18,ffff800022b756c8,ffff800022b75710) at sys_ioctl+0x5b9 syscall(ffff800022b75790) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b75790) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,52768800010) at Xsyscall+0x128 end of kernel end trace frame: 0x52a56a9c540, count: -12 ddb{1}> show registers rdi 0xffffffff816bc497 db_enter+0x17 rsi 0x3c03 __ALIGN_SIZE+0x2c03 rbp 0xffff800022b75000 rbx 0xffff800022b750b0 rdx 0x3c04 __ALIGN_SIZE+0x2c04 rcx 0xffff800021d54000 rax 0xffff800021d54000 r8 0xffffffff81241baf kprintf+0x16f r9 0x1 r10 0x25 r11 0xcd21c81c77f4ee4e r12 0x3000000008 r13 0xffff800022b75010 r14 0x100 r15 0x1 rip 0xffffffff816bc498 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022b74ff0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=297767 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020abeca0,0xffffffff8263b528 process=0xffff800020add180 user=0xffff800022b70000, vmspace=0xfffffd807f00ba10 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 29976 275967 72517 0 7 0 syz-executor.0 *29976 297767 72517 0 7 0x4000000 syz-executor.0 72517 155410 21649 0 3 0x82 nanosleep syz-executor.0 12772 214146 1 0 3 0x100083 ttyin getty 17452 51129 21649 0 3 0x82 nanosleep syz-executor.1 96395 95172 0 0 3 0x14200 bored sosplice 21649 64191 19331 0 3 0x82 thrsleep syz-fuzzer 21649 378671 19331 0 3 0x4000082 nanosleep syz-fuzzer 21649 362488 19331 0 3 0x4000082 thrsleep syz-fuzzer 21649 6136 19331 0 3 0x4000082 thrsleep syz-fuzzer 21649 23127 19331 0 3 0x4000082 thrsleep syz-fuzzer 21649 458258 19331 0 3 0x4000082 thrsleep syz-fuzzer 21649 402696 19331 0 3 0x4000082 nanosleep syz-fuzzer 21649 345553 19331 0 3 0x4000082 thrsleep syz-fuzzer 21649 327539 19331 0 3 0x4000082 thrsleep syz-fuzzer 21649 276809 19331 0 3 0x4000082 kqread syz-fuzzer 19331 274371 88601 0 3 0x10008a pause ksh 88601 456398 64653 0 3 0x92 select sshd 64653 105558 1 0 3 0x80 select sshd 99966 480381 64496 74 3 0x100092 bpf pflogd 64496 88187 1 0 3 0x80 netio pflogd 71064 207010 76138 73 3 0x100090 kqread syslogd 76138 271504 1 0 3 0x100082 netio syslogd 1802 355714 1 77 3 0x100090 poll dhclient 10191 256233 1 0 3 0x80 poll dhclient 22615 149981 0 0 3 0x14200 pgzero zerothread 16513 22092 0 0 3 0x14200 aiodoned aiodoned 82889 414857 0 0 3 0x14200 syncer update 49637 353734 0 0 3 0x14200 cleaner cleaner 7249 476549 0 0 3 0x14200 reaper reaper 21296 327705 0 0 3 0x14200 pgdaemon pagedaemon 97334 171680 0 0 3 0x14200 bored crynlk 47312 500014 0 0 3 0x14200 bored crypto 97865 252428 0 0 3 0x40014200 acpi0 acpi0 85287 310309 0 0 3 0x40014200 idle1 12244 8680 0 0 3 0x14200 bored softnet 18375 244222 0 0 3 0x14200 bored systqmp 46984 88865 0 0 3 0x14200 bored systq 42315 116427 0 0 3 0x40014200 bored softclock 20117 178257 0 0 3 0x40014200 idle0 70124 78317 0 0 3 0x14200 bored smr 1 86716 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 29976 (syz-executor.0) thread 0xffff800020abef18 (297767) exclusive rwlock netlock r = 0 (0xffffffff8251b098) #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 (0xffffffff8263e610) #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 9539 7057K 8155K 78643K 19313 0 0 pcb 14 10K 12K 78643K 443 0 0 rtable 104 4K 5K 78643K 5127 0 0 ifaddr 66 17K 19K 78643K 541 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1542 0 0 iov 0 0K 24K 78643K 641 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1224 77K 78K 78643K 4540 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 37 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 400 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 4457 0 0 sigio 0 0K 0K 78643K 37 0 0 proc 62 63K 83K 78643K 1485 0 0 subproc 32 2K 2K 78643K 221 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 288 0 0 in_multi 29 1K 2K 78643K 289 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 551 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 114 22K 31K 78643K 13134 0 0 UVM aobj 130 4K 4K 78643K 137 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 419 0 0 NDP 14 0K 0K 78643K 156 0 0 temp 187 3560K 4199K 78643K 66682 0 0 kqueue 0 0K 0K 78643K 24 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 408 0 402 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 189 0 187 1 0 1 1 0 8 0 rtentry 112 1294 0 1254 2 0 2 2 0 8 0 unpcb 120 969 0 952 3 2 1 2 0 8 0 syncache 264 21 0 21 8 8 0 1 0 8 0 sackhl 24 5 0 5 3 3 0 1 0 8 0 tcpqe 32 3018 0 3018 10 10 0 1 0 8 0 tcpcb 544 1157 0 1153 3 2 1 3 0 8 0 inpcb 280 3465 0 3456 22 20 2 13 0 8 1 nd6 48 27 0 24 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 2 0 1 0 8 0 ppxss 1128 85 0 85 8 7 1 1 0 8 1 pffrag 232 7 0 7 3 3 0 1 0 482 0 pffrnode 88 7 0 7 3 3 0 1 0 8 0 pffrent 40 21 0 21 4 4 0 1 0 8 0 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 119 0 102 1 0 1 1 0 8 0 pfstkey 112 120 0 103 2 0 2 2 0 8 0 pfstate 328 120 0 102 4 1 3 4 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 1412 0 1200 17 3 14 16 0 8 0 art_table 32 1413 0 1200 3 0 3 3 0 8 0 art_node 16 1292 0 1256 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 6 1 0 1 1 0 8 0 semupl 112 14 0 14 2 2 0 1 0 8 0 semapl 112 398 0 388 1 0 1 1 0 8 0 shmpl 112 135 0 7 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 8197 0 6794 46 0 46 46 0 8 0 ffsino 272 8197 0 6794 94 0 94 94 0 8 0 nchpl 144 14897 0 14435 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 42060 0 42060 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 45891 0 45891 22 21 1 6 0 8 1 plimitpl 152 271 0 263 1 0 1 1 0 8 0 sigapl 432 4628 0 4613 3 1 2 3 0 8 0 futexpl 56 55501 0 55501 1 0 1 1 0 8 1 knotepl 112 710 0 691 2 1 1 2 0 8 0 kqueuepl 104 635 0 633 2 1 1 2 0 8 0 pipepl 112 3086 0 3067 8 7 1 2 0 8 0 fdescpl 488 4629 0 4613 3 0 3 3 0 8 0 filepl 152 24257 0 24155 21 16 5 13 0 8 1 lockfpl 104 1567 0 1566 1 0 1 1 0 8 0 lockfspl 48 693 0 692 1 0 1 1 0 8 0 sessionpl 112 33 0 22 1 0 1 1 0 8 0 pgrppl 48 69 0 58 1 0 1 1 0 8 0 ucredpl 96 3700 0 3690 1 0 1 1 0 8 0 zombiepl 144 4613 0 4612 3 2 1 1 0 8 0 processpl 896 4645 0 4612 4 0 4 4 0 8 0 procpl 632 11814 0 11771 10 5 5 5 0 8 0 srpgc 64 20 0 20 8 8 0 1 0 8 0 sosppl 128 49 0 49 9 8 1 1 0 8 1 sockpl 384 4668 0 4640 33 29 4 22 0 8 0 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 12 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 9 0 0 1 0 1 1 0 8 0 mcl8k 8192 14 0 0 2 0 2 2 0 8 0 mcl4k 4096 25 0 0 4 1 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 261 0 0 20 4 16 20 0 8 3 mtagpl 80 144 0 0 3 0 3 3 0 8 0 mbufpl 256 664 0 0 31 0 31 31 0 8 0 bufpl 256 17097 0 10049 441 0 441 441 0 8 0 anonpl 16 376971 0 366537 106 60 46 65 0 124 0 amapchunkpl 152 22311 0 22204 24 19 5 10 0 158 0 amappl16 192 21685 0 21100 88 58 30 45 0 8 0 amappl15 184 140 0 140 2 2 0 1 0 8 0 amappl14 176 108 0 104 2 1 1 1 0 8 0 amappl13 168 644 0 643 4 3 1 1 0 8 0 amappl12 160 345 0 341 1 0 1 1 0 8 0 amappl11 152 1171 0 1156 1 0 1 1 0 8 0 amappl10 144 1043 0 1036 1 0 1 1 0 8 0 amappl9 136 1740 0 1733 1 0 1 1 0 8 0 amappl8 128 1283 0 1242 3 1 2 2 0 8 0 amappl7 120 1111 0 1103 1 0 1 1 0 8 0 amappl6 112 1155 0 1141 1 0 1 1 0 8 0 amappl5 104 882 0 868 1 0 1 1 0 8 0 amappl4 96 5215 0 5183 2 1 1 2 0 8 0 amappl3 88 532 0 525 1 0 1 1 0 8 0 amappl2 80 35232 0 35160 4 2 2 3 0 8 0 amappl1 72 97066 0 96627 26 16 10 20 0 8 0 amappl 80 12228 0 12191 1 0 1 1 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 136 0 7 3 0 3 3 0 8 0 uaddrrnd 24 4629 0 4613 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4629 0 4613 1 0 1 1 0 8 0 vmmpekpl 168 34074 0 34042 2 0 2 2 0 8 0 vmmpepl 168 550613 0 548884 202 120 82 97 0 357 1 vmsppl 368 4628 0 4613 2 0 2 2 0 8 0 pdppl 4096 9265 0 9226 7 1 6 6 0 8 0 pvpl 32 1270118 0 1256447 281 163 118 163 0 265 0 pmappl 232 4628 0 4613 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 637 0 16 18 0 18 18 0 8 0