summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorJim Mattson <jmattson@google.com>2021-06-02 23:52:24 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2021-06-10 00:25:37 +0300
commit218bf772bddd221489c38dde6ef8e917131161f6 (patch)
treedd4cbdfa4caa3660908846cbc154b34514fe006b /init
parent4422829e8053068e0225e4d0ef42dc41ea7c9ef5 (diff)
downloadlinux-218bf772bddd221489c38dde6ef8e917131161f6.tar.xz
kvm: LAPIC: Restore guard to prevent illegal APIC register access
Per the SDM, "any access that touches bytes 4 through 15 of an APIC register may cause undefined behavior and must not be executed." Worse, such an access in kvm_lapic_reg_read can result in a leak of kernel stack contents. Prior to commit 01402cf81051 ("kvm: LAPIC: write down valid APIC registers"), such an access was explicitly disallowed. Restore the guard that was removed in that commit. Fixes: 01402cf81051 ("kvm: LAPIC: write down valid APIC registers") Signed-off-by: Jim Mattson <jmattson@google.com> Reported-by: syzbot <syzkaller@googlegroups.com> Message-Id: <20210602205224.3189316-1-jmattson@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions