Skip to content

wireguard fixes for 6.9-rc1

Jason A. Donenfeld netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6wireguard: receive: annotate data-race around receiving_counter.counterdrivers/net/wireguard/receive.c+3 -30 repliesApplied
2/6wireguard: device: leverage core stats allocatordrivers/net/wireguard/device.c+2 -80 repliesApplied
3/6wireguard: device: remove generic .ndo_get_stats64drivers/net/wireguard/device.c+0 -10 repliesApplied
4/6wireguard: netlink: check for dangling peer via is_dead instead of empty listdrivers/net/wireguard/netlink.c+3 -30 repliesApplied
5/6wireguard: netlink: access device through ctx instead of peerdrivers/net/wireguard/netlink.c+2 -20 repliesApplied
6/6wireguard: selftests: set RISCV_ISA_FALLBACK on riscv{32,64}tools/testing/selftests/wireguard/qemu/arch/riscv32.config tools/testing/selftests/wireguard/qemu/arch/riscv64.config+2 -00 repliesApplied

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSimon HormanJiri Pirko
SeriesR-b
1/6
2/6R-b
3/6R-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/6] wireguard fixes for 6.9-rc1

Hey netdev,

This series has four WireGuard fixes:

1) Annotate a data race that KCSAN found by using READ_ONCE/WRITE_ONCE, which has been causing syzkaller noise.

2) Use the generic netdev tstats allocation and stats getters instead of doing this within the driver.

3) Explicitly check a flag variable instead of an empty list in the netlink code, to prevent a UaF situation when paging through GET results during a remove-all SET operation.

4) Set a flag in the RISC-V CI config so the selftests continue to boot.

Please apply these!

Thanks,
Jason

Breno Leitao (2):
wireguard: device: leverage core stats allocator
wireguard: device: remove generic .ndo_get_stats64

Jason A. Donenfeld (3):
wireguard: netlink: check for dangling peer via is_dead instead of
empty list
wireguard: netlink: access device through ctx instead of peer
wireguard: selftests: set RISCV_ISA_FALLBACK on riscv{32,64}

Nikita Zhandarovich (1):
wireguard: receive: annotate data-race around
receiving_counter.counter

 drivers/net/wireguard/device.c                        | 11 ++---------
 drivers/net/wireguard/netlink.c                       | 10 +++++-----
 drivers/net/wireguard/receive.c                       |  6 +++---
 .../selftests/wireguard/qemu/arch/riscv32.config      |  1 +
 .../selftests/wireguard/qemu/arch/riscv64.config      |  1 +
 5 files changed, 12 insertions(+), 17 deletions(-)
Signature · 1 line
2.44.0