aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_timer.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2024-09-06 15:25:31 +0200
committerJakub Kicinski <kuba@kernel.org>2024-09-11 15:49:07 -0700
commit430d67bdcb04ee8502c2b10dcbaced4253649189 (patch)
tree9b1d3d2091fa7d47427a6eecef1f2602f6ca7c78 /net/ipv4/tcp_timer.c
parenta18c097eda4230e4c4eed5f2b093735bdaaeb2a1 (diff)
downloadlinux-430d67bdcb04ee8502c2b10dcbaced4253649189.tar.gz
linux-430d67bdcb04ee8502c2b10dcbaced4253649189.tar.bz2
linux-430d67bdcb04ee8502c2b10dcbaced4253649189.zip
net: hsr: Use the seqnr lock for frames received via interlink port.
syzbot reported that the seqnr_lock is not acquire for frames received over the interlink port. In the interlink case a new seqnr is generated and assigned to the frame. Frames, which are received over the slave port have already a sequence number assigned so the lock is not required. Acquire the hsr_priv::seqnr_lock during in the invocation of hsr_forward_skb() if a packet has been received from the interlink port. Reported-by: syzbot+3d602af7549af539274e@syzkaller.appspotmail.com Closes: https://groups.google.com/g/syzkaller-bugs/c/KppVvGviGg4/m/EItSdCZdBAAJ Fixes: 5055cccfc2d1c ("net: hsr: Provide RedBox support (HSR-SAN)") Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Reviewed-by: Lukasz Majewski <lukma@denx.de> Tested-by: Lukasz Majewski <lukma@denx.de> Link: https://patch.msgid.link/20240906132816.657485-2-bigeasy@linutronix.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
0 files changed, 0 insertions, 0 deletions