login: 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 231489 23189 0 0 0 0 syz-executor.1 *129618 23189 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(ffffffff822085b2,ffffffff821d2c2a,3b7,ffffffff821e8dc2) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023ba77a8,4,ffff800023ba7878,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000aaf900,840100,ffff800000aaf958,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000af4000,ffff800000aaf900,ffff800023ba7b80,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000af4000,ffff800000aaf900,ffff800023ba7b80,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800023ba7b70,ffff800000af4000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023ba7b70,ffff800000af4000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd807737fc08,8040691a,ffff800023ba7b70,ffff800020abe528) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe528,ffff800023ba7c88,ffff800023ba7cd0) at sys_ioctl+0x5b9 syscall(ffff800023ba7d50) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023ba7d50) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,4bdca5d9010) at Xsyscall+0x128 end of kernel end trace frame: 0x4c0be1c0590, 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(ffffffff822085b2,ffffffff821d2c2a,3b7,ffffffff821e8dc2) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023ba77a8,4,ffff800023ba7878,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000aaf900,840100,ffff800000aaf958,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000af4000,ffff800000aaf900,ffff800023ba7b80,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000af4000,ffff800000aaf900,ffff800023ba7b80,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800023ba7b70,ffff800000af4000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023ba7b70,ffff800000af4000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd807737fc08,8040691a,ffff800023ba7b70,ffff800020abe528) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe528,ffff800023ba7c88,ffff800023ba7cd0) at sys_ioctl+0x5b9 syscall(ffff800023ba7d50) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023ba7d50) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,4bdca5d9010) at Xsyscall+0x128 end of kernel end trace frame: 0x4c0be1c0590, count: -12 ddb{1}> show registers rdi 0xffffffff810d08e7 db_enter+0x17 rsi 0x3fb9 __ALIGN_SIZE+0x2fb9 rbp 0xffff800023ba75c0 rbx 0xffff800023ba7670 rdx 0x3fba __ALIGN_SIZE+0x2fba rcx 0xffff800021774000 rax 0xffff800021774000 r8 0xffffffff8154309f kprintf+0x16f r9 0x1 r10 0x25 r11 0x87f3a954f0dcb54 r12 0x3000000008 r13 0xffff800023ba75d0 r14 0x100 r15 0x1 rip 0xffffffff810d08e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023ba75b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=129618 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020abf670,0xffffffff82658e38 process=0xffff800020add180 user=0xffff800023ba2000, vmspace=0xfffffd807f00a8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 23189 231489 69233 0 7 0 syz-executor.1 *23189 129618 69233 0 7 0x4000000 syz-executor.1 69233 43492 78764 0 3 0x82 nanosleep syz-executor.1 27023 93782 1 0 3 0x100083 ttyin getty 33644 421201 78764 0 3 0x82 nanosleep syz-executor.0 3533 138778 0 0 3 0x14200 acct acct 49456 211280 0 0 3 0x14200 bored sosplice 78764 379319 67090 0 3 0x82 nanosleep syz-fuzzer 78764 372399 67090 0 3 0x4000082 nanosleep syz-fuzzer 78764 103782 67090 0 3 0x4000082 thrsleep syz-fuzzer 78764 493847 67090 0 3 0x4000082 thrsleep syz-fuzzer 78764 194218 67090 0 3 0x4000082 thrsleep syz-fuzzer 78764 165910 67090 0 3 0x4000082 thrsleep syz-fuzzer 78764 43287 67090 0 3 0x4000082 kqread syz-fuzzer 78764 97539 67090 0 3 0x4000082 thrsleep syz-fuzzer 78764 214999 67090 0 3 0x4000082 thrsleep syz-fuzzer 78764 519844 67090 0 3 0x4000082 thrsleep syz-fuzzer 67090 239826 32450 0 3 0x10008a pause ksh 32450 338577 92541 0 3 0x92 select sshd 92541 448617 1 0 3 0x80 select sshd 26189 451003 70082 74 3 0x100092 bpf pflogd 70082 342214 1 0 3 0x80 netio pflogd 27778 213952 55778 73 3 0x100090 kqread syslogd 55778 192465 1 0 3 0x100082 netio syslogd 25562 202689 1 77 3 0x100090 poll dhclient 38015 517899 1 0 3 0x80 poll dhclient 68844 189811 0 0 3 0x14200 pgzero zerothread 44371 469512 0 0 3 0x14200 aiodoned aiodoned 92 479882 0 0 3 0x14200 syncer update 24819 54615 0 0 3 0x14200 cleaner cleaner 11955 78253 0 0 3 0x14200 reaper reaper 59414 6954 0 0 3 0x14200 pgdaemon pagedaemon 8591 318171 0 0 3 0x14200 bored crynlk 2334 45906 0 0 3 0x14200 bored crypto 55176 82527 0 0 3 0x40014200 acpi0 acpi0 19900 502308 0 0 3 0x40014200 idle1 75205 418926 0 0 3 0x14200 bored softnet 73333 511077 0 0 3 0x14200 bored systqmp 75116 341170 0 0 3 0x14200 bored systq 37922 321587 0 0 3 0x40014200 bored softclock 63675 290868 0 0 3 0x40014200 idle0 71524 407421 0 0 3 0x14200 bored smr 1 353172 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 23189 (syz-executor.1) thread 0xffff800020abe528 (129618) exclusive rwlock netlock r = 0 (0xffffffff824d88c8) #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 (0xffffffff8263a6d8) #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 9623 6488K 8998K 78643K 35719 0 0 pcb 13 12K 14K 78643K 796 0 0 rtable 123 13K 14K 78643K 3263 0 0 ifaddr 97 21K 22K 78643K 1101 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1609 0 0 iov 0 0K 32K 78643K 911 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1247 78K 79K 78643K 8295 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 56 0 0 VM map 2 1K 1K 78643K 10 0 0 sem 12 0K 1K 78643K 1626 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 4572 0 0 sigio 0 0K 0K 78643K 73 0 0 proc 62 63K 83K 78643K 1864 0 0 subproc 32 2K 2K 78643K 418 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 305 0 0 in_multi 23 1K 2K 78643K 368 0 0 ether_multi 1 0K 0K 78643K 25 0 0 mrt 0 0K 0K 78643K 26 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 933 0 0 pfkey data 0 0K 0K 78643K 1 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 126 23K 32K 78643K 16456 0 0 UVM aobj 130 5K 5K 78643K 138 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 881 0 0 NDP 24 0K 1K 78643K 297 0 0 temp 256 3565K 3641K 78643K 141052 0 0 kqueue 0 0K 0K 78643K 32 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 99 0 91 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 291 0 289 1 0 1 1 0 8 0 rtentry 112 617 0 573 2 0 2 2 0 8 0 unpcb 120 1913 0 1896 5 4 1 2 0 8 0 syncache 264 30 0 30 13 12 1 1 0 8 1 tcpqe 32 7214 0 7214 1 1 0 1 0 8 0 tcpcb 544 2065 0 2058 15 14 1 13 0 8 0 inpcb 280 6487 0 6477 30 28 2 13 0 8 1 rttmr 72 10 0 9 1 0 1 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 48 51 0 49 6 5 1 1 0 8 0 pkpcb 40 26 0 26 8 8 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 158 0 158 11 11 0 1 0 8 0 pffrag 232 46 0 46 14 14 0 1 0 482 0 pffrnode 88 46 0 46 14 14 0 1 0 8 0 pffrent 40 113 0 113 14 14 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 323 0 264 1 0 1 1 0 8 0 pfstkey 112 323 0 264 3 0 3 3 0 8 1 pfstate 328 323 0 264 7 0 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 11 0 10 8 7 1 3 0 8 0 art_heap4 256 1687 0 1468 44 29 15 17 0 8 0 art_table 32 1698 0 1478 3 0 3 3 0 8 0 art_node 16 419 0 381 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 3 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1624 0 1614 1 0 1 1 0 8 0 shmpl 112 136 0 8 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 8330 0 6920 46 0 46 46 0 8 0 ffsino 272 8330 0 6920 95 0 95 95 0 8 0 nchpl 144 16587 0 16107 61 38 23 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 57093 0 57093 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 8 0 8 5 5 0 1 0 8 0 scsiplug 64 6 0 6 4 4 0 1 0 8 0 scxspl 192 49981 0 49981 46 45 1 7 0 8 1 plimitpl 152 399 0 391 1 0 1 1 0 8 0 sigapl 432 4712 0 4697 3 1 2 3 0 8 0 futexpl 56 105938 0 105938 1 0 1 1 0 8 1 knotepl 112 1061 0 1042 3 2 1 2 0 8 0 kqueuepl 104 1228 0 1226 5 4 1 4 0 8 0 pipepl 112 2438 0 2419 9 7 2 2 0 8 0 fdescpl 488 4713 0 4697 3 0 3 3 0 8 0 filepl 152 40897 0 40795 42 36 6 14 0 8 1 lockfpl 104 1805 0 1804 1 0 1 1 0 8 0 lockfspl 48 609 0 608 1 0 1 1 0 8 0 sessionpl 112 46 0 35 1 0 1 1 0 8 0 pgrppl 48 90 0 79 1 0 1 1 0 8 0 ucredpl 96 4796 0 4787 1 0 1 1 0 8 0 zombiepl 144 4697 0 4696 3 2 1 1 0 8 0 processpl 896 4730 0 4696 4 0 4 4 0 8 0 procpl 632 14474 0 14430 8 3 5 5 0 8 0 srpgc 64 47 0 47 16 16 0 1 0 8 0 sosppl 128 91 0 91 19 18 1 1 0 8 1 sockpl 384 8851 0 8824 53 48 5 22 0 8 1 mcl64k 65536 22 0 0 3 0 3 3 0 8 0 mcl16k 16384 22 0 0 3 1 2 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 20 0 0 2 0 2 2 0 8 0 mcl8k 8192 18 0 0 3 1 2 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 191 0 0 22 2 20 22 0 8 0 mtagpl 80 78 0 0 1 0 1 1 0 8 0 mbufpl 256 424 0 0 13 0 13 13 0 8 0 bufpl 256 21737 0 14689 441 0 441 441 0 8 0 anonpl 16 499776 0 483235 166 96 70 83 0 124 0 amapchunkpl 152 32102 0 31986 52 44 8 13 0 158 0 amappl16 192 24205 0 23275 132 84 48 59 0 8 0 amappl15 184 850 0 849 5 4 1 1 0 8 0 amappl14 176 1064 0 1063 2 1 1 1 0 8 0 amappl13 168 400 0 400 3 3 0 1 0 8 0 amappl12 160 23 0 21 1 0 1 1 0 8 0 amappl11 152 559 0 544 1 0 1 1 0 8 0 amappl10 144 490 0 483 1 0 1 1 0 8 0 amappl9 136 1219 0 1213 1 0 1 1 0 8 0 amappl8 128 795 0 754 3 1 2 2 0 8 0 amappl7 120 627 0 617 1 0 1 1 0 8 0 amappl6 112 578 0 563 1 0 1 1 0 8 0 amappl5 104 342 0 327 1 0 1 1 0 8 0 amappl4 96 4864 0 4826 2 1 1 2 0 8 0 amappl3 88 910 0 904 1 0 1 1 0 8 0 amappl2 80 36470 0 36398 4 2 2 3 0 8 0 amappl1 72 113471 0 113037 25 15 10 20 0 8 0 amappl 80 15146 0 15106 4 2 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 137 0 8 3 0 3 3 0 8 0 uaddrrnd 24 4721 0 4697 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4721 0 4697 1 0 1 1 0 8 0 vmmpekpl 168 38860 0 38824 3 0 3 3 0 8 0 vmmpepl 168 587601 0 585514 333 208 125 133 0 357 25 vmsppl 368 4712 0 4697 2 0 2 2 0 8 0 pdppl 4096 9449 0 9410 7 1 6 6 0 8 0 pvpl 32 1365210 0 1345416 376 195 181 201 0 265 16 pmappl 232 4720 0 4705 6 5 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 669 0 60 18 0 18 18 0 8 0