kernel_samsung_a53x/drivers
Alex Lyakas 35350b47ce md: Whenassemble the array, consult the superblock of the freshest device
[ Upstream commit dc1cc22ed58f11d58d8553c5ec5f11cbfc3e3039 ]

Upon assembling the array, both kernel and mdadm allow the devices to have event
counter difference of 1, and still consider them as up-to-date.
However, a device whose event count is behind by 1, may in fact not be up-to-date,
and array resync with such a device may cause data corruption.
To avoid this, consult the superblock of the freshest device about the status
of a device, whose event counter is behind by 1.

Signed-off-by: Alex Lyakas <alex.lyakas@zadara.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/1702470271-16073-1-git-send-email-alex.lyakas@zadara.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:13:14 +01:00
..
accessibility
acpi ACPI: APEI: set memory failure flags as MF_ACTION_REQUIRED on synchronous events 2024-11-18 12:13:09 +01:00
amba
android binder: fix race between mmput() and do_exit() 2024-11-18 12:12:45 +01:00
ata ata: pata_isapnp: Add missing error check for devm_ioport_map() 2024-11-18 12:10:54 +01:00
atm atm: solos-pci: Fix potential deadlock on &tx_queue_lock 2024-11-18 12:11:48 +01:00
auxdisplay
base PM: core: Remove unnecessary (void *) conversions 2024-11-18 12:13:03 +01:00
battery
bcma
block block/rnbd-srv: Check for unlikely string overflow 2024-11-18 12:13:13 +01:00
bluetooth Bluetooth: btmtkuart: fix recv_buf() return value 2024-11-18 12:12:38 +01:00
bts
bus bus: mhi: host: Drop chan lock before queuing buffers 2024-11-18 12:12:56 +01:00
cdrom
char hwrng: core - Fix page fault dead lock on mmap-ed hwrng 2024-11-18 12:12:55 +01:00
clk clk: fixed-rate: add devm_clk_hw_register_fixed_rate 2024-11-18 12:12:43 +01:00
clocksource clocksource/drivers/timer-atmel-tcb: Fix initialization on SAM9 hardware 2024-11-18 11:43:12 +01:00
connector
counter
cpufreq cpufreq: scmi: process the result of devm_of_clk_add_hw_provider() 2024-11-18 12:12:24 +01:00
cpuidle
crypto crypto: stm32/crc32 - fix parsing list of devices 2024-11-18 12:13:10 +01:00
dax
dca
devfreq PM / devfreq: Synchronize devfreq_monitor_[start/stop] 2024-11-18 12:13:09 +01:00
dio
dma dmaengine: fix NULL pointer in channel unregistration function 2024-11-18 12:12:55 +01:00
dma-buf
edac EDAC/thunderx: Fix possible out-of-bounds string access 2024-11-18 12:12:19 +01:00
eisa
extcon
fingerprint
firewire firewire: ohci: suppress unexpected system reboot in AMD Ryzen machines and ASM108x/VT630x PCIe cards 2024-11-18 12:12:08 +01:00
firmware firmware: meson_sm: populate platform devices from sm device tree data 2024-11-18 12:12:28 +01:00
fpga
fsi
gnss
gpio gpio: eic-sprd: Clear interrupt after set the interrupt type 2024-11-18 12:13:07 +01:00
gpu drm/exynos: gsc: minor fix for loop iteration in gsc_runtime_resume 2024-11-18 12:13:07 +01:00
greybus
gud
hid HID: wacom: Correct behavior when processing some confidence == false touches 2024-11-18 12:12:48 +01:00
hsi
hv
hwmon hwmon: (acpi_power_meter) Fix 4.29 MW bug 2024-11-18 12:11:41 +01:00
hwspinlock
hwtracing coresight: etm4x: Fix width of CCITMIN field 2024-11-18 12:12:19 +01:00
i2c i2c: s3c24xx: fix transferring more than one message in polling mode 2024-11-18 12:12:52 +01:00
i3c i3c: master: cdns: Fix reading status register 2024-11-18 11:43:26 +01:00
ide
idle
ifconn
iio iio:adc:ad7091r: Move exports into IIO_AD7091R namespace. 2024-11-18 12:12:55 +01:00
infiniband IB/iser: Prevent invalidating wrong MR 2024-11-18 12:12:43 +01:00
input Input: atkbd - use ab83 as id when skipping the getid command 2024-11-18 12:12:44 +01:00
interconnect interconnect: Treat xlate() returning NULL node as an error 2024-11-18 12:12:00 +01:00
iommu iommu/arm-smmu-qcom: Add missing GMU entry to match table 2024-11-18 12:12:47 +01:00
ipack
irqchip
isdn
kperfmon
kq/mesh
leds leds: aw2013: Select missing dependency REGMAP_I2C 2024-11-18 12:12:48 +01:00
lightnvm
macintosh
mailbox
mcb mcb: fix error handling for different scenarios when parsing 2024-11-18 11:43:25 +01:00
md md: Whenassemble the array, consult the superblock of the freshest device 2024-11-18 12:13:14 +01:00
media media: mtk-jpeg: Fix use after free bug due to error path handling in mtk_jpeg_dec_device_run 2024-11-18 12:13:06 +01:00
memory
memstick
message
mfd mfd: syscon: Fix null pointer dereference in of_syscon_register() 2024-11-18 12:12:48 +01:00
misc misc: mei: client.c: fix problem of return '-EOVERFLOW' in mei_cl_write 2024-11-18 12:11:45 +01:00
mmc mmc: mmc_spi: remove custom DMA mapped buffers 2024-11-18 12:12:58 +01:00
most
mtd mtd: Fix gluebi NULL pointer dereference caused by ftl notifier 2024-11-18 12:12:25 +01:00
muic
mux
net net: dsa: mv88e6xxx: Fix mv88e6352_serdes_get_stats error path 2024-11-18 12:13:14 +01:00
nfc
ntb
nubus
nvdimm nd_btt: Make BTT lanes preemptible 2024-11-18 11:43:03 +01:00
nvme nvmet-tcp: Fix the H2C expected PDU len calculation 2024-11-18 12:12:50 +01:00
nvmem
of of: unittest: Fix of_count_phandle_with_args() expected value message 2024-11-18 12:12:43 +01:00
opp
oprofile
parisc
parport parport: parport_serial: Add Brainboxes device IDs and geometry 2024-11-18 12:12:19 +01:00
pci PCI: Add no PM reset quirk for NVIDIA Spectrum devices 2024-11-18 12:13:12 +01:00
pcmcia pcmcia: ds: fix possible name leak in error path in pcmcia_device_add() 2024-11-18 11:43:06 +01:00
perf
phy
pinctrl pinctrl: lochnagar: Don't build on MIPS 2024-11-18 12:12:11 +01:00
platform platform/x86: intel_telemetry: Fix kernel doc descriptions 2024-11-18 12:11:56 +01:00
pnp PNP: ACPI: fix fortify warning 2024-11-18 12:13:09 +01:00
power power: supply: cw2015: correct time_to_empty units in sysfs 2024-11-18 12:12:49 +01:00
powercap
pps
ps3
ptp ptp: annotate data-race around q->head and q->tail 2024-11-18 11:43:19 +01:00
pwm pwm: jz4740: Don't use dev_err_probe() in .request() 2024-11-18 12:12:47 +01:00
rapidio
ras
regulator regulator: core: Only increment use_count when enable_count changes 2024-11-18 12:13:08 +01:00
remoteproc
reset reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning 2024-11-18 12:12:16 +01:00
rpmsg rpmsg: virtio: Free driver_override when rpmsg_remove() 2024-11-18 12:12:56 +01:00
rtc rtc: Adjust failure return code for cmos_set_alarm() 2024-11-18 12:12:58 +01:00
s390 s390/scm: fix virtual vs physical address confusion 2024-11-18 12:12:16 +01:00
samsung
sbus
scsi scsi: libfc: Fix up timeout error in fc_fcp_rec_error() 2024-11-18 12:13:12 +01:00
sensorhub
sensors
sfi
sh
siox
slimbus
soc soc: qcom: llcc: Handle a second device without data corruption 2024-11-18 11:43:02 +01:00
soundwire soundwire: stream: fix NULL pointer dereference for multi_link 2024-11-18 12:11:57 +01:00
spi spi: bcm-qspi: fix SFDP BFPT read by usig mspi read 2024-11-18 12:13:07 +01:00
spmi
spu_verify
ssb
staging media: rkisp1: Disable runtime PM in probe error path 2024-11-18 12:12:40 +01:00
sti
target
tc
tee tee: optee: Fix supplicant based device enumeration 2024-11-18 12:11:39 +01:00
thermal
thunderbolt
tty serial: sc16is7xx: add check for unsupported SPI modes during probe 2024-11-18 12:12:55 +01:00
uh
uio uio: Fix use-after-free in uio_open 2024-11-18 12:12:19 +01:00
usb usb: cdns3: Fix uvc fail when DMA cross 4k boundery since sg enabled 2024-11-18 12:12:54 +01:00
vdpa
vfio
vhost
vibrator
video fbdev: flush deferred work in fb_deferred_io_fsync() 2024-11-18 12:12:47 +01:00
virt
virtio
vision
vision3
visorbus
vlynq
vme
w1
watchdog watchdog: rti_wdt: Drop runtime pm reference count when watchdog is unused 2024-11-18 12:12:42 +01:00
xen swiotlb-xen: provide the "max_mapping_size" method 2024-11-18 12:10:57 +01:00
zorro
Kconfig
Kconfig.variant1
Makefile
Makefile.variant1