lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sat,  8 Jan 2022 12:53:04 +0100
From:   Lorenzo Bianconi <>
Subject: [PATCH v21 bpf-next 01/23] net: skbuff: add size metadata to skb_shared_info for xdp

Introduce xdp_frags_size field in skb_shared_info data structure
to store xdp_buff/xdp_frame frame paged size (xdp_frags_size will
be used in xdp multi-buff support). In order to not increase
skb_shared_info size we will use a hole due to skb_shared_info

Acked-by: Toke Hoiland-Jorgensen <>
Acked-by: John Fastabend <>
Acked-by: Jesper Dangaard Brouer <>
Signed-off-by: Lorenzo Bianconi <>
 include/linux/skbuff.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 642acb0d1646..d6d2ca936ddf 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -539,6 +539,7 @@ struct skb_shared_info {
 	 * Warning : all fields before dataref are cleared in __alloc_skb()
 	atomic_t	dataref;
+	unsigned int	xdp_frags_size;
 	/* Intermediate layers must ensure that destructor_arg
 	 * remains valid until skb destructor */

Powered by blists - more mailing lists