public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Eric Dumazet <edumazet@google.com>
Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
	horms@kernel.org, netdev@vger.kernel.org, eric.dumazet@gmail.com,
	syzbot+7312e82745f7fa2526db@syzkaller.appspotmail.com,
	jchapman@katalix.com
Subject: Re: [PATCH net] l2tp: avoid one data-race in l2tp_tunnel_del_work()
Date: Mon, 19 Jan 2026 18:00:05 +0000	[thread overview]
Message-ID: <176884560579.82416.4300596156942866885.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20260115092139.3066180-1-edumazet@google.com>

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 15 Jan 2026 09:21:39 +0000 you wrote:
> We should read sk->sk_socket only when dealing with kernel sockets.
> 
> syzbot reported the following data-race:
> 
> BUG: KCSAN: data-race in l2tp_tunnel_del_work / sk_common_release
> 
> write to 0xffff88811c182b20 of 8 bytes by task 5365 on cpu 0:
>   sk_set_socket include/net/sock.h:2092 [inline]
>   sock_orphan include/net/sock.h:2118 [inline]
>   sk_common_release+0xae/0x230 net/core/sock.c:4003
>   udp_lib_close+0x15/0x20 include/net/udp.h:325
>   inet_release+0xce/0xf0 net/ipv4/af_inet.c:437
>   __sock_release net/socket.c:662 [inline]
>   sock_close+0x6b/0x150 net/socket.c:1455
>   __fput+0x29b/0x650 fs/file_table.c:468
>   ____fput+0x1c/0x30 fs/file_table.c:496
>   task_work_run+0x131/0x1a0 kernel/task_work.c:233
>   resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
>   __exit_to_user_mode_loop kernel/entry/common.c:44 [inline]
>   exit_to_user_mode_loop+0x1fe/0x740 kernel/entry/common.c:75
>   __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline]
>   syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline]
>   syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline]
>   syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline]
>   do_syscall_64+0x1e1/0x2b0 arch/x86/entry/syscall_64.c:100
>  entry_SYSCALL_64_after_hwframe+0x77/0x7f
> 
> [...]

Here is the summary with links:
  - [net] l2tp: avoid one data-race in l2tp_tunnel_del_work()
    https://git.kernel.org/netdev/net/c/7a29f6bf60f2

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



      parent reply	other threads:[~2026-01-19 18:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-15  9:21 [PATCH net] l2tp: avoid one data-race in l2tp_tunnel_del_work() Eric Dumazet
2026-01-15 10:59 ` Guillaume Nault
2026-01-19 18:00 ` patchwork-bot+netdevbpf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=176884560579.82416.4300596156942866885.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=eric.dumazet@gmail.com \
    --cc=horms@kernel.org \
    --cc=jchapman@katalix.com \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=syzbot+7312e82745f7fa2526db@syzkaller.appspotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox