linux-stable/drivers
Ville Syrjälä 65ea3311ce drm/i915/bios: Use hardcoded fp_timing size for generating LFP data pointers
commit d3a7051841 upstream.

The current scheme for generating the LFP data table pointers
(when the block including them is missing from the VBT) expects
the 0xffff sequence to only appear in the fp_timing terminator
entries. However some VBTs also have extra 0xffff sequences
elsewhere in the LFP data. When looking for the terminators
we may end up finding those extra sequeneces insted, which means
we deduce the wrong size for the fp_timing table. The code
then notices the inconsistent looking values and gives up on
the generated data table pointers, preventing us from parsing
the LFP data table entirely.

Let's give up on the "search for the terminators" approach
and instead just hardcode the expected size for the fp_timing
table.

We have enough sanity checks in place to make sure we
shouldn't end up parsing total garbage even if that size
should change in the future (although that seems unlikely
as the fp_timing and dvo_timing tables have been declared
obsolete as of VBT version 229).

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/6592
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220818192223.29881-3-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-10-24 09:58:32 +02:00
..
accessibility
acpi ACPI: x86: Add a quirk for Dell Inspiron 14 2-in-1 for StorageD3Enable 2022-10-24 09:58:10 +02:00
amba
android binder: fix alloc->vma_vm_mm null-ptr dereference 2022-09-08 11:24:02 +02:00
ata ata: libahci_platform: Sanity check the DT child nodes number 2022-10-24 09:58:25 +02:00
atm atm: idt77252: fix use-after-free bugs caused by tst_timer 2022-08-25 11:45:25 +02:00
auxdisplay
base arm64: topology: move store_cpu_topology() to shared code 2022-10-24 09:56:45 +02:00
bcma
block nbd: Fix hung when signal interrupts nbd_start_device_ioctl() 2022-10-24 09:58:24 +02:00
bluetooth Bluetooth: btintel: Mark Intel controller to support LE_STATES quirk 2022-10-24 09:58:13 +02:00
bus bus: hisi_lpc: fix missing platform_device_put() in hisi_lpc_acpi_probe() 2022-08-17 15:14:13 +02:00
cdrom block: simplify disk shutdown 2022-09-28 11:32:01 +02:00
char random: schedule jitter credit for next jiffy, not in two jiffies 2022-10-24 09:58:07 +02:00
clk clk: bcm2835: Round UART input clock up 2022-10-24 09:58:29 +02:00
clocksource clocksource/drivers/timer-gxp: Add missing error handling in gxp_timer_probe 2022-10-24 09:58:06 +02:00
comedi
connector
counter counter: 104-quad-8: Fix skipped IRQ lines during events configuration 2022-10-05 10:40:42 +02:00
cpufreq cpufreq: intel_pstate: Add Tigerlake support in no-HWP mode 2022-10-24 09:58:09 +02:00
cpuidle cpuidle: riscv-sbi: Fix CPU_PM_CPU_IDLE_ENTER_xyz() macro usage 2022-10-24 09:58:03 +02:00
crypto crypto: cavium - prevent integer overflow loading firmware 2022-10-24 09:58:07 +02:00
cxl
dax devdax: Fix soft-reservation memory description 2022-09-28 11:32:27 +02:00
dca
devfreq
dio
dma dmaengine: ti: k3-udma: Reset UDMA_CHAN_RT byte counters to prevent overflow 2022-10-24 09:58:24 +02:00
dma-buf udmabuf: Set ubuf->sg = NULL if the creation of sg table fails 2022-10-24 09:58:17 +02:00
edac
eisa
extcon
firewire
firmware firmware: google: Test spinlock on panic path to avoid lockups 2022-10-24 09:57:57 +02:00
fpga fpga: prevent integer overflow in dfl_feature_ioctl_set_irq() 2022-10-24 09:57:51 +02:00
fsi fsi: occ: Prevent use after free 2022-10-24 09:58:28 +02:00
gnss
gpio gpio: rockchip: request GPIO mux to pinctrl when setting direction 2022-10-24 09:56:51 +02:00
gpu drm/i915/bios: Use hardcoded fp_timing size for generating LFP data pointers 2022-10-24 09:58:32 +02:00
greybus
hid HID: uclogic: Add missing suffix for digitalizers 2022-10-24 09:58:31 +02:00
hsi HSI: ssi_protocol: fix potential resource leak in ssip_pn_open() 2022-10-24 09:58:26 +02:00
hte
hv Drivers: hv: Never allocate anything besides framebuffer from framebuffer memory region 2022-09-28 11:32:23 +02:00
hwmon hwmon (occ): Retry for checksum failure 2022-10-24 09:58:28 +02:00
hwspinlock
hwtracing coresight: etm4x: avoid build failure with unrolled loops 2022-08-25 11:45:43 +02:00
i2c i2c: designware-pci: Group AMD NAVI quirk parts together 2022-10-24 09:58:16 +02:00
i3c
idle intel_idle: make SPR C1 and C1E be independent 2022-08-17 15:16:13 +02:00
iio iio: magnetometer: yas530: Change data type of hard_offsets to signed 2022-10-24 09:57:47 +02:00
infiniband RDMA/rxe: Delete error messages triggered by incoming Read requests 2022-10-24 09:58:23 +02:00
input Input: xpad - fix wireless 360 controller breaking after suspend 2022-10-15 08:01:45 +02:00
interconnect interconnect: imx: fix max_node_id 2022-08-17 15:15:33 +02:00
iommu iommu/arm-smmu-v3: Make default domain type of HiSilicon PTT device to identity 2022-10-24 09:58:24 +02:00
ipack
irqchip irqchip/tegra: Fix overflow implicit truncation warnings 2022-08-25 11:45:41 +02:00
isdn mISDN: fix use-after-free bugs in l1oip timer handlers 2022-10-24 09:57:14 +02:00
leds leds: lm3601x: Don't use mutex after it was destroyed 2022-10-24 09:57:05 +02:00
macintosh
mailbox mailbox: bcm-ferxrm-mailbox: Fix error check for dma_map_sg 2022-10-24 09:58:02 +02:00
mcb
md md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d 2022-10-24 09:58:26 +02:00
media media: platform: fix some double free in meson-ge2d and mtk-jpeg and s5p-mfc 2022-10-24 09:58:23 +02:00
memory memory: of: Fix refcount leak bug in of_lpddr3_get_ddr_timings() 2022-10-24 09:57:24 +02:00
memstick block: simplify disk shutdown 2022-09-28 11:32:01 +02:00
message
mfd mfd: da9061: Fix Failed to set Two-Wire Bus Mode. 2022-10-24 09:57:59 +02:00
misc misc: ocxl: fix possible refcount leak in afu_ioctl() 2022-10-24 09:57:51 +02:00
mmc mmc: wmt-sdmmc: Fix an error handling path in wmt_mci_probe() 2022-10-24 09:57:22 +02:00
most
mtd mtd: rawnand: meson: fix bit map use in meson_nfc_ecc_correct() 2022-10-24 09:57:55 +02:00
mux
net net: ethernet: ti: davinci_mdio: fix build for mdio bitbang uses 2022-10-24 09:58:30 +02:00
nfc nfc: pn533: Fix use-after-free bugs caused by pn532_cmd_timeout 2022-08-31 17:18:02 +02:00
ntb NTB: ntb_tool: uninitialized heap data in tool_fn_write() 2022-08-25 11:45:24 +02:00
nubus
nvdimm pmem: fix a name collision 2022-09-28 11:32:25 +02:00
nvme nvmet-tcp: add bounds check on Transfer Tag 2022-10-24 09:58:28 +02:00
nvmem nvmem: core: Fix memleak in nvmem_register() 2022-10-24 09:56:46 +02:00
of of: fdt: fix off-by-one error in unflatten_dt_nodes() 2022-09-23 14:14:01 +02:00
opp opp: Fix error check in dev_pm_opp_attach_genpd() 2022-08-17 15:15:43 +02:00
parisc parisc: ccio-dma: Add missing iounmap in error path in ccio_probe() 2022-09-23 14:14:04 +02:00
parport
pci PCI: Sanitise firmware BAR assignments behind a PCI-PCI bridge 2022-10-24 09:56:49 +02:00
pcmcia
peci peci: cpu: Fix use-after-free in adev_release() 2022-09-20 12:43:46 +02:00
perf RISC-V: Re-enable counter access from userspace 2022-10-24 09:56:45 +02:00
phy phy: qualcomm: call clk_disable_unprepare in the error handling 2022-10-24 09:57:56 +02:00
pinctrl pinctrl: rockchip: add pinmux_ops.gpio_set_direction callback 2022-10-24 09:56:51 +02:00
platform platform/x86: msi-laptop: Change DMI match / alias strings to fix module autoloading 2022-10-24 09:58:18 +02:00
pnp
power power: supply: adp5061: fix out-of-bounds read in adp5061_get_chg_type() 2022-10-24 09:58:25 +02:00
powercap powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue 2022-10-24 09:58:09 +02:00
pps
ps3
ptp
pwm pwm: lpc18xx: Fix period handling 2022-08-17 15:14:21 +02:00
rapidio
ras
regulator regulator: core: Prevent integer underflow 2022-10-24 09:58:13 +02:00
remoteproc remoteproc: Harden rproc_handle_vdev() against integer overflow 2022-10-24 09:57:53 +02:00
reset reset: imx7: Fix the iMX8MP PCIe PHY PERST support 2022-10-05 10:40:48 +02:00
rpmsg rpmsg: char: Avoid double destroy of default endpoint 2022-10-24 09:56:58 +02:00
rtc rtc: spear: set range max 2022-08-25 11:45:19 +02:00
s390 s390/dasd: fix Oops in dasd_alias_get_start_dev due to missing pavgroup 2022-09-28 11:32:22 +02:00
sbus
scsi scsi: 3w-9xxx: Avoid disabling device if failing to enable it 2022-10-24 09:58:24 +02:00
sh
siox
slimbus slimbus: qcom-ngd: Add error handling in of_qcom_slim_ngd_register 2022-10-24 09:57:57 +02:00
soc soc/tegra: fuse: Drop Kconfig dependency on TEGRA20_APB_DMA 2022-10-24 09:57:45 +02:00
soundwire soundwire: intel: fix error handling on dai registration issues 2022-10-24 09:58:26 +02:00
spi spi: Ensure that sg_table won't be used after being freed 2022-10-24 09:57:15 +02:00
spmi spmi: pmic-arb: correct duplicate APID to PPID mapping logic 2022-10-24 09:58:00 +02:00
ssb
staging staging: rtl8723bs: fix a potential memory leak in rtw_init_cmd_priv() 2022-10-24 09:58:27 +02:00
target
tc
tee tee: fix compiler warning in tee_shm_register() 2022-09-15 10:47:13 +02:00
thermal thermal: intel_powerclamp: Use get_cpu() instead of smp_processor_id() to avoid crash 2022-10-24 09:58:09 +02:00
thunderbolt thunderbolt: Add back Intel Falcon Ridge end-to-end flow control workaround 2022-10-24 09:58:12 +02:00
tty serial: 8250: Fix restoring termios speed after suspend 2022-10-24 09:57:57 +02:00
ufs block: simplify disk shutdown 2022-09-28 11:32:01 +02:00
uio
usb usb: typec: ucsi: Don't warn on probe deferral 2022-10-24 09:58:29 +02:00
vdpa vdpa/mlx5: Fix MQ to support non power of two num queues 2022-10-05 10:40:53 +02:00
vfio vfio/type1: Unpin zero pages 2022-09-15 10:47:10 +02:00
vhost vhost/vsock: Use kvmalloc/kvfree for larger packets. 2022-10-24 09:57:14 +02:00
video fbdev: smscufx: Fix use-after-free in ufx_ops_open() 2022-10-24 09:56:51 +02:00
virt vboxguest: Do not use devm for irq 2022-08-25 11:45:42 +02:00
virtio virtio: VIRTIO_HARDEN_NOTIFICATION is broken 2022-08-25 11:45:15 +02:00
vlynq
vme
w1
watchdog watchdog: armada_37xx_wdt: check the return value of devm_ioremap() in armada_37xx_wdt_probe() 2022-08-17 15:15:57 +02:00
xen xen/gntdev: Accommodate VMA splitting 2022-10-24 09:56:48 +02:00
zorro
Kconfig
Makefile