platform_kernel-5.15/drivers
Peter Wang 7ec90fc9de FROMGIT: scsi: ufs: core: scsi_get_lba() error fix
When ufs initializes without scmd->device->sector_size set, scsi_get_lba()
will get a wrong shift number and trigger an ubsan error.  The shift
exponent 4294967286 is too large for the 64-bit type 'sector_t' (aka
'unsigned long long').

Call scsi_get_lba() only when opcode is READ_10/WRITE_10/UNMAP.

Link: https://lore.kernel.org/r/20220307111752.10465-1-peter.wang@mediatek.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 2bd3b6b75946db2ace06e145d53988e10ed7e99a git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next)
Bug: 228405696
Change-Id: I5bdf04628eff2a0c2a36c89f9934033fb3d8a392
Signed-off-by: Bart Van Assche <bvanassche@google.com>
Signed-off-by: Yee Lee <yee.lee@mediatek.com>
2022-04-28 21:44:00 +00:00
..
accessibility speakup-dectlk: Restore pitch setting 2022-02-16 12:56:37 +01:00
acpi ACPI: processor: idle: fix lockup regression on 32-bit ThinkPad T40 2022-04-20 09:34:04 +02:00
amba
android ANDROID: GKI: add vendor hook for mmc 2022-04-22 18:12:36 +08:00
ata ata: libata-core: Disable READ LOG DMA EXT for Samsung 840 EVOs 2022-04-20 09:34:16 +02:00
atm atm: eni: Add check for dma_map_single 2022-03-23 09:16:41 +01:00
auxdisplay auxdisplay: lcd2s: Use proper API to free the instance of charlcd object 2022-03-08 19:12:47 +01:00
base Merge 5.15.35 into android13-5.15 2022-04-24 16:58:59 +02:00
bcma
block Merge 5.15.35 into android13-5.15 2022-04-24 16:58:59 +02:00
bluetooth Bluetooth: btmtksdio: Fix kernel oops in btmtksdio_interrupt 2022-04-08 14:23:41 +02:00
bus mips: cdmm: Fix refcount leak in mips_cdmm_phys_base 2022-04-08 14:23:39 +02:00
cdrom
char Merge 5.15.34 into android13-5.15 2022-04-24 16:57:32 +02:00
clk Merge 5.15.34 into android13-5.15 2022-04-24 16:57:32 +02:00
clocksource Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
comedi
connector
counter
cpufreq Merge 5.15.35 into android13-5.15 2022-04-24 16:58:59 +02:00
cpuidle ANDROID: cpuidle: export cpuidle_driver_state_disabled 2022-03-15 01:37:19 +00:00
crypto crypto: hisilicon/sec - not need to enable sm4 extra mode at HW V3 2022-04-08 14:23:55 +02:00
cxl cxl/regs: Fix size of CXL Capability Header Register 2022-04-08 14:23:30 +02:00
dax dax: make sure inodes are flushed before destroy cache 2022-04-08 14:23:31 +02:00
dca
devfreq
dio
dma dmaengine: Revert "dmaengine: shdma: Fix runtime PM imbalance on error" 2022-04-13 20:59:26 +02:00
dma-buf BACKPORT: FROMLIST: dma-heap: Let dma heap use dma_map_attrs to map & unmap iova 2022-04-20 16:15:24 +00:00
edac EDAC: Fix calculation of returned address and next offset in edac_align_ptr() 2022-02-23 12:03:20 +01:00
eisa
extcon ANDROID: align constness of extcon_get_state parameter 2022-02-23 16:49:00 +00:00
firewire
firmware Merge 5.15.35 into android13-5.15 2022-04-24 16:58:59 +02:00
fpga
fsi fsi: Aspeed: Fix a potential double free 2022-04-08 14:23:44 +02:00
gnss
gpio Merge 5.15.35 into android13-5.15 2022-04-24 16:58:59 +02:00
gpu Merge 5.15.35 into android13-5.15 2022-04-24 16:58:59 +02:00
greybus greybus: svc: fix an error handling bug in gb_svc_hello() 2022-04-08 14:22:50 +02:00
hid Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
hsi HSI: core: Fix return freed object in hsi_new_client 2022-01-27 11:04:31 +01:00
hv Drivers: hv: balloon: Disable balloon and hot-add accordingly 2022-04-20 09:34:16 +02:00
hwmon hwmon: (pmbus) Add Vin unit off handling 2022-04-08 14:23:09 +02:00
hwspinlock
hwtracing Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
i2c i2c: pasemi: Wait for write xfers to finish 2022-04-20 09:34:21 +02:00
i3c i3c: master: dw: check return of dw_i3c_master_get_free_pos() 2022-03-08 19:12:37 +01:00
idle
iio iio: adc: Add check for devm_request_threaded_irq 2022-04-08 14:23:46 +02:00
infiniband RDMA/hfi1: Fix use-after-free bug for mm struct 2022-04-13 20:59:23 +02:00
input Revert "Input: clear BTN_RIGHT/MIDDLE on buttonpads" 2022-04-08 14:22:55 +02:00
interconnect interconnect: qcom: rpm: Prevent integer overflow in rate 2022-01-27 11:05:00 +01:00
iommu Merge 5.15.34 into android13-5.15 2022-04-24 16:57:32 +02:00
ipack
irqchip ANDROID: gic-v3: Update vendor hook to set affinity in GIC v3 2022-04-27 23:00:16 +00:00
isdn isdn: hfcpci: check the return value of dma_set_mask() in setup_hw() 2022-03-16 14:23:36 +01:00
leds leds: lp55xx: initialise output direction from dts 2022-01-27 11:04:21 +01:00
macintosh
mailbox mailbox: imx: fix wakeup failure from freeze mode 2022-04-08 14:24:10 +02:00
mcb
md Merge 5.15.35 into android13-5.15 2022-04-24 16:58:59 +02:00
media Merge 5.15.35 into android13-5.15 2022-04-24 16:58:59 +02:00
memory memory: renesas-rpc-if: fix platform-device leak in error path 2022-04-20 09:34:18 +02:00
memstick
message
mfd Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
misc Merge 5.15.34 into android13-5.15 2022-04-24 16:57:32 +02:00
mmc Merge 5.15.34 into android13-5.15 2022-04-24 16:57:32 +02:00
most
mtd Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
mux
net Merge 5.15.35 into android13-5.15 2022-04-24 16:58:59 +02:00
nfc nfc: st21nfca: Fix potential buffer overflows in EVT_TRANSACTION 2022-03-28 09:58:42 +02:00
ntb ntb: intel: fix port config status offset for SPR 2022-03-08 19:12:44 +01:00
nubus
nvdimm nvdimm/region: Fix default alignment for small regions 2022-04-08 14:23:48 +02:00
nvme Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
nvmem Revert "Revert "nvmem: core: Fix a conflict between MTD and NVMEM on wp-gpios property"" 2022-03-23 11:32:22 -07:00
of Merge 5.15.27 into android-5.15 2022-03-17 14:02:09 +01:00
opp Revert "opp: Expose of-node's name in debugfs" 2022-04-24 16:57:55 +02:00
parisc parisc: Fix CPU affinity for Lasi, WAX and Dino chips 2022-04-13 20:59:14 +02:00
parport
pci Merge 5.15.35 into android13-5.15 2022-04-24 16:58:59 +02:00
pcmcia pcmcia: fix setting of kthread task states 2022-01-27 11:04:02 +01:00
perf perf/imx_ddr: Fix undefined behavior due to shift overflowing the constant 2022-04-20 09:34:18 +02:00
phy phy: amlogic: meson8b-usb2: fix shared reset control use 2022-04-13 20:59:11 +02:00
pinctrl pinctrl: nuvoton: npcm7xx: Use %zu printk format for ARRAY_SIZE() 2022-04-08 14:24:11 +02:00
platform platform/chrome: cros_ec_typec: Check for EC device 2022-04-08 14:24:12 +02:00
pnp
power Merge 5.15.34 into android13-5.15 2022-04-24 16:57:32 +02:00
powercap
pps pps: clients: gpio: Propagate return value from pps_gpio_probe 2022-04-08 14:23:44 +02:00
ps3
ptp ptp: replace snprintf with sysfs_emit 2022-04-13 20:59:01 +02:00
pwm pwm: lpc18xx-sct: Initialize driver data and hardware before pwmchip_add() 2022-04-08 14:23:44 +02:00
rapidio
ras
regulator regulator: wm8994: Add an off-on delay for WM8994 variant 2022-04-20 09:34:16 +02:00
remoteproc Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
reset
rpmsg UPSTREAM: rpmsg: ctrl: Introduce new RPMSG_CREATE/RELEASE_DEV_IOCTL controls 2022-04-12 09:46:18 +08:00
rtc rtc: mc146818-lib: fix signedness bug in mc146818_get_time() 2022-04-13 20:59:26 +02:00
s390 block: drop unused includes in <linux/genhd.h> 2022-03-16 14:23:46 +01:00
sbus
scsi FROMGIT: scsi: ufs: core: scsi_get_lba() error fix 2022-04-28 21:44:00 +00:00
sh
siox
slimbus
soc soc: qcom: aoss: Fix missing put_device call in qmp_get 2022-04-20 09:34:21 +02:00
soundwire ASoC: Intel: sof_sdw: fix quirks for 2022 HP Spectre x360 13" 2022-04-08 14:24:02 +02:00
spi spi: cadence-quadspi: fix protocol setup for non-1-1-X operations 2022-04-20 09:34:16 +02:00
spmi
ssb
staging Merge 5.15.34 into android13-5.15 2022-04-24 16:57:32 +02:00
target Merge 5.15.35 into android13-5.15 2022-04-24 16:58:59 +02:00
tc
tee optee: use driver internal tee_context for some rpc 2022-03-02 11:47:51 +01:00
thermal Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
thunderbolt thunderbolt: Runtime PM activate both ends of the device link 2022-01-27 11:04:36 +01:00
tty Merge 5.15.34 into android13-5.15 2022-04-24 16:57:32 +02:00
uio
usb ANDROID: usb: export tracepoint for usb gadget connect/disconnect 2022-04-28 03:08:04 +00:00
vdpa vdpa: mlx5: prevent cvq work from hogging CPU 2022-04-13 20:59:15 +02:00
vfio vfio/pci: Fix vf_token mechanism when device-specific VF drivers are used 2022-04-20 09:34:13 +02:00
vhost Merge 5.15.34 into android13-5.15 2022-04-24 16:57:32 +02:00
video Revert "fbdev: Hot-unplug firmware fb devices on forced removal" 2022-04-20 08:19:54 +02:00
virt virt: acrn: fix a memory leak in acrn_dev_ioctl() 2022-04-08 14:23:50 +02:00
virtio UPSTREAM: virtio: pci: check bar values read from virtio config space 2022-04-01 15:02:16 +00:00
visorbus
vlynq
vme
w1 w1: w1_therm: fixes w1_seq for ds28ea00 sensors 2022-04-13 20:59:11 +02:00
watchdog watchdog: rti-wdt: Add missing pm_runtime_disable() in probe function 2022-04-08 14:24:11 +02:00
xen swiotlb: Support aligned swiotlb buffers 2022-04-08 14:24:17 +02:00
zorro
Kconfig
Makefile
OWNERS