diff --git a/net/wireguard-kmod/Makefile b/net/wireguard-kmod/Makefile index c88b72f4729b..4ae494f3dbf6 100644 --- a/net/wireguard-kmod/Makefile +++ b/net/wireguard-kmod/Makefile @@ -1,21 +1,22 @@ PORTNAME= wireguard-kmod PORTVERSION= 0.0.20210606 +PORTREVISION= 1 CATEGORIES= net net-vpn MASTER_SITES= https://git.zx2c4.com/wireguard-freebsd/snapshot/ DISTNAME= wireguard-freebsd-${PORTVERSION} MAINTAINER= decke@FreeBSD.org COMMENT= WireGuard implementation for the FreeBSD kernel LICENSE= MIT LICENSE_FILE= ${WRKSRC}/../COPYING IGNORE_FreeBSD_11= only for FreeBSD 12.1 and newer USES= kmod tar:xz uidfix WRKSRC_SUBDIR= src PLIST_FILES= ${KMODDIR}/if_wg.ko .include diff --git a/net/wireguard-kmod/files/patch-compat.h b/net/wireguard-kmod/files/patch-compat.h new file mode 100644 index 000000000000..b1dd32249515 --- /dev/null +++ b/net/wireguard-kmod/files/patch-compat.h @@ -0,0 +1,22 @@ +From 64a507ad6b3c7e8455c67b452160b9e4211fd872 Mon Sep 17 00:00:00 2001 +From: "Jason A. Donenfeld" +Date: Mon, 7 Jun 2021 11:50:20 +0200 +Subject: compat: taskqueue draining was backported to stable/13 + +Since 407b687dfef ("Make sure all tasklets are drained before unloading +the LinuxKPI. Else use-after-free may happen."), stable/13 now has the +taskqueue API that we need. + +Reported-by: Herbert J. Skuhra +Signed-off-by: Jason A. Donenfeld +--- compat.h.orig 2021-06-06 13:35:25 UTC ++++ compat.h +@@ -8,7 +8,7 @@ + + #include + +-#if __FreeBSD_version < 1400000 ++#if __FreeBSD_version < 1300507 + #include + #include +