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 155458 48413 0 0 0 0 syz-executor.1 * 49554 30459 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(ffffffff82208e6e,ffffffff821d1ce1,3b7,ffffffff821e7d46) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800020b4ec18,4,ffff800020b4ece8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ae2300,840100,ffff800000ae2358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000aca800,ffff800000ae2300,ffff800020b4efc0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000aca800,ffff800000ae2300,ffff800020b4efc0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800020b4efb0,ffff800000aca800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800020b4efb0,ffff800000aca800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80616c0640,8020690c,ffff800020b4efb0,ffff800020acfb50) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acfb50,ffff800020b4f0c8,ffff800020b4f110) at sys_ioctl+0x5b9 syscall(ffff800020b4f190) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b4f190) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,59556979010) at Xsyscall+0x128 end of kernel end trace frame: 0x597bd73fd00, 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(ffffffff82208e6e,ffffffff821d1ce1,3b7,ffffffff821e7d46) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800020b4ec18,4,ffff800020b4ece8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ae2300,840100,ffff800000ae2358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000aca800,ffff800000ae2300,ffff800020b4efc0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000aca800,ffff800000ae2300,ffff800020b4efc0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800020b4efb0,ffff800000aca800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800020b4efb0,ffff800000aca800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80616c0640,8020690c,ffff800020b4efb0,ffff800020acfb50) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acfb50,ffff800020b4f0c8,ffff800020b4f110) at sys_ioctl+0x5b9 syscall(ffff800020b4f190) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b4f190) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,59556979010) at Xsyscall+0x128 end of kernel end trace frame: 0x597bd73fd00, count: -12 ddb{1}> show registers rdi 0xffffffff81823987 db_enter+0x17 rsi 0x3f94 __ALIGN_SIZE+0x2f94 rbp 0xffff800020b4ea30 rbx 0xffff800020b4eae0 rdx 0x3f95 __ALIGN_SIZE+0x2f95 rcx 0xffff800023b7c000 rax 0xffff800023b7c000 r8 0xffffffff81cd62ff kprintf+0x16f r9 0x1 r10 0x25 r11 0x7bb761286c039dd r12 0x3000000008 r13 0xffff800020b4ea40 r14 0x100 r15 0x1 rip 0xffffffff81823988 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b4ea20 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=49554 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace518,0xffff800020ace2b0 process=0xffff800020a8aa90 user=0xffff800020b4a000, vmspace=0xfffffd807f00a450 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 48413 155458 54969 0 7 0 syz-executor.1 48413 205075 54969 0 3 0x4000080 fsleep syz-executor.1 30459 344107 54567 0 2 0 syz-executor.0 *30459 49554 54567 0 7 0x4000000 syz-executor.0 54567 56289 68909 0 3 0x82 nanosleep syz-executor.0 54969 337055 68909 0 3 0x82 nanosleep syz-executor.1 59643 327101 1 0 3 0x100083 ttyin getty 56119 424522 0 0 3 0x14200 acct acct 82204 108671 0 0 3 0x14200 bored sosplice 68909 141896 91815 0 3 0x82 thrsleep syz-fuzzer 68909 325767 91815 0 3 0x4000082 thrsleep syz-fuzzer 68909 414015 91815 0 3 0x4000082 thrsleep syz-fuzzer 68909 27885 91815 0 3 0x4000082 kqread syz-fuzzer 68909 264436 91815 0 3 0x4000082 thrsleep syz-fuzzer 68909 474249 91815 0 3 0x4000082 thrsleep syz-fuzzer 68909 104014 91815 0 3 0x4000082 thrsleep syz-fuzzer 68909 271200 91815 0 3 0x4000082 thrsleep syz-fuzzer 68909 345391 91815 0 3 0x4000082 thrsleep syz-fuzzer 68909 176587 91815 0 3 0x4000082 thrsleep syz-fuzzer 91815 193082 28171 0 3 0x10008a pause ksh 28171 194684 84635 0 3 0x92 select sshd 84635 183691 1 0 3 0x80 select sshd 38201 196337 54971 74 3 0x100092 bpf pflogd 54971 123797 1 0 3 0x80 netio pflogd 44110 110416 10625 73 3 0x100090 kqread syslogd 10625 378565 1 0 3 0x100082 netio syslogd 89344 353592 1 77 3 0x100090 poll dhclient 84487 370010 1 0 3 0x80 poll dhclient 28859 340690 0 0 2 0x14200 zerothread 22570 38984 0 0 3 0x14200 aiodoned aiodoned 6113 385283 0 0 3 0x14200 syncer update 39975 413812 0 0 3 0x14200 cleaner cleaner 73262 325487 0 0 3 0x14200 reaper reaper 97947 264230 0 0 3 0x14200 pgdaemon pagedaemon 26297 251510 0 0 3 0x14200 bored crynlk 65258 281176 0 0 3 0x14200 bored crypto 5478 356752 0 0 3 0x40014200 acpi0 acpi0 64234 211609 0 0 3 0x40014200 idle1 65631 118609 0 0 3 0x14200 bored softnet 92954 206822 0 0 3 0x14200 bored systqmp 78753 397498 0 0 3 0x14200 bored systq 25197 278431 0 0 3 0x40014200 bored softclock 20060 47683 0 0 3 0x40014200 idle0 12686 190404 0 0 3 0x14200 bored smr 1 147061 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 30459 (syz-executor.0) thread 0xffff800020acfb50 (49554) exclusive rwlock netlock r = 0 (0xffffffff824d6738) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl_sifaddr+0x69 #2 in_ioctl+0x1e7 sys/netinet/in.c:231 #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 (0xffffffff82666748) #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 9596 6456K 7323K 78643K 14330 0 0 pcb 14 9K 9K 78643K 331 0 0 rtable 117 9K 9K 78643K 982 0 0 ifaddr 94 19K 20K 78643K 298 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1540 0 0 iov 0 0K 28K 78643K 245 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 77K 78643K 2438 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 19 0 0 VM map 2 1K 1K 78643K 8 0 0 sem 12 0K 0K 78643K 382 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1678 0 0 sigio 0 0K 0K 78643K 36 0 0 proc 62 63K 95K 78643K 874 0 0 subproc 32 2K 2K 78643K 153 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 92 0 0 in_multi 27 1K 2K 78643K 208 0 0 ether_multi 1 0K 0K 78643K 9 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 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 444 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 6538 0 0 UVM aobj 41 2K 2K 78643K 65 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 274 0 0 NDP 21 0K 0K 78643K 92 0 0 temp 237 3561K 4201K 78643K 44929 0 0 kqueue 0 0K 0K 78643K 8 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 28 0 19 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 138 0 136 1 0 1 1 0 8 0 rtentry 112 202 0 158 2 0 2 2 0 8 0 unpcb 120 598 0 586 1 0 1 1 0 8 0 syncache 264 12 0 12 5 5 0 1 0 8 0 tcpqe 32 5333 0 5333 4 4 0 2 0 8 0 tcpcb 544 876 0 870 1 0 1 1 0 8 0 inpcb 280 4149 0 4138 8 6 2 4 0 8 1 rttmr 72 4 0 4 3 3 0 1 0 8 0 nd6 48 28 0 26 1 0 1 1 0 8 0 pkpcb 40 12 0 12 3 3 0 1 0 8 0 swfcl 56 8 0 0 1 0 1 1 0 8 0 ppxss 1128 23 0 23 4 4 0 1 0 8 0 pffrag 232 34 0 34 7 6 1 1 0 482 1 pffrnode 88 34 0 34 7 6 1 1 0 8 1 pffrent 40 75 0 75 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 467 0 388 1 0 1 1 0 8 0 pfstkey 112 467 0 388 4 1 3 3 0 8 0 pfstate 328 467 0 375 9 0 9 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 7 0 5 5 3 2 3 0 8 0 art_heap4 256 906 0 697 19 3 16 16 0 8 0 art_table 32 913 0 702 2 0 2 2 0 8 0 art_node 16 200 0 159 1 0 1 1 0 8 0 sysvmsgpl 40 25 0 18 1 0 1 1 0 8 0 semapl 112 380 0 370 1 0 1 1 0 8 0 shmpl 112 63 0 24 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3689 0 2282 46 0 46 46 0 8 0 ffsino 272 3689 0 2282 96 1 95 95 0 8 0 nchpl 144 6154 0 4539 61 0 61 61 0 8 0 uvmvnodes 72 4674 0 0 85 0 85 85 0 8 0 vnodes 208 4674 0 0 246 0 246 246 0 8 0 namei 1024 18931 0 18931 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 6 0 6 1 1 0 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 18852 0 18852 19 18 1 7 0 8 1 plimitpl 152 124 0 116 1 0 1 1 0 8 0 sigapl 432 1858 0 1842 3 1 2 3 0 8 0 futexpl 56 33347 0 33346 1 0 1 1 0 8 0 knotepl 112 350 0 331 2 1 1 2 0 8 0 kqueuepl 104 287 0 285 1 0 1 1 0 8 0 pipepl 112 832 0 813 3 1 2 2 0 8 1 fdescpl 488 1859 0 1842 3 0 3 3 0 8 0 filepl 152 13016 0 12914 10 5 5 6 0 8 1 lockfpl 104 442 0 441 1 0 1 1 0 8 0 lockfspl 48 138 0 137 1 0 1 1 0 8 0 sessionpl 112 26 0 15 1 0 1 1 0 8 0 pgrppl 48 30 0 19 1 0 1 1 0 8 0 ucredpl 96 1308 0 1299 1 0 1 1 0 8 0 zombiepl 144 1842 0 1842 3 2 1 1 0 8 1 processpl 896 1876 0 1842 4 0 4 4 0 8 0 procpl 632 5426 0 5381 6 1 5 5 0 8 0 srpgc 64 9 0 9 4 4 0 1 0 8 0 sosppl 128 12 0 12 4 3 1 1 0 8 1 sockpl 384 4976 0 4952 12 7 5 6 0 8 1 mcl64k 65536 259 0 0 33 8 25 33 0 8 1 mcl16k 16384 16 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 12 0 0 2 0 2 2 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 262 0 0 31 0 31 31 0 8 0 mtagpl 80 34 0 0 1 0 1 1 0 8 0 mbufpl 256 435 0 0 25 1 24 24 0 8 0 bufpl 256 10302 0 3254 441 0 441 441 0 8 0 anonpl 16 188298 0 171860 111 41 70 82 0 124 0 amapchunkpl 152 11417 0 11291 21 15 6 13 0 158 0 amappl16 192 8509 0 7566 81 33 48 60 0 8 0 amappl15 184 16 0 15 1 0 1 1 0 8 0 amappl14 176 939 0 934 2 1 1 1 0 8 0 amappl13 168 2 0 2 2 2 0 1 0 8 0 amappl12 160 30 0 28 2 1 1 1 0 8 0 amappl11 152 73 0 58 1 0 1 1 0 8 0 amappl10 144 577 0 571 1 0 1 1 0 8 0 amappl9 136 823 0 816 1 0 1 1 0 8 0 amappl8 128 399 0 361 2 0 2 2 0 8 0 amappl7 120 623 0 613 1 0 1 1 0 8 0 amappl6 112 72 0 63 1 0 1 1 0 8 0 amappl5 104 195 0 180 1 0 1 1 0 8 0 amappl4 96 2131 0 2099 1 0 1 1 0 8 0 amappl3 88 338 0 331 1 0 1 1 0 8 0 amappl2 80 13475 0 13393 4 2 2 3 0 8 0 amappl1 72 50707 0 50262 26 15 11 20 0 8 0 amappl 80 5786 0 5744 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 64 0 24 1 0 1 1 0 8 0 uaddrrnd 24 1865 0 1842 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1865 0 1842 1 0 1 1 0 8 0 vmmpekpl 168 18239 0 18205 2 0 2 2 0 8 0 vmmpepl 168 233507 0 231317 200 76 124 128 0 357 26 vmsppl 368 1858 0 1842 2 0 2 2 0 8 0 pdppl 4096 3737 0 3696 8 2 6 6 0 8 0 pvpl 32 537902 0 518193 255 82 173 193 0 265 8 pmappl 232 1864 0 1848 3 2 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 679 0 24 19 0 19 19 0 8 0