From: "Rafael Passos" <rafael@rcpassos.me>
To: "Theodore Tso" <tytso@mit.edu>, "Andrew Lunn" <andrew@lunn.ch>
Cc: "Rafael Passos" <rafael@rcpassos.me>, <Jason@zx2c4.com>,
<andrew+netdev@lunn.ch>, <davem@davemloft.net>,
<edumazet@google.com>, <kuba@kernel.org>,
<linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>,
<pabeni@redhat.com>,
<syzbot+9ca7674fa7521a3f1bc2@syzkaller.appspotmail.com>,
<syzkaller-bugs@googlegroups.com>, <wireguard@lists.zx2c4.com>
Subject: Re: [PATCH] Wireguard: Fix data-race in rx/tx counter
Date: Mon, 29 Jun 2026 00:05:08 -0300 [thread overview]
Message-ID: <DJL786MPR9HO.BWHI3U37PDVM@rcpassos.me> (raw)
In-Reply-To: <akHY4UEa1ab2PF-j@mit.edu>
On Sun Jun 28, 2026 at 11:34 PM -03, Theodore Tso wrote:
> One of the reasons why kcsan and syzbot can be quite noisy is that a
> human being needs to *think* and consider whether or not this is
> actually important. (One of the reasons why I'm not all that worried
> about our new AI overlords taking over the world. :-) Consider what
> is the worst that might happen if the tx/rx_bytes counter might not be
> completely accurate? Is it worth the performance penalty of using
> atomics (or the memory overhead of per-CPU counters)?
Yeah, I guess not.
Still, it was very interesting learning all this. I only knew per-cpu
counters by name, and Andrew's response led me to actually understand it.
I would like to thank you both!
And if I may, I would like to send my v2 patch (as a response in this
thread) just because it was very fun making and testing it. And I would
love feedback on it, if anything looks wrong. This was an amazing
learning opportunity for me.
Thanks,
Rafael Passos
next prev parent reply other threads:[~2026-06-29 3:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-01 14:33 [syzbot] [wireguard?] KCSAN: data-race in wg_socket_send_skb_to_peer / wg_socket_send_skb_to_peer (9) syzbot
2026-06-22 19:34 ` Rafael Passos
2026-06-28 20:38 ` [PATCH] Wireguard: Fix data-race in rx/tx counter Rafael Passos
2026-06-28 21:02 ` Andrew Lunn
2026-06-29 2:34 ` Theodore Tso
2026-06-29 3:05 ` Rafael Passos [this message]
2026-06-29 12:59 ` [PATCH v2] " Rafael Passos
2026-06-29 14:51 ` Andrew Lunn
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=DJL786MPR9HO.BWHI3U37PDVM@rcpassos.me \
--to=rafael@rcpassos.me \
--cc=Jason@zx2c4.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=syzbot+9ca7674fa7521a3f1bc2@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=tytso@mit.edu \
--cc=wireguard@lists.zx2c4.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.