linux-stable/drivers
Josh Poimboeuf a9da824762 drm/vmwgfx: Add unwind hints around RBP clobber
VMware high-bandwidth hypercalls take the RBP register as input.  This
breaks basic frame pointer convention, as RBP should never be clobbered.

So frame pointer unwinding is broken for the instructions surrounding
the hypercalls.  Fortunately this doesn't break live patching with
CONFIG_FRAME_POINTER, as it only unwinds from blocking tasks, and stack
traces from preempted tasks are already marked unreliable anyway.

However, for live patching with ORC, this could actually be a
theoretical problem if vmw_port_hb_{in,out}() were still compiled with a
frame pointer due to having an aligned stack.  In practice that hasn't
seemed to be an issue since the objtool warnings have only been seen
with CONFIG_FRAME_POINTER.

Add unwind hint annotations to tell the ORC unwinder to mark stack
traces as unreliable.

Fixes the following warnings:

  vmlinux.o: warning: objtool: vmw_port_hb_in+0x1df: return with modified stack frame
  vmlinux.o: warning: objtool: vmw_port_hb_out+0x1dd: return with modified stack frame

Fixes: 89da76fde6 ("drm/vmwgfx: Add VMWare host messaging capability")
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202305160135.97q0Elax-lkp@intel.com/
Link: https://lore.kernel.org/r/4c795f2d87bc0391cf6543bcb224fa540b55ce4b.1685981486.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
2023-06-07 10:03:12 -07:00
..
accel
accessibility
acpi ACPI: video: Remove acpi_backlight=video quirk for Lenovo ThinkPad W530 2023-05-04 20:23:41 +02:00
amba
android
ata
atm
auxdisplay
base
bcma
block ublk: fix command op code check 2023-05-12 09:09:06 -06:00
bluetooth
bus
cdrom
cdx
char
clk A couple more patches that would be good to get into -rc1. 2023-05-07 10:31:45 -07:00
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto This push fixes the following problems: 2023-05-07 10:57:14 -07:00
cxl cxl: Add missing return to cdat read error path 2023-05-13 00:20:06 -07:00
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire firewire: net: fix unexpected release of object for asynchronous request packet 2023-05-11 09:06:49 +09:00
firmware Merge tag 'drm-misc-fixes-2023-05-11' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes 2023-05-12 05:32:36 +10:00
fpga
fsi
gnss
gpio
gpu drm/vmwgfx: Add unwind hints around RBP clobber 2023-06-07 10:03:12 -07:00
greybus
hid
hsi
hte
hv
hwmon hwmon: (k10temp) Add PCI ID for family 19, model 78h 2023-05-08 11:36:19 +02:00
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband
input
interconnect
iommu
ipack
irqchip
isdn Including fixes from netfilter. 2023-05-05 19:12:01 -07:00
leds
macintosh
mailbox - mailbox api: allow direct registration to a channel 2023-05-07 10:17:33 -07:00
mcb
md for-6.4/block-2023-05-06 2023-05-06 08:28:58 -07:00
media media: nxp: imx8-isi: fix buiding on 32-bit 2023-05-08 09:10:07 -07:00
memory
memstick
message
mfd
misc lkdtm: Avoid objtool/ibt warning 2023-06-07 09:27:11 -07:00
mmc
most
mtd
mux
net net: mscc: ocelot: fix stat counter register values 2023-05-10 12:11:18 +01:00
nfc
ntb
nubus
nvdimm
nvme for-6.4/io_uring-2023-05-07 2023-05-07 10:00:09 -07:00
nvmem
of Devicetree fixes for 6.4, part 1: 2023-05-05 13:27:59 -07:00
opp
parisc
parport
pci
pcmcia
peci
perf
phy phy fixes for 6.4 2023-05-05 11:57:29 -07:00
pinctrl
platform platform/mellanox: fix potential race in mlxbf-tmfifo driver 2023-05-09 11:54:35 +02:00
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390
sbus
scsi SCSI misc on 20230506 2023-05-06 08:37:28 -07:00
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging
target
tc
tee
thermal thermal: intel: powerclamp: Fix NULL pointer access issue 2023-05-04 20:30:18 +02:00
thunderbolt
tty
ufs scsi: ufs: core: Fix I/O hang that occurs when BKOPS fails in W-LUN suspend 2023-05-08 07:15:05 -04:00
uio
usb
vdpa
vfio
vhost
video fbdev: stifb: Fix info entry in sti_struct on error path 2023-05-12 11:50:33 +02:00
virt
virtio
vlynq
w1
watchdog linux-watchdog 6.4-rc1 tag 2023-05-04 18:33:56 -07:00
xen
zorro
Kconfig
Makefile