Commit 7a9164d
committed
Merge tag 'kvm-x86-vcpu_array-6.14' of https://github.com/kvm-x86/linux into HEAD
KVM vcpu_array fixes and cleanups for 6.14:
- Explicitly verify the target vCPU is online in kvm_get_vcpu() to fix a bug
where KVM would return a pointer to a vCPU prior to it being fully online,
and give kvm_for_each_vcpu() similar treatment to fix a similar flaw.
- Wait for a vCPU to come online prior to executing a vCPU ioctl to fix a
bug where userspace could coerce KVM into handling the ioctl on a vCPU that
isn't yet onlined.
- Gracefully handle xa_insert() failures even though such failuires should be
impossible in practice.2 files changed
Lines changed: 65 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
963 | 963 | | |
964 | 964 | | |
965 | 965 | | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
966 | 975 | | |
967 | 976 | | |
968 | 977 | | |
969 | 978 | | |
970 | 979 | | |
971 | 980 | | |
972 | 981 | | |
973 | | - | |
974 | | - | |
975 | | - | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
976 | 986 | | |
977 | 987 | | |
978 | 988 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4111 | 4111 | | |
4112 | 4112 | | |
4113 | 4113 | | |
4114 | | - | |
4115 | | - | |
4116 | | - | |
4117 | | - | |
4118 | | - | |
4119 | | - | |
4120 | 4114 | | |
4121 | 4115 | | |
4122 | 4116 | | |
4123 | 4117 | | |
4124 | 4118 | | |
4125 | 4119 | | |
4126 | | - | |
| 4120 | + | |
| 4121 | + | |
4127 | 4122 | | |
4128 | 4123 | | |
4129 | 4124 | | |
4130 | | - | |
| 4125 | + | |
| 4126 | + | |
| 4127 | + | |
| 4128 | + | |
| 4129 | + | |
| 4130 | + | |
| 4131 | + | |
| 4132 | + | |
| 4133 | + | |
4131 | 4134 | | |
4132 | 4135 | | |
4133 | 4136 | | |
4134 | | - | |
4135 | | - | |
4136 | | - | |
4137 | | - | |
4138 | | - | |
4139 | | - | |
| 4137 | + | |
4140 | 4138 | | |
4141 | 4139 | | |
4142 | 4140 | | |
4143 | 4141 | | |
4144 | 4142 | | |
4145 | 4143 | | |
4146 | 4144 | | |
| 4145 | + | |
4147 | 4146 | | |
4148 | 4147 | | |
4149 | 4148 | | |
4150 | 4149 | | |
4151 | 4150 | | |
4152 | 4151 | | |
4153 | | - | |
| 4152 | + | |
| 4153 | + | |
4154 | 4154 | | |
4155 | | - | |
| 4155 | + | |
4156 | 4156 | | |
4157 | 4157 | | |
4158 | 4158 | | |
| |||
4277 | 4277 | | |
4278 | 4278 | | |
4279 | 4279 | | |
| 4280 | + | |
| 4281 | + | |
| 4282 | + | |
| 4283 | + | |
| 4284 | + | |
| 4285 | + | |
| 4286 | + | |
| 4287 | + | |
| 4288 | + | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
| 4293 | + | |
| 4294 | + | |
| 4295 | + | |
| 4296 | + | |
| 4297 | + | |
| 4298 | + | |
| 4299 | + | |
| 4300 | + | |
| 4301 | + | |
| 4302 | + | |
| 4303 | + | |
| 4304 | + | |
| 4305 | + | |
| 4306 | + | |
4280 | 4307 | | |
4281 | 4308 | | |
4282 | 4309 | | |
| |||
4292 | 4319 | | |
4293 | 4320 | | |
4294 | 4321 | | |
| 4322 | + | |
| 4323 | + | |
| 4324 | + | |
| 4325 | + | |
| 4326 | + | |
| 4327 | + | |
| 4328 | + | |
| 4329 | + | |
| 4330 | + | |
4295 | 4331 | | |
4296 | 4332 | | |
4297 | 4333 | | |
| |||
0 commit comments