* Forwarded: Re: [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d
2025-10-20 21:07 [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d syzbot
@ 2025-10-21 11:57 ` syzbot
2025-10-21 17:14 ` syzbot
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: syzbot @ 2025-10-21 11:57 UTC (permalink / raw)
To: linux-kernel, syzkaller-bugs
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: Re: [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d
Author: listout@listout.xyz
On 20.10.2025 14:07, syzbot wrote:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 98ac9cc4b445 Merge tag 'f2fs-fix-6.18-rc2' of git://git.ke..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=16be6734580000
> kernel config: https://syzkaller.appspot.com/x/.config?x=bbd3e7f3c2e28265
> dashboard link: https://syzkaller.appspot.com/bug?extid=878ddc3962f792e9af59
> compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=111e7dcd980000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1223a492580000
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/f8ad8459a8da/disk-98ac9cc4.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/28720fa307c1/vmlinux-98ac9cc4.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/e4f310acec99/bzImage-98ac9cc4.xz
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+878ddc3962f792e9af59@syzkaller.appspotmail.com
#syz test
diff --git a/net/wireless/util.c b/net/wireless/util.c
index 56724b33af04..b7290912dffb 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -938,9 +938,9 @@ EXPORT_SYMBOL(ieee80211_amsdu_to_8023s);
unsigned int cfg80211_classify8021d(struct sk_buff *skb,
struct cfg80211_qos_map *qos_map)
{
- unsigned int dscp;
- unsigned char vlan_priority;
- unsigned int ret;
+ unsigned int dscp = 0;
+ unsigned char vlan_priority = 0;
+ unsigned int ret = 0;
/* skb->priority values from 256->263 are magic values to
* directly indicate a specific 802.1d priority. This is used
--
Regards,
listout
^ permalink raw reply related [flat|nested] 8+ messages in thread* Forwarded: Re: [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d
2025-10-20 21:07 [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d syzbot
2025-10-21 11:57 ` Forwarded: " syzbot
@ 2025-10-21 17:14 ` syzbot
2025-11-01 17:41 ` Forwarded: " syzbot
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: syzbot @ 2025-10-21 17:14 UTC (permalink / raw)
To: linux-kernel, syzkaller-bugs
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: Re: [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d
Author: listout@listout.xyz
On 20.10.2025 14:07, syzbot wrote:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 98ac9cc4b445 Merge tag 'f2fs-fix-6.18-rc2' of git://git.ke..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=16be6734580000
> kernel config: https://syzkaller.appspot.com/x/.config?x=bbd3e7f3c2e28265
> dashboard link: https://syzkaller.appspot.com/bug?extid=878ddc3962f792e9af59
> compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=111e7dcd980000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1223a492580000
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/f8ad8459a8da/disk-98ac9cc4.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/28720fa307c1/vmlinux-98ac9cc4.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/e4f310acec99/bzImage-98ac9cc4.xz
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+878ddc3962f792e9af59@syzkaller.appspotmail.com
>
> mac80211_hwsim hwsim5 wlan1: entered allmulticast mode
> =====================================================
#syz test
diff --git a/net/wireless/util.c b/net/wireless/util.c
index 56724b33af04..05bb49afd5ef 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -938,9 +938,9 @@ EXPORT_SYMBOL(ieee80211_amsdu_to_8023s);
unsigned int cfg80211_classify8021d(struct sk_buff *skb,
struct cfg80211_qos_map *qos_map)
{
- unsigned int dscp;
- unsigned char vlan_priority;
- unsigned int ret;
+ unsigned int dscp = 0;
+ unsigned char vlan_priority = 0;
+ unsigned int ret = 0;
/* skb->priority values from 256->263 are magic values to
* directly indicate a specific 802.1d priority. This is used
@@ -963,10 +963,18 @@ unsigned int cfg80211_classify8021d(struct sk_buff *skb,
switch (skb->protocol) {
case htons(ETH_P_IP):
- dscp = ipv4_get_dsfield(ip_hdr(skb)) & 0xfc;
+ if (skb_network_header_len(skb) >= sizeof(struct iphdr)) {
+ struct iphdr *iph = ip_hdr(skb);
+ if (iph)
+ dscp = ipv4_get_dsfield(iph) & 0xfc;
+ }
break;
case htons(ETH_P_IPV6):
- dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & 0xfc;
+ if (skb_network_header_len(skb) >= sizeof(struct ipv6hdr)) {
+ struct ipv6hdr *ip6h = ipv6_hdr(skb);
+ if (ip6h)
+ dscp = ipv6_get_dsfield(ip6h) & 0xfc;
+ }
break;
case htons(ETH_P_MPLS_UC):
case htons(ETH_P_MPLS_MC): {
--
Regards,
listout
^ permalink raw reply related [flat|nested] 8+ messages in thread* Forwarded: [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d
2025-10-20 21:07 [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d syzbot
2025-10-21 11:57 ` Forwarded: " syzbot
2025-10-21 17:14 ` syzbot
@ 2025-11-01 17:41 ` syzbot
2025-11-11 19:18 ` Forwarded: test " syzbot
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: syzbot @ 2025-11-01 17:41 UTC (permalink / raw)
To: linux-kernel
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d
Author: vnranganath.20@gmail.com
#syz test
^ permalink raw reply [flat|nested] 8+ messages in thread* Forwarded: test KMSAN: uninit-value in cfg80211_classify8021d
2025-10-20 21:07 [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d syzbot
` (2 preceding siblings ...)
2025-11-01 17:41 ` Forwarded: " syzbot
@ 2025-11-11 19:18 ` syzbot
2025-11-12 13:09 ` Forwarded: " syzbot
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: syzbot @ 2025-11-11 19:18 UTC (permalink / raw)
To: linux-kernel
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: test KMSAN: uninit-value in cfg80211_classify8021d
Author: vnranganath.20@gmail.com
#syz test
^ permalink raw reply [flat|nested] 8+ messages in thread* Forwarded: Re: test KMSAN: uninit-value in cfg80211_classify8021d
2025-10-20 21:07 [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d syzbot
` (3 preceding siblings ...)
2025-11-11 19:18 ` Forwarded: test " syzbot
@ 2025-11-12 13:09 ` syzbot
2025-11-12 15:51 ` Forwarded: Re: [syzbot] [wireless?] " syzbot
2025-11-12 17:32 ` syzbot
6 siblings, 0 replies; 8+ messages in thread
From: syzbot @ 2025-11-12 13:09 UTC (permalink / raw)
To: linux-kernel
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: Re: test KMSAN: uninit-value in cfg80211_classify8021d
Author: vnranganath.20@gmail.com
#syz test
diff --git a/net/wireless/util.c b/net/wireless/util.c
index 23bca5e687c1..c310876c6c72 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -963,13 +963,23 @@ unsigned int cfg80211_classify8021d(struct sk_buff *skb,
switch (skb->protocol) {
case htons(ETH_P_IP):
- if (!pskb_may_pull(skb, sizeof(struct iphdr)))
+ struct iphdr iph, *ip;
+
+ ip = skb_header_pointer(skb, sizeof(struct ethhdr),
+ sizeof(*ip), &iph);
+ if (!ip)
return 0;
+
dscp = ipv4_get_dsfield(ip_hdr(skb)) & 0xfc;
break;
case htons(ETH_P_IPV6):
- if (!pskb_may_pull(skb, sizeof(struct ipv6hdr)))
+ struct ip6hdr ip6h, *ip6;
+
+ ip6 = skb_header_pointer(skb, sizeof(struct ethhdr),
+ sizeof(*ip6), &ip6h);
+ if (!ip6)
return 0;
+
dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & 0xfc;
break;
case htons(ETH_P_MPLS_UC):
On Wed, Nov 12, 2025 at 12:48 AM Ranganath V N <vnranganath.20@gmail.com> wrote:
>
> #syz test
^ permalink raw reply related [flat|nested] 8+ messages in thread* Forwarded: Re: [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d
2025-10-20 21:07 [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d syzbot
` (4 preceding siblings ...)
2025-11-12 13:09 ` Forwarded: " syzbot
@ 2025-11-12 15:51 ` syzbot
2025-11-12 17:32 ` syzbot
6 siblings, 0 replies; 8+ messages in thread
From: syzbot @ 2025-11-12 15:51 UTC (permalink / raw)
To: linux-kernel, syzkaller-bugs
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: Re: [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d
Author: vnranganath.20@gmail.com
#syz test
On Wed, Nov 12, 2025 at 9:03 PM syzbot
<syzbot+878ddc3962f792e9af59@syzkaller.appspotmail.com> wrote:
>
> Hello,
>
> syzbot tried to test the proposed patch but the build/boot failed:
>
> failed to apply patch:
> checking file net/wireless/util.c
> Hunk #1 FAILED at 963.
> 1 out of 1 hunk FAILED
>
>
>
> Tested on:
>
> commit: 24172e0d Merge tag 'arm64-fixes' of git://git.kernel.o..
> git tree: upstream
> kernel config: https://syzkaller.appspot.com/x/.config?x=bbd3e7f3c2e28265
> dashboard link: https://syzkaller.appspot.com/bug?extid=878ddc3962f792e9af59
> compiler:
> patch: https://syzkaller.appspot.com/x/patch.diff?x=12614658580000
>
^ permalink raw reply [flat|nested] 8+ messages in thread* Forwarded: Re: [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d
2025-10-20 21:07 [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d syzbot
` (5 preceding siblings ...)
2025-11-12 15:51 ` Forwarded: Re: [syzbot] [wireless?] " syzbot
@ 2025-11-12 17:32 ` syzbot
6 siblings, 0 replies; 8+ messages in thread
From: syzbot @ 2025-11-12 17:32 UTC (permalink / raw)
To: linux-kernel, syzkaller-bugs
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: Re: [syzbot] [wireless?] KMSAN: uninit-value in cfg80211_classify8021d
Author: vnranganath.20@gmail.com
#syz test
diff --git a/net/wireless/util.c b/net/wireless/util.c
index 56724b33af04..f2a6644d854e 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -963,9 +963,23 @@ unsigned int cfg80211_classify8021d(struct sk_buff *skb,
switch (skb->protocol) {
case htons(ETH_P_IP):
+ struct iphdr iph, *ip;
+
+ ip = skb_header_pointer(skb, sizeof(struct ethhdr),
+ sizeof(*ip), &iph);
+ if (!ip)
+ return 0;
+
dscp = ipv4_get_dsfield(ip_hdr(skb)) & 0xfc;
break;
case htons(ETH_P_IPV6):
+ struct ipv6hdr ip6h, *ip6;
+
+ ip6 = skb_header_pointer(skb, sizeof(struct ethhdr),
+ sizeof(*ip6), &ip6h);
+ if (!ip6)
+ return 0;
+
dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & 0xfc;
break;
case htons(ETH_P_MPLS_UC):
On Wed, Nov 12, 2025 at 9:52 PM syzbot
<syzbot+878ddc3962f792e9af59@syzkaller.appspotmail.com> wrote:
>
> Hello,
>
> syzbot tried to test the proposed patch but the build/boot failed:
>
> failed to apply patch:
> checking file net/wireless/util.c
> Hunk #1 FAILED at 963.
> 1 out of 1 hunk FAILED
>
>
>
> Tested on:
>
> commit: 24172e0d Merge tag 'arm64-fixes' of git://git.kernel.o..
> git tree: upstream
> kernel config: https://syzkaller.appspot.com/x/.config?x=bbd3e7f3c2e28265
> dashboard link: https://syzkaller.appspot.com/bug?extid=878ddc3962f792e9af59
> compiler:
> patch: https://syzkaller.appspot.com/x/patch.diff?x=15358692580000
>
> --
> You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/syzkaller-bugs/6914b42d.a70a0220.3124cb.0008.GAE%40google.com.
^ permalink raw reply related [flat|nested] 8+ messages in thread