[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <000000000000ccbc6c060ab2aa42@google.com>
Date: Tue, 21 Nov 2023 16:19:06 -0800
From: syzbot <syzbot+e2c932aec5c8a6e1d31c@...kaller.appspotmail.com>
To: linux-kernel@...r.kernel.org
Subject: Re: [syzbot] [syzbot] [bpf?] [trace?] WARNING in format_decode (3)
For archival purposes, forwarding an incoming command email to
linux-kernel@...r.kernel.org.
***
Subject: [syzbot] [bpf?] [trace?] WARNING in format_decode (3)
Author: eadavis@...com
please test unsupported %? in format string
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git 76df934c6d5f
diff --git a/net/bpf/test_run.c b/net/bpf/test_run.c
index c9fdcc5cdce1..78258a822a5c 100644
--- a/net/bpf/test_run.c
+++ b/net/bpf/test_run.c
@@ -845,6 +845,9 @@ static int convert___skb_to_skb(struct sk_buff *skb, struct __sk_buff *__skb)
{
struct qdisc_skb_cb *cb = (struct qdisc_skb_cb *)skb->cb;
+ if (!skb->len)
+ return -EINVAL;
+
if (!__skb)
return 0;
Powered by blists - more mailing lists