From: syzbot <syzbot+e2c932aec5c8a6e1d31c@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [syzbot] [syzbot] [bpf?] [trace?] WARNING in format_decode (3)
Date: Tue, 21 Nov 2023 16:19:06 -0800 [thread overview]
Message-ID: <000000000000ccbc6c060ab2aa42@google.com> (raw)
In-Reply-To: <0000000000004b6de5060ab1545b@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: [syzbot] [bpf?] [trace?] WARNING in format_decode (3)
Author: eadavis@qq.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;
next prev parent reply other threads:[~2023-11-22 0:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-21 22:43 [syzbot] [bpf?] [trace?] WARNING in format_decode (3) syzbot
2023-11-21 22:43 ` syzbot
2023-11-22 0:19 ` syzbot [this message]
2023-11-22 0:50 ` [PATCH net] bpf: test_run: fix WARNING in format_decode Edward Adam Davis
2023-11-22 5:28 ` Yonghong Song
2023-11-27 14:10 ` Daniel Borkmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=000000000000ccbc6c060ab2aa42@google.com \
--to=syzbot+e2c932aec5c8a6e1d31c@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.