]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: rose: lock the socket in rose_bind()
authorEric Dumazet <edumazet@google.com>
Mon, 3 Feb 2025 17:08:38 +0000 (17:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 12:49:37 +0000 (13:49 +0100)
commit667f61b3498df751c8b3f0be1637e7226cbe3ed0
treea8041a409d28b56fc98475c31bdd5b950e5bd644
parent177c1b524666b5faca9ceffc3eed4a7aba0fa7e2
net: rose: lock the socket in rose_bind()

[ Upstream commit a1300691aed9ee852b0a9192e29e2bdc2411a7e6 ]

syzbot reported a soft lockup in rose_loopback_timer(),
with a repro calling bind() from multiple threads.

rose_bind() must lock the socket to avoid this issue.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Reported-by: syzbot+7ff41b5215f0c534534e@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/netdev/67a0f78d.050a0220.d7c5a.00a0.GAE@google.com/T/#u
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Link: https://patch.msgid.link/20250203170838.3521361-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/rose/af_rose.c