linux-stable/drivers
Christophe JAILLET 7d46f70b3f xhci: Do not use GFP_KERNEL in (potentially) atomic context
commit dda32c00c9 upstream.

'xhci_urb_enqueue()' is passed a 'mem_flags' argument, because "URBs may be
submitted in interrupt context" (see comment related to 'usb_submit_urb()'
in 'drivers/usb/core/urb.c')

So this flag should be used in all the calling chain.
Up to now, 'xhci_check_maxpacket()' which is only called from
'xhci_urb_enqueue()', uses GFP_KERNEL.

Be safe and pass the mem_flags to this function as well.

Fixes: ddba5cd0ae ("xhci: Use command structures when queuing commands on the command ring")
Cc: <stable@vger.kernel.org>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20210512080816.866037-4-mathias.nyman@linux.intel.com
[iwamatsu: Adjust context]
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-22 10:57:43 +02:00
..
accessibility
acpi ACPI: scan: Fix a memory leak in an error handling path 2021-05-22 10:57:40 +02:00
amba amba: Fix resource leak for drivers without .remove 2021-03-03 18:22:46 +01:00
android binder: fix UAF when releasing todo list 2020-10-29 09:06:59 +01:00
ata ata: libahci_platform: fix IRQ check 2021-05-22 10:57:31 +02:00
atm atm: idt77252: fix null-ptr-dereference 2021-03-30 14:40:09 +02:00
auxdisplay auxdisplay: ht16k33: Fix refresh rate handling 2021-03-03 18:22:46 +01:00
base Revert "PM: runtime: Update device status before letting suppliers suspend" 2021-03-24 11:04:55 +01:00
bcma
block xen-blkback: don't leak persistent grants from xen_blkbk_map() 2021-03-30 14:40:13 +02:00
bluetooth Bluetooth: btqcomsmd: Fix a resource leak in error handling paths in the probe function 2021-03-03 18:22:37 +01:00
bus bus: qcom: Put child node before return 2021-05-22 10:57:28 +02:00
cdrom
char tpm: fix error return code in tpm2_get_cc_attrs_tbl() 2021-05-22 10:57:35 +02:00
clk clk: exynos7: Mark aclk_fsys1_200 as critical 2021-05-22 10:57:41 +02:00
clocksource clocksource/drivers/mxs_timer: Add missing semicolon when DEBUG is defined 2021-03-03 18:22:45 +01:00
connector
cpufreq cpufreq: brcmstb-avs-cpufreq: Fix resource leaks in ->remove() 2021-03-03 18:22:38 +01:00
cpuidle cpuidle: Fixup IRQ state 2020-09-09 19:03:06 +02:00
crypto crypto: qat - Fix a double free in adf_create_ring 2021-05-22 10:57:29 +02:00
dax
dca
devfreq PM / devfreq: tegra30: Fix integer overflow on CPU's freq max out 2020-10-01 13:12:28 +02:00
dio
dma dmaengine: dw: Make it dependent to HAS_IOMEM 2021-04-28 12:08:39 +02:00
dma-buf
edac EDAC/amd64: Fix PCI component registration 2020-12-29 13:47:06 +01:00
eisa
extcon extcon: arizona: Fix some issues when HPDET IRQ fires after the jack has been unplugged 2021-05-22 10:57:18 +02:00
firewire firewire: nosy: Fix a use-after-free bug in nosy_ioctl() 2021-04-07 12:47:03 +02:00
firmware firmware: qcom-scm: Fix QCOM_SCM configuration 2021-05-22 10:57:30 +02:00
fmc
fpga
fsi
gpio gpiolib: acpi: Add quirk to ignore EC wakeups on Dell Venue 10 Pro 5055 2021-05-22 10:57:42 +02:00
gpu drm/radeon/dpm: Disable sclk switching on Oland when two 4K 60Hz monitors are connected 2021-05-22 10:57:40 +02:00
hid HID: plantronics: Workaround for double volume key presses 2021-05-22 10:57:31 +02:00
hsi HSI: core: fix resource leaks in hsi_add_client_from_dt() 2021-05-22 10:57:31 +02:00
hv Drivers: hv: vmbus: Increase wait time for VMbus unload 2021-05-22 10:57:30 +02:00
hwmon hwmon: (lm90) Fix max6658 sporadic wrong temperature reading 2021-03-17 16:34:35 +01:00
hwspinlock
hwtracing intel_th: pci: Add Alder Lake-M support 2021-05-22 10:57:21 +02:00
i2c i2c: sh7760: fix IRQ error path 2021-05-22 10:57:34 +02:00
ide scsi: ide: Do not set the RQF_PREEMPT flag for sense requests 2021-01-12 20:09:05 +01:00
idle
iio iio: tsl2583: Fix division by a zero lux_val 2021-05-22 10:57:40 +02:00
infiniband RDMA/i40iw: Avoid panic when reading back the IRQ affinity hint 2021-05-22 10:57:41 +02:00
input Input: silead - add workaround for x86 BIOS-es which bring the chip up in a stuck state 2021-05-22 10:57:42 +02:00
iommu iommu/amd: Fix sleeping in atomic in increase_address_space() 2021-03-11 13:51:05 +01:00
ipack
irqchip irqchip/mips-cpu: Set IPI domain parent chip 2021-01-30 13:31:13 +01:00
isdn isdn: capi: fix mismatched prototypes 2021-05-22 10:57:42 +02:00
leds leds: trigger: fix potential deadlock with libata 2021-02-03 23:22:21 +01:00
lightnvm
macintosh
mailbox mailbox: avoid timer start from callback 2020-10-29 09:07:11 +01:00
mcb
md md: md_open returns -EBUSY when entering racing area 2021-05-22 10:57:25 +02:00
media media: m88rs6000t: avoid potential out-of-bounds reads on arrays 2021-05-22 10:57:30 +02:00
memory memory: gpmc: fix out of bounds read and dereference on gpmc_cs[] 2021-05-22 10:57:26 +02:00
memstick memstick: r592: Fix error return in r592_probe() 2020-12-29 13:46:58 +01:00
message scsi: mptfusion: Fix null pointer dereferences in mptscsih_remove() 2020-11-05 11:06:59 +01:00
mfd mfd: stm32-timers: Avoid clearing auto reload register 2021-05-22 10:57:31 +02:00
misc kgdb: fix gcc-11 warning on indentation 2021-05-22 10:57:42 +02:00
mmc mmc: core: Set read only for SD cards with permanent write protect bit 2021-05-22 10:57:15 +02:00
mtd mtd: rawnand: gpmi: Fix a double free in gpmi_nand_init 2021-05-22 10:57:28 +02:00
mux
net cxgb4: Fix the -Wmisleading-indentation warning 2021-05-22 10:57:42 +02:00
nfc nfc: pn533: prevent potential memory corruption 2021-05-22 10:57:32 +02:00
ntb NTB: hw: amd: fix an issue about leak system resources 2020-10-29 09:07:14 +01:00
nubus
nvdimm libnvdimm/dimm: Avoid race between probe and available_slots_show() 2021-03-03 18:22:54 +01:00
nvme nvme-rdma: fix possible hang when failing to set io queues 2021-03-24 11:05:01 +01:00
nvmem
of Revert "fdt: Properly handle "no-map" field in the memory region" 2021-05-22 10:57:35 +02:00
oprofile
parisc parisc: mask out enable and reserved bits from sba imask 2020-08-21 09:48:16 +02:00
parport
pci ACPI / hotplug / PCI: Fix reference count leak in enable_slot() 2021-05-22 10:57:42 +02:00
pcmcia
perf perf/arm_pmu_platform: Fix error handling 2021-05-22 10:57:17 +02:00
phy phy: marvell: ARMADA375_USBCLUSTER_PHY should not default to y, unconditionally 2021-05-22 10:57:28 +02:00
pinctrl pinctrl: samsung: use 'int' for register masks in Exynos 2021-05-22 10:57:36 +02:00
platform platform/x86: pmc_atom: Match all Beckhoff Automation baytrail boards with critclk_systems DMI table 2021-05-22 10:57:30 +02:00
pnp
power power: supply: s3c_adc_battery: fix possible use-after-free in s3c_adc_bat_remove() 2021-05-22 10:57:19 +02:00
powercap powercap: restrict energy meter to root access 2020-11-10 21:10:28 +01:00
pps
ps3 powerpc/ps3: use dma_mapping_error() 2020-12-29 13:47:02 +01:00
ptp
pwm pwm: rockchip: rockchip_pwm_probe(): Remove superfluous clk_unprepare() 2021-03-03 18:22:48 +01:00
rapidio rapidio: fix the missed put_device() for rio_mport_add_riodev 2020-10-29 09:07:11 +01:00
ras
regulator regulator: bd9571mwv: Fix AVS and DVFS voltage range 2021-04-16 11:57:49 +02:00
remoteproc remoteproc: qcom_q6v5_mss: Validate MBA firmware size before load 2021-02-23 14:00:29 +01:00
reset
rpmsg rpmsg: qcom_glink_native: fix error return code of qcom_glink_rx_data() 2021-05-22 10:57:38 +02:00
rtc rtc: ds1307: Fix wday settings for rx8130 2021-05-22 10:57:38 +02:00
s390 s390/dasd: fix hanging IO request during DASD driver unbind 2021-03-17 16:34:31 +01:00
sbus
scsi scsi: sni_53c710: Add IRQ check 2021-05-22 10:57:31 +02:00
sfi
sh
sn
soc soc: qcom: mdt_loader: Detect truncated read of segments 2021-05-22 10:57:29 +02:00
spi spi: Fix use-after-free with devm_spi_alloc_* 2021-05-22 10:57:29 +02:00
spmi
ssb
staging media: omap4iss: return error code when omap4iss_get() failed 2021-05-22 10:57:30 +02:00
target scsi: target: pscsi: Fix warning in pscsi_complete_cmd() 2021-05-22 10:57:18 +02:00
tc
tee tee: optee: do not check memref size on return from Secure World 2021-05-22 10:57:16 +02:00
thermal thermal/core/fair share: Lock the thermal zone while looping over instances 2021-05-22 10:57:41 +02:00
thunderbolt thunderbolt: Add the missed ida_simple_remove() in ring_request_msix() 2020-11-18 18:27:58 +01:00
tty serial: 8250: fix potential deadlock in rs485-mode 2021-05-22 10:57:43 +02:00
uio uio: Fix use-after-free in uio_unregister_device() 2020-11-18 18:27:58 +01:00
usb xhci: Do not use GFP_KERNEL in (potentially) atomic context 2021-05-22 10:57:43 +02:00
uwb
vfio vfio/mdev: Do not allow a mdev_type to have a NULL parent pointer 2021-05-22 10:57:31 +02:00
vhost vhost: Fix vhost_vq_reset() 2021-04-07 12:47:01 +02:00
video fbdev: zero-fill colormap in fbcmap.c 2021-05-22 10:57:15 +02:00
virt drivers/virt/fsl_hypervisor: Fix error handling path 2020-10-29 09:07:05 +01:00
virtio virtio_ring: Avoid loop when vq is broken in virtqueue_poll 2020-08-26 10:29:57 +02:00
vlynq
vme
w1 w1: mxc_w1: Fix timeout resolution problem leading to bus error 2020-11-05 11:06:59 +01:00
watchdog watchdog: mei_wdt: request stop on unregister 2021-03-03 18:22:54 +01:00
xen xen/events: fix setting irq affinity 2021-04-16 11:57:53 +02:00
zorro
Kconfig
Makefile