panic: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 951 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *187116 3631 0 0 0x4000000 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(ffffffff821e3723,ffffffff821b3839,3b7,ffffffff821c3b71) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800018ba6ff8,4,ffff800018ba70c8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000add300,840100,ffff800000add358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a90800,ffff800000add300,ffff800018ba73d0,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a90800,ffff800000add300,ffff800018ba73d0,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800018ba73c0,ffff800000a90800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800018ba73c0,ffff800000a90800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd80287f5688,8040691a,ffff800018ba73c0,ffff8000ffff9640) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff9640,ffff800018ba74d8,ffff800018ba7520) at sys_ioctl+0x5b9 syscall(ffff800018ba75a0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,10c75e79010) at Xsyscall+0x128 end of kernel end trace frame: 0x10edbc2f2d0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 951 ddb> 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(ffffffff821e3723,ffffffff821b3839,3b7,ffffffff821c3b71) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800018ba6ff8,4,ffff800018ba70c8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000add300,840100,ffff800000add358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a90800,ffff800000add300,ffff800018ba73d0,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a90800,ffff800000add300,ffff800018ba73d0,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800018ba73c0,ffff800000a90800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800018ba73c0,ffff800000a90800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd80287f5688,8040691a,ffff800018ba73c0,ffff8000ffff9640) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff9640,ffff800018ba74d8,ffff800018ba7520) at sys_ioctl+0x5b9 syscall(ffff800018ba75a0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,10c75e79010) at Xsyscall+0x128 end of kernel end trace frame: 0x10edbc2f2d0, count: -12 ddb> show registers rdi 0xffffffff81896ae7 db_enter+0x17 rsi 0x4188 __ALIGN_SIZE+0x3188 rbp 0xffff800018ba6e10 rbx 0xffff800018ba6ec0 rdx 0x4189 __ALIGN_SIZE+0x3189 rcx 0xffff800016775000 rax 0xffff800016775000 r8 0xffff800018ba6dd0 r9 0x1 r10 0xffff800000a5a100 r11 0x9d81e4b73f813ecb r12 0x3000000008 r13 0xffff800018ba6e20 r14 0x100 r15 0x1 rip 0xffffffff81896ae8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800018ba6e00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=187116 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8770,0xffffffff82569ac8 process=0xffff8000ffff66d0 user=0xffff800018ba2000, vmspace=0xfffffd803f014110 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 3631 333933 28805 0 2 0 syz-executor.1 * 3631 187116 28805 0 7 0x4000000 syz-executor.1 69790 428399 20644 0 2 0x480 syz-executor.0 69790 175890 20644 0 3 0x4000080 fifor syz-executor.0 69790 21034 20644 0 3 0x4000080 bpf syz-executor.0 69790 20045 20644 0 3 0x4000080 fsleep syz-executor.0 20644 421714 29690 0 3 0x82 nanosleep syz-executor.0 28805 348936 29690 0 2 0x482 syz-executor.1 44523 168561 0 0 3 0x14200 acct acct 43151 279416 1 0 3 0x100083 ttyopn getty 13225 288572 0 0 3 0x14200 bored sosplice 29690 460993 48369 0 3 0x82 thrsleep syz-fuzzer 29690 306948 48369 0 2 0x4000482 syz-fuzzer 29690 455773 48369 0 3 0x4000082 thrsleep syz-fuzzer 29690 331381 48369 0 3 0x4000082 thrsleep syz-fuzzer 29690 333795 48369 0 3 0x4000082 thrsleep syz-fuzzer 29690 184667 48369 0 3 0x4000082 kqread syz-fuzzer 29690 376745 48369 0 3 0x4000082 thrsleep syz-fuzzer 29690 190049 48369 0 3 0x4000082 thrsleep syz-fuzzer 48369 425952 85375 0 3 0x10008a pause ksh 85375 468178 5767 0 3 0x92 select sshd 5767 126644 1 0 3 0x80 select sshd 95149 105087 17181 73 3 0x100090 kqread syslogd 17181 16152 1 0 3 0x100082 netio syslogd 74987 220388 1 77 3 0x100090 poll dhclient 73205 353910 1 0 3 0x80 poll dhclient 85390 136301 0 0 2 0x14200 zerothread 60107 306876 0 0 3 0x14200 aiodoned aiodoned 83920 370609 0 0 3 0x14200 syncer update 79402 231368 0 0 3 0x14200 cleaner cleaner 60098 215184 0 0 3 0x14200 reaper reaper 70612 445491 0 0 3 0x14200 pgdaemon pagedaemon 26052 189693 0 0 3 0x14200 bored crynlk 70422 73823 0 0 3 0x14200 bored crypto 35404 193247 0 0 3 0x40014200 acpi0 acpi0 58997 314162 0 0 3 0x14200 bored softnet 44178 346244 0 0 3 0x14200 bored systqmp 60506 246052 0 0 3 0x14200 bored systq 93541 352792 0 0 2 0x40014200 softclock 64961 16155 0 0 3 0x40014200 idle0 92897 227171 0 0 3 0x14200 bored smr 1 488725 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9619 7285K 14705K 78643K 47491 0 0 pcb 13 12K 14K 78643K 1401 0 0 rtable 137 9K 9K 78643K 3836 0 0 ifaddr 111 24K 25K 78643K 1066 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 377 0 0 iov 0 0K 32K 78643K 1565 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1233 77K 78K 78643K 12023 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 3 5K 9K 78643K 77 0 0 VM map 44 11K 11K 78643K 77 0 0 sem 12 1K 1K 78643K 737 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 6291 0 0 sigio 0 0K 0K 78643K 96 0 0 proc 50 38K 63K 78643K 2453 0 0 subproc 32 2K 2K 78643K 663 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 489 0 0 in_multi 35 2K 2K 78643K 657 0 0 ether_multi 1 0K 0K 78643K 57 0 0 mrt 1 0K 0K 78643K 34 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 1358 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 184 397K 398K 78643K 16467 0 0 UVM aobj 130 4K 4K 78643K 146 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 4 0K 1K 78643K 1537 0 0 NDP 24 0K 1K 78643K 334 0 0 temp 254 3541K 4181K 78643K 206369 0 0 kqueue 0 0K 0K 78643K 86 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 134 0 124 1 0 1 1 0 8 0 rtpcb 80 732 0 730 1 0 1 1 0 8 0 rtentry 112 672 0 621 2 0 2 2 0 8 0 unpcb 120 4391 0 4370 6 5 1 2 0 8 0 syncache 264 24 0 24 12 12 0 1 0 8 0 tcpqe 32 155 0 155 7 7 0 1 0 8 0 tcpcb 544 2592 0 2584 32 19 13 15 0 8 12 ipq 40 40 0 40 16 16 0 1 0 8 0 ipqe 40 97 0 97 16 16 0 1 0 8 0 inpcb 280 7832 0 7820 55 46 9 13 0 8 8 rttmr 72 11 0 10 2 1 1 1 0 8 0 ip6q 72 10 0 9 5 4 1 1 0 8 0 ip6af 40 24 0 23 5 4 1 1 0 8 0 nd6 48 80 0 77 5 4 1 1 0 8 0 pkpcb 40 37 0 37 12 12 0 1 0 8 0 ppxss 1128 126 0 126 18 17 1 1 0 8 1 art_heap8 4096 18 0 17 11 10 1 3 0 8 0 art_heap4 256 2565 0 2318 43 26 17 17 0 8 0 art_table 32 2583 0 2335 5 2 3 3 0 8 0 art_node 16 663 0 618 1 0 1 1 0 8 0 sysvmsgpl 40 36 0 22 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 735 0 725 1 0 1 1 0 8 0 shmpl 112 144 0 16 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 11057 0 9639 46 0 46 46 0 8 0 ffsino 240 11057 0 9639 84 0 84 84 0 8 0 nchpl 144 22108 0 20473 61 0 61 61 0 8 0 uvmvnodes 72 7814 0 0 143 0 143 143 0 8 0 vnodes 208 7814 0 0 412 0 412 412 0 8 0 namei 1024 80207 0 80207 5 4 1 1 0 8 1 vcpupl 1984 43 0 1 6 0 6 6 0 8 0 vmpool 520 75 0 33 4 1 3 3 0 8 0 scsiplug 64 6 0 6 4 4 0 1 0 8 0 scxspl 192 72311 0 72311 42 41 1 7 0 8 1 plimitpl 152 593 0 586 1 0 1 1 0 8 0 sigapl 432 6352 0 6338 2 0 2 2 0 8 0 futexpl 56 185087 0 185086 4 3 1 1 0 8 0 knotepl 112 1911 0 1892 9 8 1 3 0 8 0 kqueuepl 104 1823 0 1821 7 3 4 4 0 8 3 pipepl 112 5200 0 5181 16 15 1 2 0 8 0 fdescpl 424 6353 0 6338 2 0 2 2 0 8 0 filepl 120 60425 0 60323 45 34 11 11 0 8 7 lockfpl 104 2487 0 2486 1 0 1 1 0 8 0 lockfspl 48 801 0 800 1 0 1 1 0 8 0 sessionpl 112 55 0 45 1 0 1 1 0 8 0 pgrppl 48 828 0 818 1 0 1 1 0 8 0 ucredpl 96 7115 0 7105 1 0 1 1 0 8 0 zombiepl 144 6340 0 6340 2 1 1 1 0 8 1 processpl 864 6371 0 6340 4 0 4 4 0 8 0 procpl 632 13819 0 13777 4 0 4 4 0 8 0 sosppl 128 81 0 81 23 22 1 1 0 8 1 sockpl 384 13056 0 13021 73 57 16 22 0 8 12 mcl64k 65536 1823 0 1823 146 131 15 64 0 8 15 mcl16k 16384 171 0 171 16 16 0 1 0 8 0 mcl12k 12288 232 0 232 13 12 1 1 0 8 1 mcl9k 9216 199 0 199 12 11 1 1 0 8 1 mcl8k 8192 369 0 369 10 9 1 1 0 8 1 mcl4k 4096 676 0 675 6 5 1 1 0 8 0 mcl2k2 2112 41 0 41 19 19 0 1 0 8 0 mcl2k 2048 79708 0 79657 33 25 8 15 0 8 1 mtagpl 80 289 0 275 8 7 1 1 0 8 0 mbufpl 256 182663 0 182519 210 195 15 39 0 8 1 bufpl 256 30469 0 22648 490 0 490 490 0 8 0 anonpl 16 778586 0 759986 286 195 91 97 0 62 8 amapchunkpl 152 33201 0 33046 107 100 7 20 0 158 0 amappl16 192 37823 0 36674 326 263 63 77 0 8 5 amappl15 184 1838 0 1837 5 4 1 1 0 8 0 amappl14 176 958 0 954 2 1 1 1 0 8 0 amappl13 168 752 0 751 6 5 1 1 0 8 0 amappl12 160 798 0 795 1 0 1 1 0 8 0 amappl11 152 614 0 603 1 0 1 1 0 8 0 amappl10 144 1144 0 1139 1 0 1 1 0 8 0 amappl9 136 1120 0 1112 1 0 1 1 0 8 0 amappl8 128 634 0 596 2 0 2 2 0 8 0 amappl7 120 1286 0 1275 1 0 1 1 0 8 0 amappl6 112 561 0 551 1 0 1 1 0 8 0 amappl5 104 1361 0 1351 1 0 1 1 0 8 0 amappl4 96 7243 0 7216 1 0 1 1 0 8 0 amappl3 88 1131 0 1126 1 0 1 1 0 8 0 amappl2 80 48862 0 48773 4 2 2 3 0 8 0 amappl1 72 124920 0 124486 26 16 10 20 0 8 0 amappl 80 14712 0 14639 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 145 0 16 3 0 3 3 0 8 0 uaddrrnd 24 6428 0 6338 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6428 0 6338 1 0 1 1 0 8 0 vmmpekpl 168 42751 0 42713 2 0 2 2 0 8 0 vmmpepl 168 770557 0 768083 437 295 142 155 0 357 34 vmsppl 272 6352 0 6338 8 7 1 2 0 8 0 pdppl 4096 12862 0 12784 15 5 10 11 0 8 0 pvpl 32 1959219 0 1939389 522 327 195 311 0 265 13 pmappl 200 6427 0 6371 4 1 3 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1114 0 454 21 0 21 21 0 8 0