linux-stable/drivers
Zelin Deng 773e89ab00 ptp: Fix ptp_kvm_getcrosststamp issue for x86 ptp_kvm
hv_clock is preallocated to have only HVC_BOOT_ARRAY_SIZE (64) elements;
if the PTP_SYS_OFFSET_PRECISE ioctl is executed on vCPUs whose index is
64 of higher, retrieving the struct pvclock_vcpu_time_info pointer with
"src = &hv_clock[cpu].pvti" will result in an out-of-bounds access and
a wild pointer.  Change it to "this_cpu_pvti()" which is guaranteed to
be valid.

Fixes: 95a3d4454b ("Switch kvmclock data to a PER_CPU variable")
Signed-off-by: Zelin Deng <zelin.deng@linux.alibaba.com>
Cc: <stable@vger.kernel.org>
Message-Id: <1632892429-101194-3-git-send-email-zelin.deng@linux.alibaba.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-09-30 04:08:15 -04:00
..
accessibility
acpi
amba
android
ata
atm
auxdisplay
base xen: branch for v5.15-rc2 2021-09-17 08:31:49 -07:00
bcma
block virtio,vdpa,vhost: features, fixes 2021-09-11 14:48:42 -07:00
bluetooth
bus
cdrom
char IPMI: A couple of very minor fixes for style and rate limiting 2021-09-12 11:44:58 -07:00
clk One patch to fix an unused variable warning in a Qualcomm clk driver. 2021-09-11 10:05:56 -07:00
clocksource
comedi
connector
counter
cpufreq Power management fixes for 5.15-rc2 2021-09-17 12:05:04 -07:00
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire FireWire (IEEE 1394) subsystem updates: 2021-09-11 09:47:33 -07:00
firmware - Add the tegra3 thermal sensor and fix the compilation testing on 2021-09-11 09:20:57 -07:00
fpga
fsi
gnss
gpio
gpu Revert "drm/vc4: hdmi: Remove drm_encoder->crtc usage" 2021-09-19 10:11:53 -07:00
greybus
hid
hsi
hv hyperv-fixes for 5.15-rc2 2021-09-15 17:18:56 -07:00
hwmon
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband
input Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2021-09-11 09:08:28 -07:00
interconnect
iommu virtio,vdpa,vhost: features, fixes 2021-09-11 14:48:42 -07:00
ipack
irqchip
isdn
leds
macintosh memblock: introduce saner 'memblock_free_ptr()' interface 2021-09-14 13:23:22 -07:00
mailbox
mcb
md
media
memory
memstick
message
mfd
misc Misc driver fix for 5.15-rc1 2021-09-12 11:56:00 -07:00
mmc
most
mtd
mux
net dmascc: use proper 'virt_to_bus()' rather than casting to 'int' 2021-09-19 10:49:42 -07:00
nfc
ntb
nubus
nvdimm
nvme nvme fixes for Linux 5.15 2021-09-15 07:53:32 -06:00
nvmem
of of: restricted dma: Fix condition for rmem init 2021-09-17 15:58:09 -05:00
opp
parisc
parport
pci PCI: Add AMD GPU multi-function power dependencies 2021-09-15 16:31:41 -05:00
pcmcia
perf KVM: arm64: Fix PMU probe ordering 2021-09-20 12:43:34 +01:00
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp ptp: Fix ptp_kvm_getcrosststamp issue for x86 ptp_kvm 2021-09-30 04:08:15 -04:00
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc rtc: cmos: Disable irq around direct invocation of cmos_interrupt() 2021-09-14 10:20:19 +02:00
s390 s390/ap: fix kernel doc comments 2021-09-15 14:29:21 +02:00
sbus
scsi
sh
siox
slimbus
soc
soundwire
spi spi: Fix tegra20 build with CONFIG_PM=n 2021-09-18 10:05:06 -07:00
spmi
ssb
staging
target
tc
tee
thermal - Add the tegra3 thermal sensor and fix the compilation testing on 2021-09-11 09:20:57 -07:00
thunderbolt
tty
uio
usb
vdpa virtio,vdpa,vhost: features, fixes 2021-09-11 14:48:42 -07:00
vfio
vhost Networking fixes for 5.15-rc2, including fixes from bpf. 2021-09-16 13:05:42 -07:00
video tgafb: clarify dependencies 2021-09-18 11:15:01 -07:00
virt
virtio virtio,vdpa,vhost: features, fixes 2021-09-11 14:48:42 -07:00
visorbus
vlynq
vme
w1
watchdog
xen xen: branch for v5.15-rc2 2021-09-17 08:31:49 -07:00
zorro
Kconfig
Makefile