android_kernel_sony_sdm845/drivers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jason Wang 02b40edda9 vhost: scsi: add weight support
commit c1ea02f15ab5efb3e93fc3144d895410bf79fcf2 upstream.

This patch will check the weight and exit the loop if we exceeds the
weight. This is useful for preventing scsi kthread from hogging cpu
which is guest triggerable.

This addresses CVE-2019-3900.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Fixes: 057cbf49a1 ("tcm_vhost: Initial merge for vhost level target fabric driver")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[bwh: Backported to 4.9:
 - Drop changes in vhost_scsi_ctl_handle_vq()
 - Adjust context]
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-25 10:51:42 +02:00
..
accessibility
acpi ACPI/IORT: Fix off-by-one check in iort_dev_find_its_id() 2019-08-25 10:51:31 +02:00
amba ARM: amba: Don't read past the end of sysfs "driver_override" buffer 2018-05-01 15:13:08 -07:00
android coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping 2019-08-06 18:29:41 +02:00
ata libata: don't request sense data on !ZAC ATA devices 2019-08-04 09:33:22 +02:00
atm atm: iphase: Fix Spectre v1 vulnerability 2019-08-11 12:22:16 +02:00
auxdisplay
base regmap: fix bulk writes on paged registers 2019-08-04 09:33:19 +02:00
bcma
block drbd: dynamically allocate shash descriptor 2019-08-25 10:51:30 +02:00
bluetooth Bluetooth: hci_uart: check for missing tty operations 2019-08-04 09:33:44 +02:00
bus bus: arm-cci: remove unnecessary unreachable() 2018-12-05 19:42:41 +01:00
cdrom cdrom: Fix race condition in cdrom_sysctl_register 2019-04-05 22:29:12 +02:00
char hpet: Fix division by zero in hpet_time_div() 2019-08-04 09:33:43 +02:00
clk clk: sunxi: fix uninitialized access 2019-07-10 09:55:44 +02:00
clocksource clocksource/drivers/exynos_mct: Increase priority over ARM arch timer 2019-08-04 09:33:22 +02:00
connector
cpufreq cpufreq/pasemi: fix use-after-free in pas_cpufreq_cpu_init() 2019-08-25 10:51:24 +02:00
cpuidle cpuidle: big.LITTLE: fix refcount leak 2019-02-12 19:44:55 +01:00
crypto crypto: caam - limit output IV to CBC to work around CTR mode DMA issue 2019-08-04 09:33:30 +02:00
dax
dca
devfreq
dio
dma dmaengine: rcar-dmac: Reject zero-length slave DMA requests 2019-08-06 18:29:35 +02:00
dma-buf dma-buf: remove redundant initialization of sg_table 2018-06-06 16:44:33 +02:00
edac EDAC: Fix global-out-of-bounds write when setting edac_mc_poll_msec 2019-08-04 09:33:23 +02:00
eisa
extcon extcon: arizona: Disable mic detect if running when driver is removed 2019-05-31 06:48:26 -07:00
firewire firewire-ohci: work around oversized DMA reads on JMicron controllers 2018-05-30 07:50:18 +02:00
firmware iscsi_ibft: make ISCSI_IBFT dependson ACPI instead of ISCSI_IBFT_FIND 2019-08-25 10:51:23 +02:00
fmc
fpga
gpio gpiolib: fix incorrect IRQ requesting of an active-low lineevent 2019-08-06 18:29:40 +02:00
gpu drm/rockchip: Properly adjust to a true clock in adjusted_mode 2019-08-04 09:33:38 +02:00
hid HID: Add quirk for HP X1200 PIXART OEM mouse 2019-08-11 12:22:14 +02:00
hsi
hv Drivers: hv: vmbus: Return -EINVAL for the sys files for unopened channels 2018-12-29 13:40:15 +01:00
hwmon hwmon: (nct7802) Fix wrong detection of in4 presence 2019-08-25 10:51:37 +02:00
hwspinlock
hwtracing intel_th: msu: Fix single mode with disabled IOMMU 2019-08-04 09:33:31 +02:00
i2c i2c: qup: fixed releasing dma without flush operation completion 2019-08-04 09:33:44 +02:00
ide ide: pmac: add of_node_put() 2018-12-21 14:11:37 +01:00
idle x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:19:34 +02:00
iio iio: common: ssp_sensors: Initialize calculated_time in ssp_common_process_data 2019-05-31 06:48:27 -07:00
infiniband IB: directly cast the sockaddr union to aockaddr 2019-08-11 12:22:15 +02:00
input Input: gtco - bounds check collection indent level 2019-08-04 09:33:26 +02:00
iommu iommu/vt-d: Set intel_iommu_gfx_mapped correctly 2019-06-22 08:17:14 +02:00
ipack
irqchip Revert "MIPS: perf: ath79: Fix perfcount IRQ assignment" 2019-06-11 12:22:48 +02:00
isdn ISDN: hfcsusb: checking idx of ep configuration 2019-08-04 09:33:44 +02:00
leds leds: pca9532: fix a potential NULL pointer dereference 2019-05-04 08:49:10 +02:00
lguest
lightnvm
macintosh macintosh/rack-meter: Convert cputime64_t use to u64 2018-10-20 09:51:32 +02:00
mailbox mailbox: handle failed named mailbox channel request 2019-08-04 09:33:41 +02:00
mcb
md dm bufio: fix deadlock with loop device 2019-08-04 09:33:32 +02:00
media media: radio-raremono: change devm_k*alloc to k*alloc 2019-08-04 09:33:44 +02:00
memory memory: tegra: Fix integer overflow on tick value calculation 2019-05-25 18:26:49 +02:00
memstick memstick: Fix error cleanup path of memstick_init 2019-08-04 09:33:37 +02:00
message scsi: mptfusion: Add bounds check in mptctl_hp_targetinfo() 2018-05-25 16:13:06 +02:00
mfd mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk 2019-08-04 09:33:39 +02:00
misc eeprom: at24: make spd world-readable again 2019-08-06 18:29:42 +02:00
mmc mmc: dw_mmc: Fix occasional hang after tuning on eMMC 2019-08-06 18:29:40 +02:00
mtd mtd: rawnand: gpmi: fix MX28 bus master lockup problem 2019-02-15 08:07:37 +01:00
net iwlwifi: don't unmap as page memory that was mapped as single 2019-08-25 10:51:39 +02:00
nfc spi: ST ST95HF NFC: declare missing of table 2019-05-16 19:43:43 +02:00
ntb ntb_transport: Fix bug with max_mw_size parameter 2018-05-30 07:50:22 +02:00
nubus
nvdimm libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields 2019-08-04 09:33:29 +02:00
nvme nvme: Fix u32 overflow in the number of namespace list calculation 2019-07-10 09:55:32 +02:00
nvmem nvmem: core: fix read buffer in place 2019-06-22 08:17:15 +02:00
of of: add helper to lookup compatible child node 2018-12-01 09:44:21 +01:00
oprofile
parisc parisc: Use implicit space register selection for loading the coherence index of I/O pdirs 2019-06-11 12:22:47 +02:00
parport parport: Fix mem leak in parport_register_dev_model 2019-07-10 09:55:29 +02:00
pci PCI: xilinx-nwl: Fix Multi MSI data programming 2019-08-04 09:33:38 +02:00
pcmcia pcmcia: Implement CLKRUN protocol disabling for Ricoh bridges 2018-11-13 11:16:46 -08:00
perf drivers/perf: arm_pmu: Fix failure path in PM notifier 2019-08-06 18:29:41 +02:00
phy phy: renesas: rcar-gen2: Fix memory leak at error paths 2019-08-04 09:33:37 +02:00
pinctrl pinctrl: rockchip: fix leaked of_node references 2019-08-04 09:33:36 +02:00
platform platform/x86: intel_pmc_ipc: adding error handling 2019-06-22 08:17:16 +02:00
pnp
power power: supply: sysfs: prevent endless uevent loop with CONFIG_POWER_SUPPLY_DEBUG 2019-05-25 18:26:56 +02:00
powercap x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:19:34 +02:00
pps drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl 2019-08-04 09:33:45 +02:00
ps3
ptp ptp: check gettime64 return code in PTP_SYS_OFFSET ioctl 2019-02-12 19:44:52 +01:00
pwm pwm: Fix deadlock warning when removing PWM device 2019-06-22 08:17:17 +02:00
rapidio drivers/rapidio/devices/rio_mport_cdev.c: NUL terminate some strings 2019-08-06 18:29:38 +02:00
ras
regulator regulator: s2mps11: Fix buck7 and buck8 wrong voltages 2019-08-04 09:33:26 +02:00
remoteproc
reset reset: make device_reset_optional() really optional 2018-12-08 13:05:08 +01:00
rpmsg rpmsg: smd: fix memory leak on channel create 2018-11-13 11:17:03 -08:00
rtc rtc: pcf8523: don't return invalid date when battery is low 2019-06-22 08:17:21 +02:00
s390 s390/qdio: add sanity checks to the fast-requeue path 2019-08-25 10:51:25 +02:00
sbus drivers/sbus/char: add of_node_put() 2018-12-21 14:11:36 +01:00
scsi scsi: mpt3sas: Use 63-bit DMA addressing on SAS35 HBA 2019-08-25 10:51:39 +02:00
sfi
sh
sn
soc soc: mediatek: pwrap: Zero initialize rdata in pwrap_init_cipher 2019-06-22 08:17:15 +02:00
spi spi: bcm2835: Fix 3-wire mode if DMA is enabled 2019-08-11 12:22:18 +02:00
spmi
ssb ssb: Fix possible NULL pointer dereference in ssb_host_pcmcia_exit 2019-05-31 06:48:12 -07:00
staging media: staging: media: davinci_vpfe: - Fix for memory leak if decoder initialization fails. 2019-08-04 09:33:17 +02:00
target scsi: target/iscsi: Avoid iscsit_release_commands_from_conn() deadlock 2019-03-23 13:19:47 +01:00
tc TC: Set DMA masks for devices 2018-11-13 11:17:02 -08:00
thermal drivers: thermal: tsens: Don't print error message on -EPROBE_DEFER 2019-06-22 08:17:13 +02:00
thunderbolt
tty tty/ldsem, locking/rwsem: Add missing ACQUIRE to read_failed sleep loop 2019-08-25 10:51:35 +02:00
uio uio: Fix an Oops on load 2018-11-27 16:09:41 +01:00
usb usb: yurex: Fix use-after-free in yurex_delete 2019-08-25 10:51:21 +02:00
uwb uwb: hwa-rc: fix memory leak at probe 2018-10-03 17:01:42 -07:00
vfio vfio/pci: use correct format characters 2019-05-08 07:19:10 +02:00
vhost vhost: scsi: add weight support 2019-08-25 10:51:42 +02:00
video video: imsttfb: fix potential NULL pointer dereferences 2019-06-22 08:17:17 +02:00
virt drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl 2019-05-16 19:43:47 +02:00
virtio virtio: Honour 'may_reduce_num' in vring_create_virtqueue 2019-04-17 08:36:47 +02:00
vlynq
vme
w1 w1: fix the resume command API 2019-05-31 06:48:15 -07:00
watchdog watchdog: fix compile time error of pretimeout governors 2019-06-22 08:17:14 +02:00
xen xen/swiotlb: fix condition for calling xen_destroy_contiguous_region() 2019-08-06 18:29:41 +02:00
zorro zorro: Set up z->dev.dma_mask for the DMA API 2018-05-30 07:50:44 +02:00
Kconfig
Makefile