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 *209587 61380 0 0x2 0 0K ifconfig db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830e8a98) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff83099b40,ffffffff83011130,436,ffffffff83007eda) at __assert+0x29 rtrequest(1,ffff800030bc93e8,4,ffff800030bc9490,0) at rtrequest+0xdce sys/net/route.c:1078 rt_ifa_add(ffff800000e5ac00,840100,ffff800000e5ac58,0) at rt_ifa_add+0x22e sys/net/route.c:1273 in_ifinit(ffff800001621000,ffff800000e5ac00,ffff800030bc9700,1) at in_ifinit+0x4bd in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800001621000,ffff800000e5ac00,ffff800030bc9700,1) at in_ifinit+0x4bd sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff800030bc96f0,ffff800001621000) at in_ioctl_change_ifaddr+0x92c sys/netinet/in.c:504 ifioctl(ffff800001657238,8040691a,ffff800030bc96f0,ffff8000ffff76e8) at ifioctl+0x1571 pru_control sys/sys/protosw.h:355 [inline] ifioctl(ffff800001657238,8040691a,ffff800030bc96f0,ffff8000ffff76e8) at ifioctl+0x1571 sys/net/if.c:2449 sys_ioctl(ffff8000ffff76e8,ffff800030bc98d0,ffff800030bc9820) at sys_ioctl+0x67c syscall(ffff800030bc98d0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800030bc98d0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x739e06ee5bf0, 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(ffffffff830e8a98) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff83099b40,ffffffff83011130,436,ffffffff83007eda) at __assert+0x29 rtrequest(1,ffff800030bc93e8,4,ffff800030bc9490,0) at rtrequest+0xdce sys/net/route.c:1078 rt_ifa_add(ffff800000e5ac00,840100,ffff800000e5ac58,0) at rt_ifa_add+0x22e sys/net/route.c:1273 in_ifinit(ffff800001621000,ffff800000e5ac00,ffff800030bc9700,1) at in_ifinit+0x4bd in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800001621000,ffff800000e5ac00,ffff800030bc9700,1) at in_ifinit+0x4bd sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff800030bc96f0,ffff800001621000) at in_ioctl_change_ifaddr+0x92c sys/netinet/in.c:504 ifioctl(ffff800001657238,8040691a,ffff800030bc96f0,ffff8000ffff76e8) at ifioctl+0x1571 pru_control sys/sys/protosw.h:355 [inline] ifioctl(ffff800001657238,8040691a,ffff800030bc96f0,ffff8000ffff76e8) at ifioctl+0x1571 sys/net/if.c:2449 sys_ioctl(ffff8000ffff76e8,ffff800030bc98d0,ffff800030bc9820) at sys_ioctl+0x67c syscall(ffff800030bc98d0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800030bc98d0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x739e06ee5bf0, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800030bc91e0 rbx 0xffffffff834d8d87 cpu_info_full_primary+0x2d87 rdx 0 rcx 0xffff8000ffff76e8 rax 0xffffffff834d7ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x6527e2913ff33209 r11 0xcd12340d86cdb116 r12 0xffffffff834d8b88 cpu_info_full_primary+0x2b88 r13 0 r14 0 r15 0x1 rip 0xffffffff819b6b25 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800030bc91d0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (ifconfig) tid=209587 pid=61380 tcnt=1 stat=onproc flags process=2 proc=0 runpri=86, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffff67b8,0xffffffff8361ba28 process=0xffff8000309728e0 user=0xffff800030bc4000, vmspace=0xfffffd80686a91c0 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *61380 209587 54267 0 7 0x2 ifconfig 54267 283219 41245 0 3 0x10008a sigsusp sh 59178 446790 98968 0 3 0x2 clonelk ifconfig 98968 257616 36277 0 3 0x10008a sigsusp sh 36277 46045 77340 0 3 0x82 wait syz-executor 78730 349444 77340 0 3 0x82 piperd syz-executor 41245 305001 77340 0 3 0x82 wait syz-executor 63075 238058 77340 0 3 0x82 piperd syz-executor 55127 204654 1 0 3 0x3000 suspend syz-executor 55127 475074 1 0 3 0x4081000 inode syz-executor 55127 44516 1 0 3 0x4081000 inode syz-executor 80957 222561 77340 0 3 0x82 piperd syz-executor 47515 30348 77340 0 3 0x82 piperd syz-executor 30302 172003 77340 0 3 0x82 piperd syz-executor 25242 143075 0 0 3 0x14200 acct acct 71060 211419 1 0 3 0x100083 ttyin getty 35173 430167 0 0 3 0x14280 nfsidl nfsio 84798 409115 0 0 3 0x14280 nfsidl nfsio 28104 232943 0 0 3 0x14280 nfsidl nfsio 40616 24700 0 0 3 0x14280 nfsidl nfsio 89695 428306 0 0 3 0x14280 nfsidl nfsio 24258 275037 0 0 3 0x14280 nfsidl nfsio 78261 409149 0 0 3 0x14280 nfsidl nfsio 89730 155871 0 0 3 0x14280 nfsidl nfsio 87964 67882 0 0 3 0x14280 nfsidl nfsio 5507 161811 0 0 3 0x14280 nfsidl nfsio 57903 107098 0 0 3 0x14280 nfsidl nfsio 10421 222921 0 0 3 0x14280 nfsidl nfsio 69436 224219 0 0 3 0x14280 nfsidl nfsio 18786 406407 0 0 3 0x14280 nfsidl nfsio 86851 475025 0 0 3 0x14280 nfsidl nfsio 73827 200160 0 0 3 0x14280 nfsidl nfsio 97181 392890 0 0 3 0x14280 nfsidl nfsio 18851 227772 0 0 3 0x14280 nfsidl nfsio 74227 10391 0 0 3 0x14280 nfsidl nfsio 30886 72993 0 0 3 0x14280 nfsidl nfsio 74722 507553 0 0 3 0x14200 bored sosplice 77340 195754 12475 0 3 0x82 wait syz-executor 12475 376513 53452 0 3 0x10008a sigsusp ksh 53452 161023 51406 0 3 0x98 kqread sshd-session 51406 257389 84293 0 3 0x92 kqread sshd-session 84293 325935 1 0 3 0x88 kqread sshd 78484 177534 97659 74 3 0x1100092 bpf pflogd 97659 41062 1 0 3 0x80 sbwait pflogd 41702 62668 78036 73 2 0x1100010 syslogd 78036 382258 1 0 3 0x100082 sbwait syslogd 63637 241548 1 0 3 0x100080 kqread resolvd 15767 503929 33064 77 3 0x100092 kqread dhcpleased 72799 268854 33064 77 3 0x100092 kqread dhcpleased 33064 20585 1 0 3 0x80 kqread dhcpleased 13393 378840 0 0 3 0x14200 bored smr 46382 523627 0 0 2 0x14200 zerothread 59404 150795 0 0 3 0x14200 aiodoned aiodoned 7523 55608 0 0 3 0x14200 syncer update 94061 490349 0 0 3 0x14200 cleaner cleaner 64063 328810 0 0 3 0x14200 reaper reaper 40073 383050 0 0 3 0x14200 pgdaemon pagedaemon 292 317551 0 0 3 0x14200 bored viomb 16792 232119 0 0 3 0x40014200 acpi0 acpi0 52024 511816 0 0 7 0x40014200 idle1 81690 443439 0 0 3 0x14200 bored softnet3 88123 51746 0 0 3 0x14200 bored softnet2 97965 412907 0 0 3 0x14200 bored softnet1 4488 180575 0 0 3 0x14200 bored softnet0 39624 164443 0 0 3 0x14200 bored systqmp 63810 29855 0 0 3 0x14200 bored systq 92879 1072 0 0 3 0x14200 tmoslp softclockmp 54620 271448 0 0 3 0x40014200 tmoslp softclock 17879 117671 0 0 3 0x40014200 idle0 1 503982 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 61380 (ifconfig) thread 0xffff8000ffff76e8 (209587) Process 55127 (syz-executor) thread 0xffff800036199978 (475074) Process 55127 (syz-executor) thread 0xffff800036198cd0 (44516) Process 41702 (syslogd) thread 0xffff8000ffffdbe8 (62668) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10205 14197K 14585K 166960K 14063 0 pcb 18 19K 21K 166960K 352 0 rtable 178 6K 8K 166960K 2530 0 pf 39 18K 22K 166960K 244 0 ifaddr 37 6K 8K 166960K 342 0 ifgroup 59 2K 2K 166960K 390 0 sysctl 3 0K 0K 166960K 5 0 counters 66 36K 37K 166960K 240 0 ioctlops 0 0K 4K 166960K 1816 0 iov 0 0K 24K 166960K 324 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1501 94K 95K 166960K 4293 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 29 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 177 0 dirhash 15 2K 2K 166960K 39 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 15 53K 97K 166960K 2875 0 sigio 0 0K 0K 166960K 50 0 proc 87 128K 140K 166960K 2567 0 subproc 117 7K 7K 166960K 977 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 396 0 in_multi 68 5K 7K 166960K 874 0 ether_multi 1 0K 0K 166960K 18 0 mrt 1 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 0 0K 1K 166960K 1539 0 pfkey data 0 0K 0K 166960K 7 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 204 80K 109K 166960K 25166 0 UVM aobj 21 4K 4K 166960K 21 0 pinsyscall 40 80K 106K 166960K 5684 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 102 0 NDP 17 0K 2K 166960K 249 0 temp 83 6824K 7079K 166960K 134056 0 kqueue 14 22K 32K 166960K 324 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 379 0 376 3 2 1 3 0 8 0 rtentry 112 904 0 825 5 2 3 4 0 8 0 unpcb 144 2046 0 2029 21 20 1 6 0 8 0 syncache 336 9 0 9 1 1 0 1 0 8 0 tcpqe 32 3 0 3 1 1 0 1 0 8 0 tcpcb 808 771 0 766 22 21 1 8 0 8 0 arp 120 162 0 144 1 0 1 1 0 8 0 inpcb 336 3105 0 3092 45 43 2 15 0 8 0 nd6 136 238 0 220 1 0 1 1 0 8 0 pkpcb 40 12 0 12 6 6 0 1 0 8 0 kcovpl 48 75 0 66 1 0 1 1 0 8 0 ppxss 1168 13 0 13 7 7 0 1 0 8 0 pfstscr 40 2 0 1 1 0 1 1 0 8 0 pffrag 232 59 0 54 1 0 1 1 0 482 0 pffrnode 88 24 0 20 1 0 1 1 0 8 0 pffrent 40 191 0 186 1 0 1 1 0 8 0 pfosfp 40 1429 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1429 0 714 21 0 21 21 0 8 0 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pfstitem 24 268 0 241 1 0 1 1 0 8 0 pfstkey 128 272 0 245 3 0 3 3 0 8 0 pfstate 376 269 0 243 8 0 8 8 0 8 1 pfrule 1344 27 0 20 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 3597 0 3296 41 17 24 31 0 8 2 art_table 32 3599 0 3296 5 1 4 4 0 8 0 art_node 16 893 0 826 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 10 1 0 1 1 0 8 0 semapl 112 172 0 162 1 0 1 1 0 8 0 shmpl 112 18 0 0 1 0 1 1 0 8 0 dirhash 1024 35 0 16 3 0 3 3 0 8 0 dino2pl 256 5221 0 3577 103 0 103 103 0 8 0 ffsino 272 5221 0 3577 110 0 110 110 0 8 0 nchpl 144 7996 0 6229 67 0 67 67 0 8 0 uvmvnodes 80 7272 0 0 149 0 149 149 0 8 0 vnodes 216 7272 0 0 404 0 404 404 0 8 0 namei 1024 35407 0 35404 11 10 1 7 0 8 0 percpumem 16 134 0 87 1 0 1 1 0 8 0 kstatmem 264 200 0 174 4 1 3 3 0 8 0 scsiplug 72 2 0 2 2 2 0 1 0 8 0 scxspl 216 56412 0 56412 14 13 1 8 1 8 1 plimitpl 152 567 0 549 1 0 1 1 0 8 0 sigapl 424 3090 0 3021 11 2 9 9 0 8 0 futexpl 64 27851 0 27851 7 7 0 1 0 8 0 knotepl 120 611 0 0 17 0 17 17 0 8 0 kqueuepl 216 633 0 621 7 6 1 5 0 8 0 pipepl 320 588 0 560 9 6 3 6 0 8 0 fdescpl 496 3028 0 2999 7 2 5 6 0 8 0 filepl 152 19443 0 19172 53 42 11 20 0 8 0 lockfpl 104 840 0 838 2 1 1 2 0 8 0 lockfspl 48 347 0 345 1 0 1 1 0 8 0 sessionpl 144 96 0 87 1 0 1 1 0 8 0 pgrppl 48 194 0 176 1 0 1 1 0 8 0 ucredpl 104 4055 0 4040 1 0 1 1 0 8 0 zombiepl 144 3700 0 3698 2 1 1 1 0 8 0 processpl 1160 3090 0 3021 7 1 6 6 0 8 0 procpl 648 6290 0 6219 9 1 8 8 0 8 0 srpgc 96 19 0 19 8 7 1 1 0 8 1 sosppl 168 7 0 7 3 3 0 1 0 8 0 sockpl 664 5578 0 5547 66 62 4 17 0 8 0 mcl64k 65536 8 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 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 239 0 0 29 0 29 29 0 8 0 mtagpl 96 136 0 0 2 0 2 2 0 8 0 mbufpl 256 480 0 0 23 0 23 23 0 8 0 bufpl 280 12285 0 5013 520 0 520 520 0 8 0 anonpl 24 459870 0 455725 180 96 84 86 0 185 39 amapchunkpl 152 81632 0 81209 94 50 44 46 0 158 16 amappl16 200 9071 0 9057 87 82 5 21 0 8 0 amappl15 192 11 0 11 1 1 0 1 0 8 0 amappl14 184 298 0 286 1 0 1 1 0 8 0 amappl13 176 5 0 5 1 1 0 1 0 8 0 amappl12 168 4728 0 4699 4 2 2 3 0 8 0 amappl11 160 56 0 41 1 0 1 1 0 8 0 amappl10 152 5 0 5 1 1 0 1 0 8 0 amappl9 144 147 0 147 2 2 0 1 0 8 0 amappl8 136 30 0 27 1 0 1 1 0 8 0 amappl7 128 244 0 232 1 0 1 1 0 8 0 amappl6 120 839 0 833 1 0 1 1 0 8 0 amappl5 112 424 0 410 1 0 1 1 0 8 0 amappl4 104 544 0 524 1 0 1 1 0 8 0 amappl3 96 16201 0 16121 5 1 4 4 0 8 0 amappl2 88 1668 0 1595 2 0 2 2 0 8 0 amappl1 80 21196 0 20629 14 0 14 14 0 8 0 amappl 88 24085 0 23944 5 0 5 5 0 92 0 dma16384 16384 2 0 2 1 1 0 1 0 8 0 dma4096 4096 2 0 2 2 2 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 8 0 8 2 2 0 1 0 8 0 dma16 16 20 0 19 1 0 1 1 0 8 0 aobjpl 72 20 0 0 1 0 1 1 0 8 0 uaddrrnd 24 3028 0 2999 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3028 0 2999 1 0 1 1 0 8 0 vmmpekpl 168 26540 0 26494 4 0 4 4 0 8 0 vmmpepl 168 190944 0 189328 137 52 85 102 0 357 1 vmsppl 440 3027 0 2999 6 2 4 5 0 8 0 rwobjpl 56 61152 0 52919 122 5 117 119 0 8 0 pdppl 4096 6063 0 5998 190 121 69 87 0 8 4 pvpl 32 45811 0 0 368 0 368 368 0 265 0 pmappl 248 3027 0 2999 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 596 0 224 12 0 12 12 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(ffffffff830e8a98) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff83099b40,ffffffff83011130,436,ffffffff83007eda) at __assert+0x29 rtrequest(1,ffff800030bc93e8,4,ffff800030bc9490,0) at rtrequest+0xdce sys/net/route.c:1078 rt_ifa_add(ffff800000e5ac00,840100,ffff800000e5ac58,0) at rt_ifa_add+0x22e sys/net/route.c:1273 in_ifinit(ffff800001621000,ffff800000e5ac00,ffff800030bc9700,1) at in_ifinit+0x4bd in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800001621000,ffff800000e5ac00,ffff800030bc9700,1) at in_ifinit+0x4bd sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff800030bc96f0,ffff800001621000) at in_ioctl_change_ifaddr+0x92c sys/netinet/in.c:504 ifioctl(ffff800001657238,8040691a,ffff800030bc96f0,ffff8000ffff76e8) at ifioctl+0x1571 pru_control sys/sys/protosw.h:355 [inline] ifioctl(ffff800001657238,8040691a,ffff800030bc96f0,ffff8000ffff76e8) at ifioctl+0x1571 sys/net/if.c:2449 sys_ioctl(ffff8000ffff76e8,ffff800030bc98d0,ffff800030bc9820) at sys_ioctl+0x67c syscall(ffff800030bc98d0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800030bc98d0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x739e06ee5bf0, 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