This error handling looks really strange. Check if the string has been truncated instead. Additional info: 社区有patch已经解决 llc: verify mac len before reading mac header commit 80836b5859b725f9da8cc6ef90d6b5a99553f55a Reference:https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=80836b5859b725f9da8cc6ef90d6b5a99553f55a git cherry-pick -s 80836b585(with stable-v5.10.201 repo added)
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2460