panic: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 1078 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *225886 11808 0 0x2 0 0K ifconfig db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830e28f3) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309aac0,ffffffff83015c9a,436,ffffffff8300c9ec) at __assert+0x29 rtrequest(1,ffff800036997e28,4,ffff800036997ed0,0) at rtrequest+0xdce sys/net/route.c:1078 rt_ifa_add(ffff8000016c7500,840100,ffff8000016c7558,0) at rt_ifa_add+0x22e sys/net/route.c:1273 in_ifinit(ffff800001588000,ffff8000016c7500,ffff800036998140,1) at in_ifinit+0x4bd in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800001588000,ffff8000016c7500,ffff800036998140,1) at in_ifinit+0x4bd sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff800036998130,ffff800001588000) at in_ioctl_change_ifaddr+0x92c sys/netinet/in.c:504 ifioctl(ffff800010fda010,8040691a,ffff800036998130,ffff80002a040528) at ifioctl+0x1571 pru_control sys/sys/protosw.h:355 [inline] ifioctl(ffff800010fda010,8040691a,ffff800036998130,ffff80002a040528) at ifioctl+0x1571 sys/net/if.c:2449 sys_ioctl(ffff80002a040528,ffff800036998310,ffff800036998260) at sys_ioctl+0x67c syscall(ffff800036998310) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800036998310) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77a67a97c310, count: 4 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 1078 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830e28f3) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309aac0,ffffffff83015c9a,436,ffffffff8300c9ec) at __assert+0x29 rtrequest(1,ffff800036997e28,4,ffff800036997ed0,0) at rtrequest+0xdce sys/net/route.c:1078 rt_ifa_add(ffff8000016c7500,840100,ffff8000016c7558,0) at rt_ifa_add+0x22e sys/net/route.c:1273 in_ifinit(ffff800001588000,ffff8000016c7500,ffff800036998140,1) at in_ifinit+0x4bd in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800001588000,ffff8000016c7500,ffff800036998140,1) at in_ifinit+0x4bd sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff800036998130,ffff800001588000) at in_ioctl_change_ifaddr+0x92c sys/netinet/in.c:504 ifioctl(ffff800010fda010,8040691a,ffff800036998130,ffff80002a040528) at ifioctl+0x1571 pru_control sys/sys/protosw.h:355 [inline] ifioctl(ffff800010fda010,8040691a,ffff800036998130,ffff80002a040528) at ifioctl+0x1571 sys/net/if.c:2449 sys_ioctl(ffff80002a040528,ffff800036998310,ffff800036998260) at sys_ioctl+0x67c syscall(ffff800036998310) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800036998310) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77a67a97c310, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800036997c20 rbx 0xffffffff834e9d87 cpu_info_full_primary+0x2d87 rdx 0 rcx 0xffff80002a040528 rax 0xffffffff834e8ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xca1a92165961a92 r11 0x3398287f5848f6b4 r12 0xffffffff834e9b88 cpu_info_full_primary+0x2b88 r13 0 r14 0 r15 0x1 rip 0xffffffff81425995 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800036997c10 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (ifconfig) tid=225886 pid=11808 tcnt=1 stat=onproc flags process=2 proc=0 runpri=84, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a03e530,0xffffffff835c8bb8 process=0xffff80002d051228 user=0xffff800036993000, vmspace=0xfffffd806c0fb018 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *11808 225886 43372 0 7 0x2 ifconfig 43372 33763 184 0 3 0x10008a sigsusp sh 92126 516581 45261 0 3 0x2 clonelk ifconfig 45261 465465 46138 0 3 0x10008a sigsusp sh 46138 447655 203 0 3 0x82 wait syz-executor 184 138745 203 0 3 0x82 wait syz-executor 46836 22378 203 0 3 0x82 piperd syz-executor 75194 255074 203 0 3 0x82 piperd syz-executor 20873 266887 203 0 3 0x82 piperd syz-executor 63293 81939 203 0 3 0x82 piperd syz-executor 73214 72177 0 0 3 0x14200 acct acct 73669 300508 1 0 3 0x100083 ttyin getty 32332 233091 0 0 3 0x14280 nfsidl nfsio 44670 384570 0 0 3 0x14280 nfsidl nfsio 34562 276272 0 0 3 0x14280 nfsidl nfsio 61475 476765 0 0 3 0x14280 nfsidl nfsio 39597 433981 0 0 3 0x14280 nfsidl nfsio 75011 431316 0 0 3 0x14280 nfsidl nfsio 45418 110731 0 0 3 0x14280 nfsidl nfsio 31609 307370 0 0 3 0x14280 nfsidl nfsio 24694 176711 0 0 3 0x14280 nfsidl nfsio 9423 200447 0 0 3 0x14280 nfsidl nfsio 50938 373723 0 0 3 0x14280 nfsidl nfsio 53415 65209 0 0 3 0x14280 nfsidl nfsio 79875 467490 0 0 3 0x14280 nfsidl nfsio 41346 390216 0 0 3 0x14280 nfsidl nfsio 68509 388803 0 0 3 0x14280 nfsidl nfsio 92124 292375 0 0 3 0x14280 nfsidl nfsio 79409 41103 0 0 3 0x14280 nfsidl nfsio 59507 319621 0 0 3 0x14280 nfsidl nfsio 25443 153390 0 0 3 0x14280 nfsidl nfsio 35369 43927 0 0 3 0x14280 nfsidl nfsio 59724 146085 0 0 3 0x14200 bored sosplice 203 215985 4828 0 3 0x82 wait syz-executor 4828 283440 65365 0 3 0x10008a sigsusp ksh 65365 61661 67441 0 3 0x98 kqread sshd-session 67441 315141 31130 0 3 0x92 kqread sshd-session 31130 236548 1 0 3 0x88 kqread sshd 23354 240289 16068 74 3 0x1100092 bpf pflogd 16068 268225 1 0 3 0x80 sbwait pflogd 36128 52176 72530 73 2 0x1100010 syslogd 72530 194349 1 0 3 0x100082 sbwait syslogd 54609 374925 1 0 3 0x100080 kqread resolvd 95818 308795 45885 77 3 0x100092 kqread dhcpleased 81398 325423 45885 77 3 0x100092 kqread dhcpleased 45885 441394 1 0 3 0x80 kqread dhcpleased 78571 237653 0 0 3 0x14200 bored smr 23748 14129 0 0 2 0x14200 zerothread 25420 34880 0 0 3 0x14200 aiodoned aiodoned 67214 155858 0 0 3 0x14200 syncer update 5808 253777 0 0 3 0x14200 cleaner cleaner 82409 60857 0 0 3 0x14200 reaper reaper 15214 6624 0 0 3 0x14200 pgdaemon pagedaemon 24208 22744 0 0 3 0x14200 bored viomb 93636 419969 0 0 3 0x40014200 acpi0 acpi0 51609 75649 0 0 7 0x40014200 idle1 84554 476418 0 0 3 0x14200 bored softnet3 54063 67184 0 0 3 0x14200 bored softnet2 89197 33575 0 0 3 0x14200 bored softnet1 83520 506928 0 0 3 0x14200 bored softnet0 71483 359734 0 0 3 0x14200 bored systqmp 95816 71875 0 0 3 0x14200 bored systq 88314 86826 0 0 3 0x14200 tmoslp softclockmp 94345 270968 0 0 2 0x40014200 softclock 88307 265527 0 0 3 0x40014200 idle0 1 245643 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 11808 (ifconfig) thread 0xffff80002a040528 (225886) Process 36128 (syslogd) thread 0xffff8000ffffcf40 (52176) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10224 14265K 14582K 166960K 15001 0 pcb 17 16K 18K 166960K 389 0 rtable 206 8K 9K 166960K 2336 0 pf 33 17K 22K 166960K 547 0 ifaddr 35 6K 8K 166960K 348 0 ifgroup 47 2K 2K 166960K 446 0 sysctl 3 0K 0K 166960K 7 0 counters 60 35K 36K 166960K 272 0 ioctlops 0 0K 4K 166960K 1837 0 iov 0 0K 16K 166960K 335 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1456 91K 92K 166960K 4422 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 38 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 91 0 dirhash 15 2K 3K 166960K 63 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 13 45K 93K 166960K 3324 0 sigio 0 0K 0K 166960K 61 0 proc 86 116K 140K 166960K 2586 0 subproc 91 5K 6K 166960K 1017 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 358 0 in_multi 64 4K 7K 166960K 833 0 ether_multi 1 0K 0K 166960K 19 0 mrt 1 0K 0K 166960K 11 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 1673 0 pfkey data 0 0K 0K 166960K 6 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 180 63K 99K 166960K 29352 0 UVM aobj 93 3K 3K 166960K 94 0 pinsyscall 38 76K 104K 166960K 6123 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 123 0 NDP 10 0K 2K 166960K 250 0 temp 78 6823K 6952K 166960K 140085 0 kqueue 13 20K 32K 166960K 414 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 487 0 484 6 5 1 3 0 8 0 rtentry 112 799 0 710 5 1 4 4 0 8 0 unpcb 144 2236 0 2219 20 19 1 6 0 8 0 syncache 336 34 0 34 9 9 0 1 0 8 0 tcpqe 32 11 0 11 7 7 0 1 0 8 0 tcpcb 808 1161 0 1154 41 38 3 9 0 8 1 arp 120 130 0 111 1 0 1 1 0 8 0 ipq 40 9 0 9 3 3 0 1 0 8 0 ipqe 40 17 0 17 3 3 0 1 0 8 0 inpcb 336 4172 0 4159 63 60 3 15 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 1 0 1 1 1 0 1 0 8 0 nd6 136 208 0 192 1 0 1 1 0 8 0 pkpcb 40 81 0 81 9 9 0 1 0 8 0 kcovpl 48 78 0 71 1 0 1 1 0 8 0 ppxss 1168 20 0 20 9 9 0 1 0 8 0 pffrag 232 2 0 2 2 2 0 1 0 482 0 pffrnode 88 2 0 2 2 2 0 1 0 8 0 pffrent 40 46 0 46 2 2 0 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 3 0 1 1 0 1 1 0 8 0 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pftag 88 3 0 1 1 0 1 1 0 8 0 pfstitem 24 43 0 39 1 0 1 1 0 8 0 pfstkey 128 43 0 39 2 0 2 2 0 8 0 pfstate 376 42 0 39 4 2 2 4 0 8 0 pfrule 1344 82 0 21 6 0 6 6 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 3231 0 2904 41 14 27 31 0 8 0 art_table 32 3235 0 2904 4 0 4 4 0 8 0 art_node 16 773 0 698 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 3 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 87 0 77 1 0 1 1 0 8 0 shmpl 112 91 0 1 3 0 3 3 0 8 0 dirhash 1024 52 0 33 3 0 3 3 0 8 0 dino2pl 256 6024 0 4400 102 0 102 102 0 8 0 ffsino 272 6024 0 4400 110 1 109 109 0 8 0 nchpl 144 9635 0 9019 65 39 26 64 0 8 0 uvmvnodes 80 6131 0 0 126 0 126 126 0 8 0 vnodes 216 6131 0 0 341 0 341 341 0 8 0 namei 1024 41162 0 41162 14 13 1 8 0 8 1 percpumem 16 150 0 106 1 0 1 1 0 8 0 pfiaddrpl 120 1 0 0 1 0 1 1 0 8 0 kstatmem 264 232 0 212 2 0 2 2 0 8 0 scsiplug 72 3 0 3 3 3 0 1 0 8 0 scxspl 216 64268 0 64268 15 14 1 8 1 8 1 plimitpl 152 739 0 722 1 0 1 1 0 8 0 sigapl 424 3541 0 3473 10 1 9 9 0 8 0 futexpl 64 36951 0 36951 7 7 0 1 0 8 0 knotepl 120 784 0 0 24 0 24 24 0 8 0 kqueuepl 216 879 0 870 13 12 1 5 0 8 0 pipepl 320 967 0 940 26 23 3 9 0 8 0 fdescpl 496 3500 0 3473 6 2 4 5 0 8 0 filepl 152 24949 0 24727 66 56 10 21 0 8 0 lockfpl 104 1412 0 1410 3 2 1 2 0 8 0 lockfspl 48 518 0 516 1 0 1 1 0 8 0 sessionpl 144 124 0 115 1 0 1 1 0 8 0 pgrppl 48 289 0 272 1 0 1 1 0 8 0 ucredpl 104 3996 0 3983 1 0 1 1 0 8 0 zombiepl 144 3800 0 3798 1 0 1 1 0 8 0 processpl 1160 3541 0 3473 7 1 6 6 0 8 0 procpl 648 7344 0 7276 8 1 7 8 0 8 0 srpgc 96 14 0 14 4 4 0 1 0 8 0 sosppl 168 22 0 22 2 2 0 1 0 8 0 sockpl 664 7005 0 6973 85 80 5 20 0 8 1 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 12 0 0 2 0 2 2 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 254 0 0 29 0 29 29 0 8 0 mtagpl 96 69 0 0 2 0 2 2 0 8 0 mbufpl 256 1242 0 0 77 0 77 77 0 8 0 bufpl 280 14059 0 7913 442 0 442 442 0 8 0 anonpl 24 492363 0 487694 183 123 60 90 0 185 17 amapchunkpl 152 95792 0 95417 95 62 33 46 0 158 11 amappl16 200 9167 0 9134 81 78 3 22 0 8 0 amappl15 192 9 0 9 1 1 0 1 0 8 0 amappl14 184 282 0 270 1 0 1 1 0 8 0 amappl13 176 12 0 11 1 0 1 1 0 8 0 amappl12 168 5135 0 5107 3 1 2 2 0 8 0 amappl11 160 58 0 44 1 0 1 1 0 8 0 amappl10 152 11 0 11 1 1 0 1 0 8 0 amappl9 144 133 0 133 1 1 0 1 0 8 0 amappl8 136 32 0 29 1 0 1 1 0 8 0 amappl7 128 263 0 250 1 0 1 1 0 8 0 amappl6 120 790 0 784 1 0 1 1 0 8 0 amappl5 112 429 0 414 1 0 1 1 0 8 0 amappl4 104 592 0 572 1 0 1 1 0 8 0 amappl3 96 19284 0 19214 4 0 4 4 0 8 0 amappl2 88 1858 0 1784 2 0 2 2 0 8 0 amappl1 80 28060 0 27506 18 4 14 15 0 8 0 amappl 88 28152 0 28033 5 0 5 5 0 92 0 dma8192 8192 1 0 1 1 1 0 1 0 8 0 dma4096 4096 3 0 3 3 3 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 254 0 254 2 2 0 1 0 8 0 dma64 64 7 0 7 2 2 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 93 0 1 2 0 2 2 0 8 0 uaddrrnd 24 3500 0 3473 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3500 0 3473 1 0 1 1 0 8 0 vmmpekpl 168 32693 0 32626 4 0 4 4 0 8 0 vmmpepl 168 227121 0 225575 143 58 85 102 0 357 0 vmsppl 440 3499 0 3473 6 2 4 5 0 8 0 rwobjpl 56 69047 0 61918 112 9 103 106 0 8 0 pdppl 4096 7007 0 6946 231 168 63 85 0 8 2 pvpl 32 46124 0 0 372 1 371 371 0 265 0 pmappl 248 3499 0 3473 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 744 0 317 13 0 13 13 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830e28f3) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309aac0,ffffffff83015c9a,436,ffffffff8300c9ec) at __assert+0x29 rtrequest(1,ffff800036997e28,4,ffff800036997ed0,0) at rtrequest+0xdce sys/net/route.c:1078 rt_ifa_add(ffff8000016c7500,840100,ffff8000016c7558,0) at rt_ifa_add+0x22e sys/net/route.c:1273 in_ifinit(ffff800001588000,ffff8000016c7500,ffff800036998140,1) at in_ifinit+0x4bd in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800001588000,ffff8000016c7500,ffff800036998140,1) at in_ifinit+0x4bd sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff800036998130,ffff800001588000) at in_ioctl_change_ifaddr+0x92c sys/netinet/in.c:504 ifioctl(ffff800010fda010,8040691a,ffff800036998130,ffff80002a040528) at ifioctl+0x1571 pru_control sys/sys/protosw.h:355 [inline] ifioctl(ffff800010fda010,8040691a,ffff800036998130,ffff80002a040528) at ifioctl+0x1571 sys/net/if.c:2449 sys_ioctl(ffff80002a040528,ffff800036998310,ffff800036998260) at sys_ioctl+0x67c syscall(ffff800036998310) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800036998310) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77a67a97c310, count: -11 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1219 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1219 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: -5