Re: [syzbot] [hams?] KMSAN: uninit-value in nr_route_frame

From: Edward Adam Davis
Date: Sun Mar 03 2024 - 06:53:00 EST


please test uninit-value in nr_route_frame

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

diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index edbbef563d4d..c8662be35000 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -656,6 +656,7 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask,
* to allow max possible filling before reallocation.
*/
prefetchw(data + SKB_WITH_OVERHEAD(size));
+ memset(data, 0, sizeof(*data));

/*
* Only clear those fields we need to clear, not those that we will