For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: Test patch for KMSAN: uninit-value in sctp_inq_pop
Author: vnranganath.20@gmail.com
#syz test
diff --git a/net/sctp/inqueue.c b/net/sctp/inqueue.c
index 5c1652181805..8c0a5e23bbb9 100644
--- a/net/sctp/inqueue.c
+++ b/net/sctp/inqueue.c
@@ -120,7 +120,9 @@ struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue)
/* The assumption is that we are safe to process the chunks
* at this time.
*/
-
+ chunk = kzalloc(sizeof(*chunk), gfp);
+ if (!chunk)
+ return NULL;
chunk = queue->in_progress;
if (chunk) {
/* There is a packet that we have been working on.