diff options
| author | Ross Philipson <[email protected]> | 2022-02-24 02:07:35 +0000 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2022-03-09 11:49:44 +0000 |
| commit | 7228918b34615ef6317edcd9a058a057bc54aa32 (patch) | |
| tree | 6e5625e2d856303b3afeae0e24a79f532f28dba2 /net/switchdev/switchdev.c | |
| parent | x86/module: Fix the paravirt vs alternative order (diff) | |
| download | kernel-7228918b34615ef6317edcd9a058a057bc54aa32.tar.gz kernel-7228918b34615ef6317edcd9a058a057bc54aa32.zip | |
x86/boot: Fix memremap of setup_indirect structures
As documented, the setup_indirect structure is nested inside
the setup_data structures in the setup_data list. The code currently
accesses the fields inside the setup_indirect structure but only
the sizeof(struct setup_data) is being memremapped. No crash
occurred but this is just due to how the area is remapped under the
covers.
Properly memremap both the setup_data and setup_indirect structures
in these cases before accessing them.
Fixes: b3c72fc9a78e ("x86/boot: Introduce setup_indirect")
Signed-off-by: Ross Philipson <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Daniel Kiper <[email protected]>
Cc: <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
