Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rswitch: fix random crashes due to erroneous pointer use #5

Open
wants to merge 1 commit into
base: v5.10.41/rcar-5.1.7.rc5
Choose a base branch
from

Conversation

lorc
Copy link

@lorc lorc commented Oct 14, 2022

rswitch_modify() accepts pointer to a MMIO region while rswitch_etha_modify() extracts this pointer from etha structure. So prior to this patch, this code changed memory somewhere in a kernel heap, damaging random kernel structures, which sometimes led to a kernel crash.

Signed-off-by: Volodymyr Babchuk [email protected]

rswitch_modify() accepts pointer to a MMIO region while rswitch_etha_modify()
extracts this pointer from etha structure. So prior to this patch, this code
changed memory somewhere in a kernel heap, damaging random kernel structures,
which sometimes led to a kernel crash.

Signed-off-by: Volodymyr Babchuk <[email protected]>
@HaiNguyenPham
Copy link
Collaborator

Hi @lorc
Thanks for your patch.
We'll pull in next merge windows. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants