Skip to content

Commit 3670426

Browse files
committed
Merge tag 'stable/for-linus-3.12-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
Pull Xen fixes from Stefano Stabellini: "A small fix for Xen on x86_32 and a build fix for xen-tpmfront on arm64" * tag 'stable/for-linus-3.12-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: xen: Fix possible user space selector corruption tpm: xen-tpmfront: fix missing declaration of xen_domain
2 parents 1e52db6 + 7cde9b2 commit 3670426

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎arch/x86/xen/smp.c‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,15 @@ static void __init xen_smp_prepare_boot_cpu(void)
278278
old memory can be recycled */
279279
make_lowmem_page_readwrite(xen_initial_gdt);
280280

281+
#ifdef CONFIG_X86_32
282+
/*
283+
* Xen starts us with XEN_FLAT_RING1_DS, but linux code
284+
* expects __USER_DS
285+
*/
286+
loadsegment(ds, __USER_DS);
287+
loadsegment(es, __USER_DS);
288+
#endif
289+
281290
xen_filter_cpu_maps();
282291
xen_setup_vcpu_info_placement();
283292
}

‎drivers/char/tpm/xen-tpmfront.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/errno.h>
1111
#include <linux/err.h>
1212
#include <linux/interrupt.h>
13+
#include <xen/xen.h>
1314
#include <xen/events.h>
1415
#include <xen/interface/io/tpmif.h>
1516
#include <xen/grant_table.h>

0 commit comments

Comments
 (0)