diff options
| author | Sebastian Andrzej Siewior <[email protected]> | 2024-09-06 13:25:31 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-09-11 22:49:07 +0000 |
| commit | 430d67bdcb04ee8502c2b10dcbaced4253649189 (patch) | |
| tree | 9b1d3d2091fa7d47427a6eecef1f2602f6ca7c78 /net/ipv4/tcp_timer.c | |
| parent | Merge tag 'wireless-next-2024-09-11' of git://git.kernel.org/pub/scm/linux/ke... (diff) | |
| download | kernel-430d67bdcb04ee8502c2b10dcbaced4253649189.tar.gz kernel-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: [email protected]
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 <[email protected]>
Reviewed-by: Lukasz Majewski <[email protected]>
Tested-by: Lukasz Majewski <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
0 files changed, 0 insertions, 0 deletions
