mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 15:13:44 -04:00
Merge tag 'x86_mm_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 mm fixlet from Borislav Petkov: - A sparse address space annotation fix * tag 'x86_mm_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/fault: Cast an argument to the proper address space in prefetch()
This commit is contained in:
@@ -149,7 +149,7 @@ is_prefetch(struct pt_regs *regs, unsigned long error_code, unsigned long addr)
|
||||
unsigned char opcode;
|
||||
|
||||
if (user_mode(regs)) {
|
||||
if (get_user(opcode, instr))
|
||||
if (get_user(opcode, (unsigned char __user *) instr))
|
||||
break;
|
||||
} else {
|
||||
if (get_kernel_nofault(opcode, instr))
|
||||
|
||||
Reference in New Issue
Block a user