* Re: [PATCH] llc: fix uninit-value in __llc_lookup_established
[not found] <tencent_269592755DA55D9B19384F870D9D25B18D07@qq.com>
@ 2023-12-06 6:27 ` Kuniyuki Iwashima
0 siblings, 0 replies; only message in thread
From: Kuniyuki Iwashima @ 2023-12-06 6:27 UTC (permalink / raw)
To: eadavis
Cc: davem, edumazet, kuba, linux-kernel, netdev, pabeni,
syzbot+b5ad66046b913bc04c6f, syzkaller-bugs, kuniyu
From: Edward Adam Davis <eadavis@qq.com>
Date: Wed, 6 Dec 2023 09:55:15 +0800
> llc only supports ETH_P_802_2 protocol, so drop the skb when the protocol is
> not it.
This is not true. ETH_P_TR_802_2 is also processed by llc_rcv().
Let me post this formally.
https://lore.kernel.org/netdev/20231206005340.11534-1-kuniyu@amazon.com/
>
> Reported-by: syzbot+b5ad66046b913bc04c6f@syzkaller.appspotmail.com
> Signed-off-by: Edward Adam Davis <eadavis@qq.com>
> ---
> net/llc/llc_input.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/net/llc/llc_input.c b/net/llc/llc_input.c
> index 51bccfb00a9c..16b2c57f38c2 100644
> --- a/net/llc/llc_input.c
> +++ b/net/llc/llc_input.c
> @@ -141,7 +141,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;
> }
>
> --
> 2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-06 6:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <tencent_269592755DA55D9B19384F870D9D25B18D07@qq.com>
2023-12-06 6:27 ` [PATCH] llc: fix uninit-value in __llc_lookup_established Kuniyuki Iwashima
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®