summaryrefslogtreecommitdiffstats
path: root/kernel/arch/alpha/lib/strlen.S
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-06-27 15:08:01 +0200
committerYunhong Jiang <yunhong.jiang@linux.intel.com>2016-07-18 08:07:47 -0700
commit6443c73ab06239ab4b1bc0511d9b78f7122f477d (patch)
treec65a21f9088c9807a55e6aa42fb87c4a34f9ed2d /kernel/arch/alpha/lib/strlen.S
parent09c7dd2e0b05c5bc2def37e525a98e6b344d56f5 (diff)
KVM: vmx: fix underflow in TSC deadline calculation
If the TSC deadline timer is programmed really close to the deadline or even in the past, the computation in vmx_set_hv_timer can underflow and cause delta_tsc to be set to a huge value. This generally results in vmx_set_hv_timer returning -ERANGE, but we can fix it by limiting delta_tsc to be positive or zero. Reported-by: Wanpeng Li <wanpeng.li@hotmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Change-Id: I12eea18c3ec648dbf782d7754b7b574d7d6aa92c upstream-status: backport Signed-off-by: Yunhong Jiang <yunhong.jiang@linux.intel.com>
Diffstat (limited to 'kernel/arch/alpha/lib/strlen.S')
0 files changed, 0 insertions, 0 deletions
77'>177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266