kernel_samsung_a53x/drivers/net/wireless/ath/ath9k
Toke Høiland-Jørgensen d6155048f0 wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit
[ Upstream commit 94745807f3ebd379f23865e6dab196f220664179 ]

Syzbot points out that skb_trim() has a sanity check on the existing length of
the skb, which can be uninitialised in some error paths. The intent here is
clearly just to reset the length to zero before resubmitting, so switch to
calling __skb_set_length(skb, 0) directly. In addition, __skb_set_length()
already contains a call to skb_reset_tail_pointer(), so remove the redundant
call.

The syzbot report came from ath9k_hif_usb_reg_in_cb(), but there's a similar
usage of skb_trim() in ath9k_hif_usb_rx_cb(), change both while we're at it.

Reported-by: syzbot+98afa303be379af6cdb2@syzkaller.appspotmail.com
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://patch.msgid.link/20240812142447.12328-1-toke@toke.dk
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:37 +01:00
..
ahb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ani.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ani.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
antenna.c wifi: ath9k: fix LNA selection in ath_ant_try_scan() 2024-11-19 09:23:11 +01:00
ar953x_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar955x_1p0_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar956x_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar5008_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar5008_phy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9001_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9002_calib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9002_hw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9002_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9002_mac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9002_phy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9002_phy.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_2p2_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_aic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_aic.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_buffalo_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_calib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_eeprom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_eeprom.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_hw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_mac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_mac.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_mci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_mci.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_paprd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_phy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_phy.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_rtt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_rtt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9003_wow.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9330_1p1_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9330_1p2_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9340_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9462_2p0_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9462_2p1_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9485_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9565_1p0_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9565_1p1_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar9580_1p0_initvals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ath9k.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ath9k_pci_owl_loader.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
beacon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btcoex.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btcoex.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
calib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
calib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
channel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common-beacon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common-beacon.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common-debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common-debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common-init.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common-init.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common-spectral.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common-spectral.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.c wifi: ath9k: fix possible integer overflow in ath9k_get_et_stats() 2024-11-23 23:21:37 +01:00
debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug_sta.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dfs_debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dfs_debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dynack.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dynack.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eeprom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eeprom.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eeprom_4k.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eeprom_9287.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eeprom_def.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gpio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hif_usb.c wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit 2024-11-23 23:21:37 +01:00
hif_usb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
htc.h wifi: ath9k: delay all of ath9k_wmi_event_tasklet() until init is complete 2024-11-19 08:44:39 +01:00
htc_drv_beacon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
htc_drv_debug.c wifi: ath9k: fix clang-specific fortify warnings 2024-11-18 11:43:12 +01:00
htc_drv_gpio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
htc_drv_init.c wifi: ath9k: delay all of ath9k_wmi_event_tasklet() until init is complete 2024-11-19 08:44:39 +01:00
htc_drv_main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
htc_drv_txrx.c wifi: ath9k: delay all of ath9k_wmi_event_tasklet() until init is complete 2024-11-19 08:44:39 +01:00
htc_hst.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
htc_hst.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw-ops.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
init.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
link.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mac.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
main.c wifi: ath9k: work around memset overflow warning 2024-11-19 14:19:06 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mci.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
recv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reg_aic.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reg_mci.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reg_wow.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rng.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tx99.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wmi.c wifi: ath9k: delay all of ath9k_wmi_event_tasklet() until init is complete 2024-11-19 08:44:39 +01:00
wmi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wow.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xmit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00