From: syzbot <syzbot+b5ad66046b913bc04c6f@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [syzbot] [net?] KMSAN: uninit-value in __llc_lookup_established
Date: Tue, 05 Dec 2023 17:14:53 -0800 [thread overview]
Message-ID: <00000000000013f13b060bcd149d@google.com> (raw)
In-Reply-To: <0000000000001b9bed060bc75cbc@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: [net?] KMSAN: uninit-value in __llc_lookup_established
Author: eadavis@qq.com
please test uninit-value in __llc_lookup_established
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 1c41041124bd
diff --git a/net/llc/llc_input.c b/net/llc/llc_input.c
index 51bccfb00a9c..58e0b8ab41b7 100644
--- a/net/llc/llc_input.c
+++ b/net/llc/llc_input.c
@@ -126,6 +126,7 @@ static inline int llc_fixup_skb(struct sk_buff *skb)
skb->transport_header += llc_len;
skb_pull(skb, llc_len);
+ printk("3sp: %d\n", skb->protocol);
if (skb->protocol == htons(ETH_P_802_2)) {
__be16 pdulen;
s32 data_size;
@@ -141,7 +142,8 @@ static inline int llc_fixup_skb(struct sk_buff *skb)
return 0;
if (unlikely(pskb_trim_rcsum(skb, data_size)))
return 0;
- }
+ } else
+ return 0;
return 1;
}
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index afa5497f7c35..bff910513fc3 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -1900,6 +1900,7 @@ static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile,
skb->protocol = eth_type_trans(skb, tun->dev);
break;
}
+ printk("sp: %d\n", skb->protocol);
/* copy skb_ubuf_info for callback when skb has no error */
if (zerocopy) {
@@ -1999,6 +2000,7 @@ static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile,
local_bh_enable();
} else if (!IS_ENABLED(CONFIG_4KSTACKS)) {
+ printk("2sp: %d\n", skb->protocol);
tun_rx_batched(tun, tfile, skb, more);
} else {
netif_rx(skb);
next prev parent reply other threads:[~2023-12-06 1:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-05 18:25 [syzbot] [net?] KMSAN: uninit-value in __llc_lookup_established syzbot
2023-12-06 0:53 ` Kuniyuki Iwashima
2023-12-06 1:28 ` syzbot
2023-12-06 1:14 ` syzbot [this message]
2023-12-06 1:55 ` [PATCH] llc: fix " Edward Adam Davis
2023-12-06 6:27 ` Kuniyuki Iwashima
2023-12-06 7:08 ` [syzbot] [net?] KMSAN: " syzbot
2023-12-06 8:13 ` syzbot
2023-12-06 9:07 ` syzbot
2023-12-06 10:09 ` syzbot
[not found] <tencent_8F9E041BAF4BC41B1C2558BA38BBE233E808@qq.com>
2023-12-06 1:55 ` syzbot
[not found] <tencent_EE98A7D746C352F2464689936ED8AEF14C06@qq.com>
2023-12-06 8:01 ` syzbot
[not found] <tencent_F966ECFECCAC7AC26D7C2C3D6F049664E80A@qq.com>
2023-12-06 8:23 ` syzbot
[not found] <tencent_7D2FCFAD8DEEA5D60DCF9236DD9B5DAD9907@qq.com>
2023-12-06 9:24 ` syzbot
[not found] <tencent_832FC96FC0960CE862ED52CF3079966C4C0A@qq.com>
2023-12-06 10:29 ` syzbot
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=00000000000013f13b060bcd149d@google.com \
--to=syzbot+b5ad66046b913bc04c6f@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.