diff options
author | Jann Horn <[email protected]> | 2019-03-29 22:46:51 +0100 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2019-04-03 14:12:40 +0200 |
commit | 89833fab15d6017ba006a45b5af68caa067171a7 (patch) | |
tree | 85fa640fa5792290dab7e27a66c2ad99932d8601 /scripts/gdb/linux/config.py | |
parent | 79a3aaa7b82e3106be97842dedfd8429248896e6 (diff) |
x86/fpu: Fix __user annotations
In save_xstate_epilog(), use __user when type-casting userspace
pointers.
In setup_sigcontext() and x32_setup_rt_frame(), cast the userspace
pointers to 'unsigned long __user *' before writing into them. These
pointers are originally '__u32 __user *' or '__u64 __user *', causing
sparse to complain when a userspace pointer is written into them. The
casts are okay because the pointers always point to pointer-sized
values.
Thanks to Luc Van Oostenryck and Al Viro for explaining this to me.
Signed-off-by: Jann Horn <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Mukesh Ojha <[email protected]>
Cc: Qiaowei Ren <[email protected]>
Cc: Sebastian Andrzej Siewior <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: x86-ml <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions