All of lore.kernel.org
 help / color / mirror / Atom feed
From: syzbot <syzbot+a81f2759d022496b40ab@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [syzbot] Re: [syzbot] [net?] KMSAN: uninit-value in hsr_get_node (3)
Date: Sat, 20 Jul 2024 01:30:42 -0700	[thread overview]
Message-ID: <000000000000aeb998061da9a010@google.com> (raw)
In-Reply-To: <0000000000004a86bf0616571fc7@google.com>

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: Re: [syzbot] [net?] KMSAN: uninit-value in hsr_get_node (3)
Author: aha310510@gmail.com

#syz test git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

---
 net/hsr/hsr_framereg.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/hsr/hsr_framereg.c b/net/hsr/hsr_framereg.c
index 73bc6f659812..1c492146594c 100644
--- a/net/hsr/hsr_framereg.c
+++ b/net/hsr/hsr_framereg.c
@@ -224,6 +224,9 @@ struct hsr_node *hsr_get_node(struct hsr_port *port, struct list_head *node_db,
 	if (!skb_mac_header_was_set(skb))
 		return NULL;
 
+	if (skb->mac_len < sizeof(struct ethhdr))
+		return NULL;
+
 	ethhdr = (struct ethhdr *)skb_mac_header(skb);
 
 	list_for_each_entry_rcu(node, node_db, mac_list) {
--

  parent reply	other threads:[~2024-07-20  8:30 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-18  4:08 [syzbot] [net?] KMSAN: uninit-value in hsr_get_node (3) syzbot
2024-04-18  8:40 ` Jeongjun Park
2024-04-18 17:39   ` syzbot
2024-04-19 13:03 ` Jeongjun Park
2024-04-19 15:12   ` syzbot
2024-04-19 15:51 ` Jeongjun Park
2024-04-19 16:45   ` syzbot
2024-07-17 14:51 ` Jeongjun Park
2024-07-17 16:36   ` syzbot
2024-07-18 12:04 ` Jeongjun Park
2024-07-18 12:29   ` syzbot
2024-07-18 12:34 ` Jeongjun Park
2024-07-18 13:04   ` syzbot
2024-07-18 23:24 ` Jeongjun Park
2024-07-19  3:07   ` syzbot
2024-07-19 16:22 ` Jeongjun Park
2024-07-20  0:38   ` syzbot
2024-07-20  8:18 ` [syzbot] " syzbot
2024-07-20  8:30 ` syzbot [this message]
2024-07-20 10:53 ` syzbot
2025-08-20 16:45 ` Forwarded: Test for a81f2759d022496b40ab syzbot
  -- strict thread matches above, loose matches on Subject: below --
2024-07-19  5:12 [syzbot] [bpf?] [net?] KASAN: slab-use-after-free Read in bq_xmit_all syzbot
2024-07-21  3:28 ` [syzbot] Re: [syzbot] [net?] KMSAN: uninit-value in hsr_get_node (3) 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=000000000000aeb998061da9a010@google.com \
    --to=syzbot+a81f2759d022496b40ab@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.