diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-12-22 05:20:43 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-12 20:16:25 +0100 |
commit | 7795afa0d7a907df392483efe9a38b4f875169f7 (patch) | |
tree | 62d00137114017104e441aa1ad537a62988a8fec /Makefile | |
parent | a9d49da7edf85b947cf33e2b4217b092aee6a43b (diff) |
KVM: x86: fix shift out of bounds reported by UBSAN
commit 2f80d502d627f30257ba7e3655e71c373b7d1a5a upstream.
Since we know that e >= s, we can reassociate the left shift,
changing the shifted number from 1 to 2 in exchange for
decreasing the right hand side by 1.
Reported-by: syzbot+e87846c48bf72bc85311@syzkaller.appspotmail.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions