summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2026-07-06 16:35:17 +0000
committerPaolo Abeni <pabeni@redhat.com>2026-07-10 17:29:43 +0200
commit23dad2d088dfc82cae1f5a936f8ff7ffebb38dd9 (patch)
tree4f26137773f9d2639c23bec2a4392e0092d5a4cf /include/uapi/linux
parentd5d7554052f3ac45c75d8e526ded2a70a7593929 (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/linux')
0 files changed, 0 insertions, 0 deletions