⬢ DragonFlyBSD Kernel Audit
DF-3447 / fix.diff
← back to finding ↓ download raw
--- a/sys/net/bpf_filter.c
+++ b/sys/net/bpf_filter.c
@@ -238 BPF_LD|BPF_H|BPF_ABS (kernel mbuf path)
 			if (buflen != 0)
 				return 0;
 			A = m_xhalf((struct mbuf *)p, k, &merr);
-			continue;
+			if (merr != 0)		/* DF-3447: honor the failure
+					 * like the BPF_W twin */
+				return 0;
+			continue;