linux-stable/drivers
Juergen Gross c648eaa339 tty: hvc: replace BUG_ON() with negative return value
commit e679004dec upstream.

Xen frontends shouldn't BUG() in case of illegal data received from
their backends. So replace the BUG_ON()s when reading illegal data from
the ring page with negative return values.

Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20210707091045.460-1-jgross@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-12-08 08:45:05 +01:00
..
accessibility
acpi ACPI: PMIC: Fix intel_pmic_regs_handler() read accesses 2021-11-26 11:48:39 +01:00
amba ARM: 9120/1: Revert "amba: make use of -1 IRQs warn" 2021-11-12 13:18:01 +01:00
android binder: fix test regression due to sender_euid change 2021-12-08 08:45:02 +01:00
ata libata: fix read log timeout value 2021-11-26 11:48:18 +01:00
atm
auxdisplay auxdisplay: img-ascii-lcd: Fix lock-up when displaying empty string 2021-11-26 11:48:38 +01:00
base regmap: Fix possible double-free in regcache_rbtree_exit() 2021-11-02 17:39:23 +01:00
bcma bcma: Fix memory leak for internally-handled cores 2021-09-22 11:43:02 +02:00
block xen/blkfront: don't trust the backend response data blindly 2021-12-08 08:45:04 +01:00
bluetooth
bus
cdrom
char
clk clk: kirkwood: Fix a clocking boot regression 2021-09-22 11:43:02 +02:00
clocksource
connector
cpufreq cpufreq: schedutil: Destroy mutex before kobject_put() frees the memory 2021-10-06 10:23:41 +02:00
cpuidle cpuidle: Fix kobject memory leaks in error paths 2021-11-26 11:48:33 +01:00
crypto crypto: qat - disregard spurious PFVF interrupts 2021-11-26 11:48:33 +01:00
dax
dca
devfreq
dio
dma dmaengine: dmaengine_desc_callback_valid(): Check for callback_result 2021-11-26 11:48:38 +01:00
dma-buf
edac EDAC/sb_edac: Fix top-of-high-memory value for Broadwell/Haswell 2021-11-26 11:48:22 +01:00
eisa
extcon
firewire
firmware efi: Change down_interruptible() in virt_efi_reset_system() to down_trylock() 2021-10-27 09:33:57 +02:00
fmc
fpga
gpio
gpu drm/vc4: fix error code in vc4_create_object() 2021-12-08 08:45:03 +01:00
hid HID: apple: Fix logical maximum and usage maximum of Magic Keyboard JIS 2021-10-17 10:05:40 +02:00
hsi
hv hyperv/vmbus: include linux/bitops.h 2021-11-26 11:48:20 +01:00
hwmon hwmon: Fix possible memleak in __hwmon_device_register() 2021-11-26 11:48:34 +01:00
hwspinlock
hwtracing
i2c i2c: xlr: Fix a resource leak in the error handling path of 'xlr_i2c_probe()' 2021-11-26 11:48:38 +01:00
ide
idle
iio iio: dac: ad5446: Fix ad5622_write() return value 2021-11-26 11:48:26 +01:00
infiniband RDMA/mlx4: Return missed an error if device doesn't support steering 2021-11-26 11:48:37 +01:00
input Input: i8042 - Add quirk for Fujitsu Lifebook T725 2021-11-26 11:48:17 +01:00
iommu iommu/amd: Fix backport of 140456f994 2021-08-04 11:58:01 +02:00
ipack ipack: ipoctal: fix module reference leak 2021-10-06 10:23:42 +02:00
irqchip ARM: s3c: irq-s3c24xx: Fix return value check for s3c24xx_init_intc() 2021-11-26 11:48:36 +01:00
isdn isdn: mISDN: Fix sleeping function called from invalid context 2021-10-27 09:34:00 +02:00
leds
lguest
lightnvm
macintosh
mailbox
mcb mcb: fix error handling in mcb_alloc_bus() 2021-10-06 10:23:39 +02:00
md
media media: si470x: Avoid card name truncation 2021-11-26 11:48:33 +01:00
memory memory: fsl_ifc: fix leak of irq and nand_irq in fsl_ifc_ctrl_probe 2021-11-26 11:48:37 +01:00
memstick memstick: jmb38x_ms: use appropriate free function in jmb38x_ms_alloc_host() 2021-11-26 11:48:34 +01:00
message
mfd mfd: Don't use irq_create_mapping() to resolve a mapping 2021-09-22 11:43:10 +02:00
misc cb710: avoid NULL pointer subtraction 2021-10-27 09:33:57 +02:00
mmc mmc: mxs-mmc: disable regulator on error and in the remove function 2021-11-26 11:48:35 +01:00
mtd mtd: spi-nor: hisi-sfc: Remove excessive clk_disable_unprepare() 2021-11-26 11:48:38 +01:00
net xen/netfront: don't trust the backend response data blindly 2021-12-08 08:45:04 +01:00
nfc nfc: pn533: Fix double free when pn533_fill_fragment_skbs() fails 2021-11-26 11:48:39 +01:00
ntb
nubus
nvdimm
nvme nvme-pci: Fix an error handling path in 'nvme_probe()' 2021-09-22 11:42:57 +02:00
nvmem nvmem: Fix shift-out-of-bound (UBSAN) with byte size cells 2021-10-27 09:33:58 +02:00
of
oprofile
parisc parisc: Move pci_dev_is_behind_card_dino to where it is used 2021-09-26 13:36:18 +02:00
parport parport: remove non-zero check on count 2021-09-22 11:43:07 +02:00
pci PCI/MSI: Destroy sysfs before freeing entries 2021-11-26 11:48:40 +01:00
pcmcia pcmcia: i82092: fix a null pointer dereference bug 2021-08-15 13:01:03 +02:00
perf
phy
pinctrl pinctrl: single: Fix error return code in pcs_parse_bits_in_pinctrl_entry() 2021-09-22 11:43:04 +02:00
platform platform/x86: hp_accel: Fix an error handling path in 'lis3lv02d_probe()' 2021-11-26 11:48:42 +01:00
pnp
power power: supply: bq27xxx: Fix kernel crash on IRQ handler register error 2021-11-26 11:48:37 +01:00
powercap
pps
ps3
ptp ptp_pch: Load module automatically if ID matches 2021-10-17 10:05:39 +02:00
pwm pwm: lpc32xx: Don't modify HW state in .probe() after the PWM chip was registered 2021-09-26 13:36:18 +02:00
rapidio
ras
regulator regulator: s5m8767: do not use reset value as DVS voltage if GPIO DVS is disabled 2021-11-26 11:48:22 +01:00
remoteproc
reset reset: ti-syscon: fix to_ti_syscon_reset_data macro 2021-07-28 09:14:24 +02:00
rpmsg
rtc rtc: tps65910: Correct driver module alias 2021-09-22 11:43:02 +02:00
s390
sbus
scsi scsi: mpt3sas: Fix kernel panic during drive powercycle test 2021-12-08 08:45:03 +01:00
sfi
sh maple: fix wrong return value of maple_bus_init(). 2021-11-26 11:48:41 +01:00
sn
soc soc/tegra: pmc: Fix imbalanced clock disabling in error code path 2021-11-26 11:48:44 +01:00
spi spi: bcm-qspi: Fix missing clk_disable_unprepare() on error in bcm_qspi_probe() 2021-11-26 11:48:32 +01:00
spmi
ssb
staging staging: rtl8192e: Fix use after free in _rtl92e_pci_disconnect() 2021-12-08 08:45:02 +01:00
target scsi: target: Fix alua_tg_pt_gps_count tracking 2021-11-26 11:48:41 +01:00
tc
thermal thermal/drivers/exynos: Fix an error code in exynos_tmu_probe() 2021-09-26 13:36:18 +02:00
thunderbolt
tty tty: hvc: replace BUG_ON() with negative return value 2021-12-08 08:45:05 +01:00
uio
usb usb: hub: Fix locking issues with address0_mutex 2021-12-08 08:45:02 +01:00
uwb
vfio vfio: Use config not menuconfig for VFIO_NOIOMMU 2021-09-22 11:43:04 +02:00
vhost vhost/vsock: fix incorrect used length reported to the guest 2021-12-08 08:45:04 +01:00
video parisc/sticon: fix reverse colors 2021-11-26 11:48:42 +01:00
virt
virtio virtio: Improve vq->broken access to avoid any compiler optimization 2021-09-03 09:44:40 +02:00
vlynq
vme
w1
watchdog watchdog: f71808e_wdt: fix inaccurate report in WDIOC_GETTIMEOUT 2021-11-26 11:48:38 +01:00
xen xen: detect uninitialized xenbus in xenbus_init 2021-12-08 08:45:02 +01:00
zorro
Kconfig
Makefile