Forwarded: [PATCH] net: core: fix KMSAN: unint value in tipc_rcv

syzbot posted 1 patch 1 month, 1 week ago
There is a newer version of this series
Forwarded: [PATCH] net: core: fix KMSAN: unint value in tipc_rcv
Posted by syzbot 1 month, 1 week ago
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: [PATCH] net: core: fix KMSAN: unint value in tipc_rcv
Author: hariconscious@gmail.com

#syz test

diff --git a/net/tipc/msg.c b/net/tipc/msg.c
index 76284fc538eb..144b02534196 100644
--- a/net/tipc/msg.c
+++ b/net/tipc/msg.c
@@ -69,6 +69,7 @@ struct sk_buff *tipc_buf_acquire(u32 size, gfp_t gfp)
 {
        struct sk_buff *skb;

+       gfp |= __GFP_ZERO;
        skb = alloc_skb_fclone(BUF_OVERHEAD + size, gfp);
        if (skb) {
                skb_reserve(skb, BUF_HEADROOM);