Skip to content

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

Open
lorc wants to merge 1 commit intorenesas-rcar:v5.10.41/rcar-5.1.7.rc5from
lorc:pr_etha_fix
Open

rswitch: fix random crashes due to erroneous pointer use#5
lorc wants to merge 1 commit intorenesas-rcar:v5.10.41/rcar-5.1.7.rc5from
lorc:pr_etha_fix

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 volodymyr_babchuk@epam.com

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 <volodymyr_babchuk@epam.com>
@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