linux-stable/drivers
Alexandra Winter a1b4ed4125 s390/qeth: Fix potential loss of L3-IP@ in case of network issues
commit 2fe8a23643 upstream.

Symptom:
In case of a bad cable connection (e.g. dirty optics) a fast sequence of
network DOWN-UP-DOWN-UP could happen. UP triggers recovery of the qeth
interface. In case of a second DOWN while recovery is still ongoing, it
can happen that the IP@ of a Layer3 qeth interface is lost and will not
be recovered by the second UP.

Problem:
When registration of IP addresses with Layer 3 qeth devices fails, (e.g.
because of bad address format) the respective IP address is deleted from
its hash-table in the driver. If registration fails because of a ENETDOWN
condition, the address should stay in the hashtable, so a subsequent
recovery can restore it.

3caa4af834 ("qeth: keep ip-address after LAN_OFFLINE failure")
fixes this for registration failures during normal operation, but not
during recovery.

Solution:
Keep L3-IP address in case of ENETDOWN in qeth_l3_recover_ip(). For
consistency with qeth_l3_add_ip() we also keep it in case of EADDRINUSE,
i.e. for some reason the card already/still has this address registered.

Fixes: 4a71df5004 ("qeth: new qeth device driver")
Cc: stable@vger.kernel.org
Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Link: https://lore.kernel.org/r/20240206085849.2902775-1-wintera@linux.ibm.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-02-23 09:25:15 +01:00
..
accel
accessibility
acpi
amba
android binder: signal epoll threads of self-work 2024-02-23 09:25:04 +01:00
ata
atm atm: idt77252: fix a memleak in open_card_ubr0 2024-02-16 19:10:49 +01:00
auxdisplay
base driver core: fw_devlink: Improve detection of overlapping cycles 2024-02-23 09:24:57 +01:00
bcma
block
bluetooth
bus
cache
cdrom
cdx
char
clk
clocksource
comedi
connector connector/cn_proc: revert "connector: Fix proc_event_num_listeners count not cleared" 2024-02-23 09:25:01 +01:00
counter
cpufreq
cpuidle
crypto crypto: ccp - Fix null pointer dereference in __sev_platform_shutdown_locked 2024-02-23 09:25:11 +01:00
cxl
dax
dca
devfreq
dio
dma dmaengine: fsl-qdma: Fix a memory leak related to the queue command DMA 2024-02-16 19:10:42 +01:00
dma-buf
edac
eisa
extcon extcon: fix possible name leak in extcon_dev_register() 2024-02-05 20:14:31 +00:00
firewire firewire: core: correct documentation of fw_csr_string() kernel API 2024-02-23 09:25:02 +01:00
firmware x86/efistub: Avoid placing the kernel below LOAD_PHYSICAL_ADDR 2024-02-16 19:10:47 +01:00
fpga
fsi
gnss
gpio
gpu drm/amd/display: Preserve original aspect ratio in create stream 2024-02-23 09:25:08 +01:00
greybus
hid HID: wacom: Do not register input devices until after hid_hw_start 2024-02-23 09:24:56 +01:00
hsi
hte
hv
hwmon hwmon: (coretemp) Fix bogus core_id to attr name mapping 2024-02-16 19:10:49 +01:00
hwspinlock
hwtracing
i2c i2c: i801: Fix block process call transactions 2024-02-23 09:24:59 +01:00
i3c i3c: master: cdns: Update maximum prescaler value for i2c clock 2024-02-05 20:14:31 +00:00
idle
iio iio: pressure: bmp280: Add missing bmp085 to SPI id table 2024-02-23 09:25:07 +01:00
infiniband
input Input: atkbd - skip ATKBD_CMD_SETLEDS when skipping ATKBD_CMD_GETID 2024-02-16 19:10:55 +01:00
interconnect interconnect: qcom: sm8550: Enable sync_state 2024-02-23 09:24:57 +01:00
iommu
ipack
irqchip irqchip/gic-v3-its: Fix GICv4.1 VPE affinity update 2024-02-23 09:25:13 +01:00
isdn
leds leds: trigger: panic: Don't register panic notifier if creating the trigger failed 2024-02-05 20:14:30 +00:00
macintosh
mailbox mailbox: arm_mhuv2: Fix a bug for mhuv2_sender_interrupt 2024-02-05 20:14:31 +00:00
mcb
md dm-crypt, dm-verity: disable tasklets 2024-02-23 09:24:55 +01:00
media media: rc: bpf attach/detach requires write permission 2024-02-23 09:25:07 +01:00
memory
memstick
message
mfd mfd: ti_am335x_tscadc: Fix TI SoC dependencies 2024-02-05 20:14:31 +00:00
misc misc: fastrpc: Mark all sessions as invalid in cb_remove 2024-02-23 09:25:04 +01:00
mmc mmc: sdhci-pci-o2micro: Fix a warm reboot issue that disk can't be detected by BIOS 2024-02-23 09:25:13 +01:00
most
mtd
mux
net net: ethernet: ti: cpsw: enable mac_managed_pm to fix mdio 2024-02-23 09:25:15 +01:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of of: property: Improve finding the supplier of a remote-endpoint property 2024-02-23 09:24:50 +01:00
opp
parisc
parport
pci PCI: Fix active state requirement in PME polling 2024-02-23 09:24:58 +01:00
pcmcia
peci
perf perf: CXL: fix mismatched cpmu event opcode 2024-02-23 09:24:50 +01:00
phy phy: ti: phy-omap-usb2: Fix NULL pointer dereference for SRP 2024-02-16 19:10:42 +01:00
pinctrl pinctrl: baytrail: Fix types of config value in byt_pin_config_set() 2024-02-05 20:14:30 +00:00
platform
pmdomain pmdomain: mediatek: fix race conditions with genpd 2024-02-23 09:25:07 +01:00
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator regulator: ti-abb: don't use devm_platform_ioremap_resource_byname for shared interrupt register 2024-02-05 20:14:34 +00:00
remoteproc
reset
rpmsg
rtc
s390 s390/qeth: Fix potential loss of L3-IP@ in case of network issues 2024-02-23 09:25:15 +01:00
sbus
scsi scsi: Revert "scsi: fcoe: Fix potential deadlock on &fip->ctlr_lock" 2024-02-23 09:25:01 +01:00
sh
siox
slimbus
soc
soundwire
spi spi: ppc4xx: Drop write-only variable 2024-02-23 09:24:52 +01:00
spmi spmi: mediatek: Fix UAF on device remove 2024-02-05 20:14:32 +00:00
ssb
staging staging: iio: ad5933: fix type mismatch regression 2024-02-23 09:25:06 +01:00
target
tc
tee
thermal
thunderbolt thunderbolt: Fix setting the CNS bit in ROUTER_CS_5 2024-02-23 09:25:13 +01:00
tty serial: mxs-auart: fix tx 2024-02-23 09:25:10 +01:00
ufs
uio
usb usb: typec: tpcm: Fix issues with power being removed during reset 2024-02-23 09:25:03 +01:00
vdpa
vfio
vhost
video
virt
virtio
vlynq
w1
watchdog
xen xen/gntdev: Fix the abuse of underlying struct page in DMA-buf import 2024-02-05 20:14:31 +00:00
zorro
Kconfig
Makefile