diff options
| author | Eric Dumazet <edumazet@google.com> | 2026-07-06 16:35:17 +0000 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-07-10 17:29:43 +0200 |
| commit | 23dad2d088dfc82cae1f5a936f8ff7ffebb38dd9 (patch) | |
| tree | 4f26137773f9d2639c23bec2a4392e0092d5a4cf /include/uapi | |
| parent | d5d7554052f3ac45c75d8e526ded2a70a7593929 (diff) | |
tun: no longer rely on RTNL in tun_fill_info()
Update tun_fill_info() to read device configuration fields (flags, owner,
group, numqueues, numdisabled) locklessly using READ_ONCE().
Annotate all writes to these fields in the control paths with WRITE_ONCE()
to prevent data races, as these fields can be modified concurrently via
ioctls (TUNSETPERSIST, TUNSETOWNER, TUNSETGROUP, TUNSETIFF) or queue
attaching/detaching.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20260706163517.2415530-1-edumazet@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions
