Re: [syzbot] [bridge?] KMSAN: uninit-value in br_dev_xmit (2)

From: Edward Adam Davis
Date: Sun May 12 2024 - 05:47:38 EST


please test uiv in br_dev_xmit

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git dccb07f2914c

diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index b99127712e67..578590c83580 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -2247,6 +2247,7 @@ int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail,
goto nodata;
size = SKB_WITH_OVERHEAD(size);

+ memset(data, 0, size);
/* Copy only real data... and, alas, header. This should be
* optimized for the cases when header is void.
*/