x86 fixes
Subsystems (2)
Linus,
Please pull the latest x86-urgent-for-linus git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus
# HEAD: 4030b4c585c41eeefec7bd20ce3d0e100a0f2e4d x86/hyper-v: Fix overflow bug in fill_gva_list()
Misc fixes:
- a signed kernels EFI boot fix,
- an UBSAN related AC flags fix,
- and a Hyper-V infinite loop fix.
Thanks,
Ingo
------------------>
John S. Gruber (1):
x86/boot: Preserve boot_params.secure_boot from sanitizing
Peter Zijlstra (1):
x86/uaccess: Don't leak the AC flags into __get_user() argument evaluation
Tianyu Lan (1):
x86/hyper-v: Fix overflow bug in fill_gva_list()
arch/x86/hyperv/mmu.c | 8 +++++--- arch/x86/include/asm/bootparam_utils.h | 1 + arch/x86/include/asm/uaccess.h | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-)
arch/x86/hyperv/mmu.c +5 -3
@@ -37,12 +37,14 @@ static inline int fill_gva_list(u64 gva_list[], int offset,* Lower 12 bits encode the number of additional * pages to flush (in addition to the 'cur' page). */ -if (diff >=HV_TLB_FLUSH_UNIT ) +if (diff >=HV_TLB_FLUSH_UNIT ) { gva_list[gva_n] |= ~PAGE_MASK ; -else if (diff) + cur +=HV_TLB_FLUSH_UNIT ; + }else if (diff) { gva_list[gva_n] |= (diff -1 ) >>PAGE_SHIFT ; + cur = end; + } - cur +=HV_TLB_FLUSH_UNIT ; gva_n++; }while (cur < end);
arch/x86/include/asm/bootparam_utils.h +1 -0
@@ -70,6 +70,7 @@ static void sanitize_boot_params(struct boot_params *boot_params)BOOT_PARAM_PRESERVE (eddbuf_entries),BOOT_PARAM_PRESERVE (edd_mbr_sig_buf_entries),BOOT_PARAM_PRESERVE (edd_mbr_sig_buffer), +BOOT_PARAM_PRESERVE (secure_boot),BOOT_PARAM_PRESERVE (hdr),BOOT_PARAM_PRESERVE (e820_table), BOOT_PARAM_PRESERVE(eddbuf),
arch/x86/include/asm/uaccess.h +3 -1
@@ -444,8 +444,10 @@ __pu_label: \ ({ \ int __gu_err; \ __inttype(*(ptr)) __gu_val; \ + __typeof__(ptr) __gu_ptr = (ptr); \ + __typeof__(size) __gu_size = (size); \ __uaccess_begin_nospec(); \ - __get_user_size(__gu_val, (ptr), (size), __gu_err, -EFAULT); \ + __get_user_size(__gu_val, __gu_ptr, __gu_size, __gu_err, -EFAULT); \ __uaccess_end(); \ (x) = (__force __typeof__(*(ptr)))__gu_val; \ __builtin_expect(__gu_err, 0); \
The pull request you sent on Thu, 5 Sep 2019 10:07:19 +0200:
The pull request you sent on Thu, 5 Sep 2019 10:07:19 +0200:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.gitx86-urgent-for-linus
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/19e4147a04a43d210dbacda76e0988f90bb0ba45
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.wiki.kernel.org/userdoc/prtracker